aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/mdio_10g.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-12-13 00:48:57 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-13 00:58:16 -0500
commit356eebb2b3af24cc701823f1e025f04eef333239 (patch)
tree62f8e4e24e1e421d617fe08775dfd15b79862fdc /drivers/net/sfc/mdio_10g.h
parent04300d248bd5166c00a59fa18efc1f7d041e9b32 (diff)
sfc: Clean up MDIO flag setting
We often want to set or clear a flag in an MDIO register, but avoid writing if no change is required since this can have side-effects. Encapsulate this in a function, mdio_clause45_set_flag(). Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/mdio_10g.h')
-rw-r--r--drivers/net/sfc/mdio_10g.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/sfc/mdio_10g.h b/drivers/net/sfc/mdio_10g.h
index 45163838130e..4830e0c1da0b 100644
--- a/drivers/net/sfc/mdio_10g.h
+++ b/drivers/net/sfc/mdio_10g.h
@@ -259,4 +259,8 @@ extern int mdio_clause45_set_settings(struct efx_nic *efx,
259extern int mdio_clause45_wait_reset_mmds(struct efx_nic *efx, 259extern int mdio_clause45_wait_reset_mmds(struct efx_nic *efx,
260 unsigned int mmd_mask); 260 unsigned int mmd_mask);
261 261
262/* Set or clear flag, debouncing */
263extern void mdio_clause45_set_flag(struct efx_nic *efx, u8 prt, u8 dev,
264 u16 addr, int bit, bool sense);
265
262#endif /* EFX_MDIO_10G_H */ 266#endif /* EFX_MDIO_10G_H */