All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Do not force master mode on unaffected PHY's
@ 2016-11-08 16:38 Olliver Schinagl
  2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-08 16:38 UTC (permalink / raw)
  To: u-boot

The current implementation to force the PHY into master mode is to have a
define which affects all realtek PHY's. This is not needed as the problem
only exists in the RTL8211C chips. Let us thus turn this into a quirk flag
instead.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro
  2016-11-08 16:38 [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Olliver Schinagl
@ 2016-11-08 16:38 ` Olliver Schinagl
  2016-11-09 21:42   ` [U-Boot] [linux-sunxi] " Priit Laes
                     ` (2 more replies)
  2016-11-08 16:38 ` [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent Olliver Schinagl
                   ` (2 subsequent siblings)
  3 siblings, 3 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-08 16:38 UTC (permalink / raw)
  To: u-boot

The BIT macro is the preferred method to set bits.
This patch adds the bit macro and converts bit invocations.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---
 drivers/net/phy/realtek.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index 7a99cb0..35b934b 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -9,13 +9,14 @@
  */
 #include <config.h>
 #include <common.h>
+#include <linux/bitops.h>
 #include <phy.h>
 
 #define PHY_AUTONEGOTIATE_TIMEOUT 5000
 
 /* RTL8211x 1000BASE-T Control Register */
-#define MIIM_RTL8211x_CTRL1000T_MSCE (1 << 12);
-#define MIIM_RTL8211X_CTRL1000T_MASTER (1 << 11);
+#define MIIM_RTL8211x_CTRL1000T_MSCE BIT(12);
+#define MIIM_RTL8211X_CTRL1000T_MASTER BIT(11);
 
 /* RTL8211x PHY Status Register */
 #define MIIM_RTL8211x_PHY_STATUS       0x11
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent
  2016-11-08 16:38 [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Olliver Schinagl
  2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
@ 2016-11-08 16:38 ` Olliver Schinagl
  2016-11-08 23:17   ` [U-Boot] [linux-sunxi] " Emilio López
                     ` (2 more replies)
  2016-11-08 16:38 ` [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c Olliver Schinagl
  2016-11-14 11:26 ` [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Hans de Goede
  3 siblings, 3 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-08 16:38 UTC (permalink / raw)
  To: u-boot

All internal defines in the realtek phy are with a small X,
except MIIM_RTL8211X_CTRL1000T_MASTER. Make this more concistent

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---
 drivers/net/phy/realtek.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index 35b934b..62b8c1e 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -16,7 +16,7 @@
 
 /* RTL8211x 1000BASE-T Control Register */
 #define MIIM_RTL8211x_CTRL1000T_MSCE BIT(12);
-#define MIIM_RTL8211X_CTRL1000T_MASTER BIT(11);
+#define MIIM_RTL8211x_CTRL1000T_MASTER BIT(11);
 
 /* RTL8211x PHY Status Register */
 #define MIIM_RTL8211x_PHY_STATUS       0x11
@@ -64,7 +64,7 @@ static int rtl8211x_config(struct phy_device *phydev)
 	/* force manual master/slave configuration */
 	reg |= MIIM_RTL8211x_CTRL1000T_MSCE;
 	/* force master mode */
-	reg |= MIIM_RTL8211X_CTRL1000T_MASTER;
+	reg |= MIIM_RTL8211x_CTRL1000T_MASTER;
 	phy_write(phydev, MDIO_DEVAD_NONE, MII_CTRL1000, reg);
 #endif
 	/* read interrupt status just to clear it */
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c
  2016-11-08 16:38 [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Olliver Schinagl
  2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
  2016-11-08 16:38 ` [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent Olliver Schinagl
@ 2016-11-08 16:38 ` Olliver Schinagl
  2016-11-15  3:34   ` Joe Hershberger
  2016-12-08 17:20   ` [U-Boot] " Joe Hershberger
  2016-11-14 11:26 ` [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Hans de Goede
  3 siblings, 2 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-08 16:38 UTC (permalink / raw)
  To: u-boot

Commit 525d187af ("net: phy: Optionally force master mode for RTL PHY")
added the define to force the PHY into master mode. Unfortunatly this is
an all or nothing switch. So it applies to either all PHY's or no PHY's.

The bug that define tried to solve was a buggy PLL in the RTL8211C only.

The Olimex OLinuXino Lime2 has gotten an upgrade where the PHY was
replaced with an RTL8211E. With this define however, both lime2 boards
are either forced to master mode or not. We could of course have a
binary for each board, but the following patch fixes this by adding a
'quirk' to the flags to the rtl8211b and rtl8211c only. It is now
possible to force master mode, but only have it apply to the rtl8211b
and rtl8211c.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---
 drivers/net/phy/realtek.c | 31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index 62b8c1e..635acf5 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -12,6 +12,8 @@
 #include <linux/bitops.h>
 #include <phy.h>
 
+#define PHY_RTL8211x_FORCE_MASTER BIT(1)
+
 #define PHY_AUTONEGOTIATE_TIMEOUT 5000
 
 /* RTL8211x 1000BASE-T Control Register */
@@ -49,6 +51,15 @@
 #define MIIM_RTL8211F_TX_DELAY		0x100
 #define MIIM_RTL8211F_LCR		0x10
 
+static int rtl8211b_probe(struct phy_device *phydev)
+{
+#ifdef CONFIG_RTL8211X_PHY_FORCE_MASTER
+	phydev->flags |= PHY_RTL8211x_FORCE_MASTER;
+#endif
+
+	return 0;
+}
+
 /* RealTek RTL8211x */
 static int rtl8211x_config(struct phy_device *phydev)
 {
@@ -59,14 +70,17 @@ static int rtl8211x_config(struct phy_device *phydev)
 	 */
 	phy_write(phydev, MDIO_DEVAD_NONE, MIIM_RTL8211x_PHY_INER,
 		  MIIM_RTL8211x_PHY_INTR_DIS);
-#ifdef CONFIG_RTL8211X_PHY_FORCE_MASTER
-	unsigned int reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_CTRL1000);
-	/* force manual master/slave configuration */
-	reg |= MIIM_RTL8211x_CTRL1000T_MSCE;
-	/* force master mode */
-	reg |= MIIM_RTL8211x_CTRL1000T_MASTER;
-	phy_write(phydev, MDIO_DEVAD_NONE, MII_CTRL1000, reg);
-#endif
+
+	if (phydev->flags & PHY_RTL8211x_FORCE_MASTER) {
+		unsigned int reg;
+
+		reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_CTRL1000);
+		/* force manual master/slave configuration */
+		reg |= MIIM_RTL8211x_CTRL1000T_MSCE;
+		/* force master mode */
+		reg |= MIIM_RTL8211x_CTRL1000T_MASTER;
+		phy_write(phydev, MDIO_DEVAD_NONE, MII_CTRL1000, reg);
+	}
 	/* read interrupt status just to clear it */
 	phy_read(phydev, MDIO_DEVAD_NONE, MIIM_RTL8211x_PHY_INER);
 
@@ -249,6 +263,7 @@ static struct phy_driver RTL8211B_driver = {
 	.uid = 0x1cc912,
 	.mask = 0xffffff,
 	.features = PHY_GBIT_FEATURES,
+	.probe = &rtl8211b_probe,
 	.config = &rtl8211x_config,
 	.startup = &rtl8211x_startup,
 	.shutdown = &genphy_shutdown,
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH 2/3] net: phy: realtek: make define more concistent
  2016-11-08 16:38 ` [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent Olliver Schinagl
@ 2016-11-08 23:17   ` Emilio López
  2016-11-09 10:34     ` Olliver Schinagl
  2016-11-15  2:52   ` [U-Boot] " Joe Hershberger
  2016-12-08 17:20   ` [U-Boot] net: phy: realtek: make define more consistent Joe Hershberger
  2 siblings, 1 reply; 18+ messages in thread
From: Emilio López @ 2016-11-08 23:17 UTC (permalink / raw)
  To: u-boot

Small nitpick:

El 08/11/16 a las 13:38, Olliver Schinagl escribi?:
> All internal defines in the realtek phy are with a small X,
> except MIIM_RTL8211X_CTRL1000T_MASTER. Make this more concistent

s/concistent/consistent/ both here and on the subject :)

Cheers!
Emilio

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH 2/3] net: phy: realtek: make define more concistent
  2016-11-08 23:17   ` [U-Boot] [linux-sunxi] " Emilio López
@ 2016-11-09 10:34     ` Olliver Schinagl
  0 siblings, 0 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-09 10:34 UTC (permalink / raw)
  To: u-boot

Crap! I thought I spotted it but wasn't sure :)


If there needs to be a v2 i'll fix it; if the v1 is accepted, Joe could 
hopefully fix that in the message *wink* :)


Olliver


On 09-11-16 00:17, Emilio L?pez wrote:
> Small nitpick:
>
> El 08/11/16 a las 13:38, Olliver Schinagl escribi?:
>> All internal defines in the realtek phy are with a small X,
>> except MIIM_RTL8211X_CTRL1000T_MASTER. Make this more concistent
> s/concistent/consistent/ both here and on the subject :)
>
> Cheers!
> Emilio

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH 1/3] net: phy: realtek: Use the BIT() macro
  2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
