mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 01:11:51 -04:00
net: ethernet: oa_tc6: Export the C45 access functions
The C45 access functions can still be used by some Ethernet drivers which set the OA_TC6_BROKEN_PHY flag. Export them. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Ciprian Regus <ciprian.regus@analog.com> Link: https://patch.msgid.link/20260708-adin1140-driver-v5-4-4aca7b51a58b@analog.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
1d030cdd52
commit
87ac7ea215
@@ -500,8 +500,8 @@ static int oa_tc6_get_phy_c45_mms(int devnum)
|
||||
}
|
||||
}
|
||||
|
||||
static int oa_tc6_mdiobus_read_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
int regnum)
|
||||
int oa_tc6_mdiobus_read_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
int regnum)
|
||||
{
|
||||
struct oa_tc6 *tc6 = bus->priv;
|
||||
u32 regval;
|
||||
@@ -517,9 +517,10 @@ static int oa_tc6_mdiobus_read_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
|
||||
return regval;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(oa_tc6_mdiobus_read_c45);
|
||||
|
||||
static int oa_tc6_mdiobus_write_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
int regnum, u16 val)
|
||||
int oa_tc6_mdiobus_write_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
int regnum, u16 val)
|
||||
{
|
||||
struct oa_tc6 *tc6 = bus->priv;
|
||||
int ret;
|
||||
@@ -530,6 +531,7 @@ static int oa_tc6_mdiobus_write_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
|
||||
return oa_tc6_write_register(tc6, (ret << 16) | regnum, val);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(oa_tc6_mdiobus_write_c45);
|
||||
|
||||
static int oa_tc6_mdiobus_register(struct oa_tc6 *tc6)
|
||||
{
|
||||
|
||||
@@ -31,3 +31,7 @@ int oa_tc6_read_registers(struct oa_tc6 *tc6, u32 address, u32 value[],
|
||||
u8 length);
|
||||
netdev_tx_t oa_tc6_start_xmit(struct oa_tc6 *tc6, struct sk_buff *skb);
|
||||
int oa_tc6_zero_align_receive_frame_enable(struct oa_tc6 *tc6);
|
||||
int oa_tc6_mdiobus_read_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
int regnum);
|
||||
int oa_tc6_mdiobus_write_c45(struct mii_bus *bus, int addr, int devnum,
|
||||
int regnum, u16 val);
|
||||
|
||||
Reference in New Issue
Block a user