summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorMatt Porter <mporter@kernel.crashing.org>2005-11-02 16:13:06 -0700
committerJeff Garzik <jgarzik@pobox.com>2005-11-05 14:40:55 -0500
commitf896424cbc61225e8f029fe23e5aae3e32103229 (patch)
treeabfc35832b8bbd3a66b38db6dfc5d6705103436f /include/linux/phy.h
parent4371dc6c60705815dcfe0c2979f68a26d0b27bd4 (diff)
downloadlinux-f896424cbc61225e8f029fe23e5aae3e32103229.tar.gz
linux-f896424cbc61225e8f029fe23e5aae3e32103229.tar.bz2
linux-f896424cbc61225e8f029fe23e5aae3e32103229.zip
[PATCH] phy address mask support for generic phy layer
Adds a phy_mask field to struct mii_bus and uses it. This field indicates each phy address to be ignored when probing the mdio bus. This support is needed for the fs_enet and ibm_emac drivers to be converted to the generic phy layer among other drivers. Many systems lock up on probing certain phy addresses or probing doesn't return 0xffff when nothing is found at the address. A new driver I'm working on also makes use of this mask. Signed-off-by: Matt Porter <mporter@kernel.crashing.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 72cb67b66e0c..92a9696fdebe 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -72,6 +72,9 @@ struct mii_bus {
/* list of all PHYs on bus */
struct phy_device *phy_map[PHY_MAX_ADDR];
+ /* Phy addresses to be ignored when probing */
+ u32 phy_mask;
+
/* Pointer to an array of interrupts, each PHY's
* interrupt at the index matching its address */
int *irq;