@ 2016-11-09 21:42   ` Priit Laes
  2016-11-09 22:40     ` Olliver Schinagl
  2016-11-15  3:19   ` [U-Boot] " Joe Hershberger
  2016-12-08 17:20   ` [U-Boot] " Joe Hershberger
  2 siblings, 1 reply; 18+ messages in thread
From: Priit Laes @ 2016-11-09 21:42 UTC (permalink / raw)
  To: u-boot

On Tue, 2016-11-08 at 17:38 +0100, Olliver Schinagl wrote:
> The BIT macro is the preferred method to set bits.
> This patch adds the bit macro and converts bit invocations.
> 
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
> ---
> ?drivers/net/phy/realtek.c | 5 +++--
> ?1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
> index 7a99cb0..35b934b 100644
> --- a/drivers/net/phy/realtek.c
> +++ b/drivers/net/phy/realtek.c
> @@ -9,13 +9,14 @@
> ? */
> ?#include <config.h>
> ?#include <common.h>
> +#include <linux/bitops.h>
> ?#include <phy.h>
> ?
> ?#define PHY_AUTONEGOTIATE_TIMEOUT 5000
> ?
> ?/* RTL8211x 1000BASE-T Control Register */
> -#define MIIM_RTL8211x_CTRL1000T_MSCE (1 << 12);
> -#define MIIM_RTL8211X_CTRL1000T_MASTER (1 << 11);
> +#define MIIM_RTL8211x_CTRL1000T_MSCE BIT(12);
> +#define MIIM_RTL8211X_CTRL1000T_MASTER BIT(11);

