411-sfp-add-sfp-compatible.patch 763 B

123456789101112131415161718192021222324
  1. From 3344f73509a34d2124b716efc79cd9787773018b Mon Sep 17 00:00:00 2001
  2. From: Russell King <rmk+kernel@armlinux.org.uk>
  3. Date: Fri, 14 Apr 2017 20:17:13 +0100
  4. Subject: sfp: add sfp+ compatible
  5. Add a compatible for SFP+ cages. SFP+ cages are backwards compatible,
  6. but the ethernet device behind them may not support the slower speeds
  7. of SFP modules.
  8. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
  9. ---
  10. drivers/net/phy/sfp.c | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/drivers/net/phy/sfp.c
  13. +++ b/drivers/net/phy/sfp.c
  14. @@ -1169,6 +1169,7 @@ static int sfp_remove(struct platform_de
  15. static const struct of_device_id sfp_of_match[] = {
  16. { .compatible = "sff,sfp", },
  17. + { .compatible = "sff,sfp+", },
  18. { },
  19. };
  20. MODULE_DEVICE_TABLE(of, sfp_of_match);