]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
net: eqos: start phy interrupts after MAC reset.
authorNarayan Reddy <narayanr@nvidia.com>
Wed, 14 Jun 2017 05:38:00 +0000 (11:08 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 14 Jun 2017 15:46:36 +0000 (08:46 -0700)
commit5836941b9ed19b677d76ca0d820acce06f3b8332
tree918419183a449ab50a9724527d80d1b18beca0f1
parentc8ba94ba02edc3cc9b3c898ecf37c6739401b774
net: eqos: start phy interrupts after MAC reset.

Issue: After PHY reset through the GPIO, autonegotion
will start from the PHY side which results in triggering
the PHY interrupts. Through the IRQ handler phy_change
workqueue will be scheduled and which will be trying to
access the PHY registers through MDIO bus. While accessing
the MDIO address/data registers in workqueue context EQOS
MAC is in reset mode which results in APB timeout.

Fix: start phy interrupts once EQOS MAC is out of reset

Bug 200284385

Change-Id: Ia5b48f2b163463f6b4f1f3c0b319b5da0ebccb3e
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/1502069
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/net/ethernet/nvidia/eqos/drv.c