summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
803afe6)
static DEFINE_MUTEX(reg_mutex);
static DEFINE_MUTEX(reg_mutex);
-static inline void ar7240sw_init(struct ar7240sw *as, struct mii_bus *mii)
-{
- as->mii_bus = mii;
-}
-
static inline u16 mk_phy_addr(u32 reg)
{
return 0x17 & ((reg >> 4) | 0x10);
static inline u16 mk_phy_addr(u32 reg)
{
return 0x17 & ((reg >> 4) | 0x10);
- ar7240sw_init(as, mii);
ctrl = ar7240sw_reg_read(mii, AR7240_REG_MASK_CTRL);
ctrl = ar7240sw_reg_read(mii, AR7240_REG_MASK_CTRL);