You should also get rid of semicolons.


> ?
> ?/* RTL8211x PHY Status Register */
> ?#define MIIM_RTL8211x_PHY_STATUS???????0x11
> --?
> 2.10.2
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH 1/3] net: phy: realtek: Use the BIT() macro
  2016-11-09 21:42   ` [U-Boot] [linux-sunxi] " Priit Laes
@ 2016-11-09 22:40     ` Olliver Schinagl
  0 siblings, 0 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-09 22:40 UTC (permalink / raw)
  To: u-boot

Hi,


On 09-11-16 22:42, Priit Laes wrote:
> On Tue, 2016-11-08 at 17:38 +0100, Olliver Schinagl wrote:
>> The BIT macro is the preferred method to set bits.
>> This patch adds the bit macro and converts bit invocations.
>>
>> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
>> ---
>>   drivers/net/phy/realtek.c | 5 +++--
>>   1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
>> index 7a99cb0..35b934b 100644
>> --- a/drivers/net/phy/realtek.c
>> +++ b/drivers/net/phy/realtek.c
>> @@ -9,13 +9,14 @@
>>    */
>>   #include <config.h>
>>   #include <common.h>
>> +#include <linux/bitops.h>
>>   #include <phy.h>
>>   
>>   #define PHY_AUTONEGOTIATE_TIMEOUT 5000
>>   
>>   /* RTL8211x 1000BASE-T Control Register */
>> -#define MIIM_RTL8211x_CTRL1000T_MSCE (1 << 12);
>> -#define MIIM_RTL8211X_CTRL1000T_MASTER (1 << 11);
>> +#define MIIM_RTL8211x_CTRL1000T_MSCE BIT(12);
>> +#define MIIM_RTL8211X_CTRL1000T_MASTER BIT(11);
ah yeah, didn't even notice it, it's actually wrong. Also here, if 
that's all I don't mind if it gets fixed in the merge, if it needs a v2 
I'll gladly do it however.

