net: phy: add support for a common probe between shared PHYs
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 23 Jun 2020 14:30:07 +0000 (16:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 21:33:16 +0000 (14:33 -0700)
commit0ef44e5cab8dbf0a0327871b48fe7c8425d0d885
tree0606c9c9ee72e8f12b616c00246fa5988b95a36e
parent7b0cc34ac4795f5e1b7c586f136866f25e9b5ae5
net: phy: add support for a common probe between shared PHYs

Shared PHYs (PHYs in the same hardware package) may have shared
registers and their drivers would usually need to share information.
There is currently a way to have a shared (part of the) init, by using
phy_package_init_once(). This patch extends the logic to share parts of
the probe to allow sharing the initialization of locks or resources
retrieval.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h