]> 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)
commita96e42d47970a2c714364e39cd992bc659edf30a
tree3a0f5a0d627c199d2f6dbc66e3b509d2d8ea4eb1
parent7cc1b3b7a4e023025ed37da68517e1d37055692d
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: e3fb11a7544035 ("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