diff options
author | Woojung.Huh@microchip.com <Woojung.Huh@microchip.com> | 2016-12-07 20:26:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-08 14:21:47 -0500 |
commit | f38e7a32ee4fc9c8aeeac59e6e0462cd281586e3 (patch) | |
tree | 14eef0d77ae6fef29ebcbd179681d74bcf2ef1e8 /Documentation/networking | |
parent | d2a4dd37f6b41fbcad76efbf63124eb3126c66fe (diff) | |
download | op-kernel-dev-f38e7a32ee4fc9c8aeeac59e6e0462cd281586e3.zip op-kernel-dev-f38e7a32ee4fc9c8aeeac59e6e0462cd281586e3.tar.gz |
phy: add phy fixup unregister functions
>From : Woojung Huh <woojung.huh@microchip.com>
Add functions to unregister phy fixup for modules.
int phy_unregister_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask)
Unregister phy fixup from phy_fixup_list per bus_id, phy_uid &
phy_uid_mask
int phy_unregister_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask)
Unregister phy fixup from phy_fixup_list.
Use it for fixup registered by phy_register_fixup_for_uid()
int phy_unregister_fixup_for_id(const char *bus_id)
Unregister phy fixup from phy_fixup_list.
Use it for fixup registered by phy_register_fixup_for_id()
Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/networking/phy.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/networking/phy.txt b/Documentation/networking/phy.txt index e017d93..16f90d8 100644 --- a/Documentation/networking/phy.txt +++ b/Documentation/networking/phy.txt @@ -407,6 +407,15 @@ Board Fixups The stubs set one of the two matching criteria, and set the other one to match anything. + When phy_register_fixup() or *_for_uid()/*_for_id() is called at module, + unregister fixup and free allocate memory are required. + + Call one of following function before unloading module. + + int phy_unregister_fixup(const char *phy_id, u32 phy_uid, u32 phy_uid_mask); + int phy_unregister_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask); + int phy_register_fixup_for_id(const char *phy_id); + Standards IEEE Standard 802.3: CSMA/CD Access Method and Physical Layer Specifications, Section Two: |