]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
miiphy: Note that miiphy_* API is deprecated
authorAndy Fleming <afleming@freescale.com>
Mon, 31 Oct 2011 14:46:13 +0000 (09:46 -0500)
committerWolfgang Denk <wd@denx.de>
Mon, 5 Dec 2011 21:17:06 +0000 (22:17 +0100)
We want to move everything to phylib, and we definitely don't want
new drivers using the miiphy infrastructure.

Signed-off-by: Andy Fleming <afleming@freescale.com>
common/miiphyutil.c
doc/feature-removal-schedule.txt

index 35ad357b95072384139679d1f3bd34a3f5ec6bc1..2cc23b410a22bf38ed1d55eecf4f4915fa8e2082 100644 (file)
@@ -102,6 +102,7 @@ static int legacy_miiphy_write(struct mii_dev *bus, int addr, int devad,
 /*****************************************************************************
  *
  * Register read and write MII access routines for the device <name>.
+ * This API is now deprecated. Please use mdio_alloc and mdio_register, instead.
  */
 void miiphy_register(const char *name,
                      int (*read)(const char *devname, unsigned char addr,
@@ -281,6 +282,8 @@ static struct mii_dev *miiphy_get_active_dev(const char *devname)
  * Read to variable <value> from the PHY attached to device <devname>,
  * use PHY address <addr> and register <reg>.
  *
+ * This API is deprecated. Use phy_read on a phy_device found via phy_connect
+ *
  * Returns:
  *   0 on success
  */
@@ -307,6 +310,8 @@ int miiphy_read(const char *devname, unsigned char addr, unsigned char reg,
  * Write <value> to the PHY attached to device <devname>,
  * use PHY address <addr> and register <reg>.
  *
+ * This API is deprecated. Use phy_write on a phy_device found by phy_connect
+ *
  * Returns:
  *   0 on success
  */
@@ -350,6 +355,8 @@ void miiphy_listdev(void)
  * Model:    6 bits (unsigned char)
  * Revision: 4 bits (unsigned char)
  *
+ * This API is deprecated.
+ *
  * Returns:
  *   0 on success
  */
@@ -389,6 +396,9 @@ int miiphy_info(const char *devname, unsigned char addr, unsigned int *oui,
 /*****************************************************************************
  *
  * Reset the PHY.
+ *
+ * This API is deprecated. Use PHYLIB.
+ *
  * Returns:
  *   0 on success
  */
index 00d87e44123e0a2c03b426cb26d47fefb2bbc652..e04ba2dda5a35f09479b26120ee18e63dbda66f4 100644 (file)
@@ -7,6 +7,17 @@ file.
 
 ---------------------------
 
+What:  Users of the legacy miiphy_* code
+When:  undetermined
+
+Why:   We now have a PHY library, which allows everyone to share PHY
+       drivers. All new drivers should use this infrastructure, and
+       all old drivers should get converted to use it.
+
+Who:   Andy Fleming <afleming@freescale.com> and driver maintainers
+
+---------------------------
+
 What:  boards with xxx_config targets in top level Makefile
 When:  Release v2012.03