Olliver
> You should also get rid of semicolons.
>
>
>>   
>>   /* RTL8211x PHY Status Register */
>>   #define MIIM_RTL8211x_PHY_STATUS       0x11
>> -- 
>> 2.10.2
>>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH] Do not force master mode on unaffected PHY's
  2016-11-08 16:38 [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Olliver Schinagl
                   ` (2 preceding siblings ...)
  2016-11-08 16:38 ` [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c Olliver Schinagl
@ 2016-11-14 11:26 ` Hans de Goede
  2016-11-14 14:11   ` Olliver Schinagl
  3 siblings, 1 reply; 18+ messages in thread
From: Hans de Goede @ 2016-11-14 11:26 UTC (permalink / raw)
  To: u-boot

Hi,

On 08-11-16 17:38, Olliver Schinagl wrote:
> The current implementation to force the PHY into master mode is to have a
> define which affects all realtek PHY's. This is not needed as the problem
> only exists in the RTL8211C chips. Let us thus turn this into a quirk flag
> instead.

Series looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH] Do not force master mode on unaffected PHY's
  2016-11-14 11:26 ` [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Hans de Goede
@ 2016-11-14 14:11   ` Olliver Schinagl
  2016-11-14 14:13     ` Hans de Goede
  0 siblings, 1 reply; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-14 14:11 UTC (permalink / raw)
  To: u-boot

Hey Hans,


On 14-11-16 12:26, Hans de Goede wrote:
> Hi,
>
> On 08-11-16 17:38, Olliver Schinagl wrote:
>> The current implementation to force the PHY into master mode is to 
>> have a
>> define which affects all realtek PHY's. This is not needed as the 
>> problem
>> only exists in the RTL8211C chips. Let us thus turn this into a quirk 
>> flag
>> instead.
>
> Series looks good to me:
>
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Thanks, but keep your eye on the thread. I'm working on a v3 where i'm 
pulling the eeprom stuff out of the sunxi stuff, and in the net-uclass 
layer!

Olliver
>
> Regards,
>
> Hans

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH] Do not force master mode on unaffected PHY's
  2016-11-14 14:11   ` Olliver Schinagl
@ 2016-11-14 14:13     ` Hans de Goede
  2016-11-14 14:13       ` Olliver Schinagl
  0 siblings, 1 reply; 18+ messages in thread
From: Hans de Goede @ 2016-11-14 14:13 UTC (permalink / raw)
  To: u-boot

Hi,

On 14-11-16 15:11, Olliver Schinagl wrote:
> Hey Hans,
>
>
> On 14-11-16 12:26, Hans de Goede wrote:
>> Hi,
>>
>> On 08-11-16 17:38, Olliver Schinagl wrote:
>>> The current implementation to force the PHY into master mode is to have a
>>> define which affects all realtek PHY's. This is not needed as the problem
>>> only exists in the RTL8211C chips. Let us thus turn this into a quirk flag
>>> instead.
>>
>> Series looks good to me:
>>
>> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
> Thanks, but keep your eye on the thread. I'm working on a v3 where i'm pulling the eeprom stuff out of the sunxi stuff, and in the net-uclass layer!

Erm, this is another series :)

Regards,

Hans

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH] Do not force master mode on unaffected PHY's
  2016-11-14 14:13     ` Hans de Goede
@ 2016-11-14 14:13       ` Olliver Schinagl
  0 siblings, 0 replies; 18+ messages in thread
From: Olliver Schinagl @ 2016-11-14 14:13 UTC (permalink / raw)
  To: u-boot

Hans,


On 14-11-16 15:13, Hans de Goede wrote:
> Hi,
>
> On 14-11-16 15:11, Olliver Schinagl wrote:
>> Hey Hans,
>>
>>
>> On 14-11-16 12:26, Hans de Goede wrote:
>>> Hi,
>>>
>>> On 08-11-16 17:38, Olliver Schinagl wrote:
>>>> The current implementation to force the PHY into master mode is to 
>>>> have a
>>>> define which affects all realtek PHY's. This is not needed as the 
>>>> problem
>>>> only exists in the RTL8211C chips. Let us thus turn this into a 
>>>> quirk flag
>>>> instead.
>>>
>>> Series looks good to me:
>>>
>>> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
>> Thanks, but keep your eye on the thread. I'm working on a v3 where 
>> i'm pulling the eeprom stuff out of the sunxi stuff, and in the 
>> net-uclass layer!
>
> Erm, this is another series :)
Ah poop. You are right! Sorry :)
>
> Regards,
>
> Hans

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent
  2016-11-08 16:38 ` [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent Olliver Schinagl
  2016-11-08 23:17   ` [U-Boot] [linux-sunxi] " Emilio López
@ 2016-11-15  2:52   ` Joe Hershberger
  2016-12-08 17:20   ` [U-Boot] net: phy: realtek: make define more consistent Joe Hershberger
  2 siblings, 0 replies; 18+ messages in thread
From: Joe Hershberger @ 2016-11-15  2:52 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 8, 2016 at 10:38 AM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> All internal defines in the realtek phy are with a small X,
> except MIIM_RTL8211X_CTRL1000T_MASTER. Make this more concistent
>
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

