]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: micrel: Make the GPIO to be non-exclusive
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 30 Aug 2022 06:40:55 +0000 (08:40 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Aug 2022 05:49:50 +0000 (22:49 -0700)
commit0d4d75b8a33c1d2df6311cf8478491169edbd448
tree3a0f5a0d627c199d2f6dbc66e3b509d2d8ea4eb1
parentaf3c880056556d703ca6f00135e85208b3a25910
net: phy: micrel: Make the GPIO to be non-exclusive

The same GPIO line can be shared by multiple phys for the coma mode pin.
If that is the case then, all the other phys that share the same line
will failed to be probed because the access to the gpio line is not
non-exclusive.
Fix this by making access to the gpio line to be nonexclusive using flag
GPIOD_FLAGS_BIT_NONEXCLUSIVE. This allows all the other PHYs to be
probed.

Fixes: ce24bd875434dd ("net: phy: micrel: add coma mode GPIO")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220830064055.2340403-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c