2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/net/ethernet/qualcomm/emac
Hemanth Puranik ac3241d5c8 net: qcom/emac: Change the order of mac up and sgmii open
This patch fixes the order of mac_up and sgmii_open for the
reasons noted below:

- If open takes more time(if the SGMII block is not responding or
  if we want to do some delay based task) in this situation we
  will hit NETDEV watchdog
- The main reason : We should signal to upper layers that we are
  ready to receive packets "only" when the entire path is initialized
  not the other way around, this is followed in the reset path where
  we do mac_down, sgmii_reset and mac_up. This also makes the driver
  uniform across the reset and open paths.
- In the future there may be need for delay based tasks to be done in
  sgmii open which will result in NETDEV watchdog
- As per the documentation the order of init should be sgmii, mac, rings
  and DMA

Signed-off-by: Hemanth Puranik <hpuranik@codeaurora.org>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-18 13:20:41 -05:00
..
emac-ethtool.c net: qcom/emac: add software control for pause frame mode 2017-09-21 15:19:30 -07:00
emac-mac.c Revert "net: qcom/emac: enforce DMA address restrictions" 2017-10-12 10:50:10 -07:00
emac-mac.h net: qcom/emac: do not call emac_mac_start twice 2017-01-29 19:07:02 -05:00
emac-phy.c net: qcom/emac: Reduce timeout for mdio read/write 2017-12-15 15:46:19 -05:00
emac-phy.h net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-fsm9900.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-qdf2400.c net: qcom/emac: optimize QDF2400 SGMII RX/TX impedence values 2017-03-07 12:29:37 -08:00
emac-sgmii-qdf2432.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii.c net: qcom/emac: clean up some TX/RX error messages 2017-10-11 16:01:56 -07:00
emac-sgmii.h net: qcom/emac: add an error interrupt handler for the sgmii 2017-01-29 19:07:02 -05:00
emac.c net: qcom/emac: Change the order of mac up and sgmii open 2017-12-18 13:20:41 -05:00
emac.h net: qcom/emac: add software control for pause frame mode 2017-09-21 15:19:30 -07:00
Makefile net: qcom/emac: add ethtool support 2017-01-10 13:26:25 -05:00