I'll fix up the typo.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro
  2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
  2016-11-09 21:42   ` [U-Boot] [linux-sunxi] " Priit Laes
@ 2016-11-15  3:19   ` Joe Hershberger
  2016-12-08 17:20   ` [U-Boot] " Joe Hershberger
  2 siblings, 0 replies; 18+ messages in thread
From: Joe Hershberger @ 2016-11-15  3:19 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 8, 2016 at 10:38 AM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> The BIT macro is the preferred method to set bits.
> This patch adds the bit macro and converts bit invocations.
>
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

I can clean up the ';' inline.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c
  2016-11-08 16:38 ` [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c Olliver Schinagl
@ 2016-11-15  3:34   ` Joe Hershberger
  2016-12-08 17:20   ` [U-Boot] " Joe Hershberger
  1 sibling, 0 replies; 18+ messages in thread
From: Joe Hershberger @ 2016-11-15  3:34 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 8, 2016 at 10:38 AM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> Commit 525d187af ("net: phy: Optionally force master mode for RTL PHY")
> added the define to force the PHY into master mode. Unfortunatly this is
> an all or nothing switch. So it applies to either all PHY's or no PHY's.
>
> The bug that define tried to solve was a buggy PLL in the RTL8211C only.
>
> The Olimex OLinuXino Lime2 has gotten an upgrade where the PHY was
> replaced with an RTL8211E. With this define however, both lime2 boards
> are either forced to master mode or not. We could of course have a
> binary for each board, but the following patch fixes this by adding a
> 'quirk' to the flags to the rtl8211b and rtl8211c only. It is now
> possible to force master mode, but only have it apply to the rtl8211b
> and rtl8211c.
>
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] net: phy: realtek: Use the BIT() macro
  2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
  2016-11-09 21:42   ` [U-Boot] [linux-sunxi] " Priit Laes
  2016-11-15  3:19   ` [U-Boot] " Joe Hershberger
@ 2016-12-08 17:20   ` Joe Hershberger
  2 siblings, 0 replies; 18+ messages in thread
From: Joe Hershberger @ 2016-12-08 17:20 UTC (permalink / raw)
  To: u-boot

Hi oliver at schinagl.nl,

https://patchwork.ozlabs.org/patch/692379/ was applied to u-boot-net.git.

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] net: phy: realtek: make define more consistent
  2016-11-08 16:38 ` [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent Olliver Schinagl
  2016-11-08 23:17   ` [U-Boot] [linux-sunxi] " Emilio López
  2016-11-15  2:52   ` [U-Boot] " Joe Hershberger
@ 2016-12-08 17:20   ` Joe Hershberger
  2 siblings, 0 replies; 18+ messages in thread
From: Joe Hershberger @ 2016-12-08 17:20 UTC (permalink / raw)
  To: u-boot

Hi oliver at schinagl.nl,

https://patchwork.ozlabs.org/patch/692377/ was applied to u-boot-net.git.

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] net: phy: realtek: Only force master mode on rtl8211b/c
  2016-11-08 16:38 ` [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c Olliver Schinagl
  2016-11-15  3:34   ` Joe Hershberger
@ 2016-12-08 17:20   ` Joe Hershberger
  1 sibling, 0 replies; 18+ messages in thread
From: Joe Hershberger @ 2016-12-08 17:20 UTC (permalink / raw)
  To: u-boot

Hi oliver at schinagl.nl,

https://patchwork.ozlabs.org/patch/692378/ was applied to u-boot-net.git.

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-12-08 17:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 16:38 [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Olliver Schinagl
2016-11-08 16:38 ` [U-Boot] [PATCH 1/3] net: phy: realtek: Use the BIT() macro Olliver Schinagl
2016-11-09 21:42   ` [U-Boot] [linux-sunxi] " Priit Laes
2016-11-09 22:40     ` Olliver Schinagl
2016-11-15  3:19   ` [U-Boot] " Joe Hershberger
2016-12-08 17:20   ` [U-Boot] " Joe Hershberger
2016-11-08 16:38 ` [U-Boot] [PATCH 2/3] net: phy: realtek: make define more concistent Olliver Schinagl
2016-11-08 23:17   ` [U-Boot] [linux-sunxi] " Emilio López
2016-11-09 10:34     ` Olliver Schinagl
2016-11-15  2:52   ` [U-Boot] " Joe Hershberger
2016-12-08 17:20   ` [U-Boot] net: phy: realtek: make define more consistent Joe Hershberger
2016-11-08 16:38 ` [U-Boot] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c Olliver Schinagl
2016-11-15  3:34   ` Joe Hershberger
2016-12-08 17:20   ` [U-Boot] " Joe Hershberger
2016-11-14 11:26 ` [U-Boot] [PATCH] Do not force master mode on unaffected PHY's Hans de Goede
2016-11-14 14:11   ` Olliver Schinagl
2016-11-14 14:13     ` Hans de Goede
2016-11-14 14:13       ` Olliver Schinagl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.