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)
commit4a4ce82212ef014d70f486a427005b2b5bab8e34
tree3a0f5a0d627c199d2f6dbc66e3b509d2d8ea4eb1
parentfce1c23f629173e0db78b79a74f2052044a00e65
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: 738871b09250ee ("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