Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mdio: add unlocked mdiodev C45 bus accessors

Add helper inline functions __mdiodev_c45_read() and
__mdiodev_c45_write(), which are the C45 equivalents of the existing
__mdiodev_read() and __mdiodev_write() added by commit e6a45700e7e1
("net: mdio: add unlocked mdiobus and mdiodev bus accessors")

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/8d1d55949a75a871d2a3b90e421de4bd58d77685.1770433307.git.daniel@makrotopia.org
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Daniel Golle and committed by
Paolo Abeni
b405b26d 85ee9874

+13
+13
include/linux/mdio.h
··· 647 647 mask, set); 648 648 } 649 649 650 + static inline int __mdiodev_c45_read(struct mdio_device *mdiodev, int devad, 651 + u16 regnum) 652 + { 653 + return __mdiobus_c45_read(mdiodev->bus, mdiodev->addr, devad, regnum); 654 + } 655 + 656 + static inline int __mdiodev_c45_write(struct mdio_device *mdiodev, u32 devad, 657 + u16 regnum, u16 val) 658 + { 659 + return __mdiobus_c45_write(mdiodev->bus, mdiodev->addr, devad, regnum, 660 + val); 661 + } 662 + 650 663 static inline int mdiodev_c45_modify(struct mdio_device *mdiodev, int devad, 651 664 u32 regnum, u16 mask, u16 set) 652 665 {