Skip to contentSkip to conversation

ARM: dts: imx6dl-yapp4: Use correct pseudo PHY address for the switch

PATCH Applied Michal Vokáč 3 participants 6 messages Mar 20, 2019 – Mar 22, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx6dl-yapp4: Use correct pseudo PHY address for the switch

The switch is accessible through pseudo PHY which is located at 0x10.

---
 arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +2 -2
index 091d829f6b05..e8d800fec637 100644
@@ -114,9 +114,9 @@
 			reg = <2>;
 		};
 
-		switch@0 {
+		switch@10 {
 			compatible = "qca,qca8334";
-			reg = <0>;
+			reg = <10>;
 
 			switch_ports: ports {
 				#address-cells = <1>;
Signature · 1 line
2.1.4
#1 lore raw
Quoted 1 line · CET Michal Vokáč

The switch is accessible through pseudo PHY which is located at 0x10.

from what I know the switch@0 came from John' original qca8k submission patch
<https://lore.kernel.org/patchwork/patch/715974/> (this is v1! not the later version)

In this version, the qca8k_sw_probe() function used read the MII_PHYID1 and 2 from the PHY0 in order to identify the switch (much like ar8216.c / ar8327.c switchdev does):

|	/* sw_addr is irrelevant as the switch occupies the MDIO bus from
|	 * addresses 0 to 4 (PHYs) and 16-23 (for MDIO 32bits protocol). So
|	 * we'll probe address 0 to see if we see the right switch family.
|	 */
|	phy_id = mdiobus_read(mdiodev->bus, 0, MII_PHYSID1) << 16;
|	phy_id |= mdiobus_read(mdiodev->bus, 0, MII_PHYSID2);
|
|	switch (phy_id) {
|	case PHY_ID_QCA8337:
|		break;
|	default:
|		return -ENODEV;
|	}

However, this code was changed in v2. Probably because if the PHY is put in isolation and powered down the MII_PHYID1 and 2 will read "0xffff". So the discovery would no longer worked on systems that purposely disable the switch during the bootloader-handoff procedure (like the Meraki MX60).

Quoted 22 lines
---
 arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +2 -2
index 091d829f6b05..e8d800fec637 100644
@@ -114,9 +114,9 @@
 			reg = <2>;
 		};
 
-		switch@0 {
+		switch@10 {
 			compatible = "qca,qca8334";
-			reg = <0>;
+			reg = <10>;
 
 			switch_ports: ports {
 				#address-cells = <1>;

A message that is not in the archive (sent off-list or not yet received): 3351685.tXMZElDEK0@debian64

#3 lore raw

Re: PM: RE: [PATCH] ARM: dts: imx6dl-yapp4: Use correct pseudo PHY address for the switch

Hi Christian,

I added all the original recipients back to your PM as we may get some useful feedback from someone.

Quoted 5 lines · Christian Lamparter
Quoted 1 line · CET you

The switch is accessible through pseudo PHY which is located at 0x10.

It doesn't look like your patch made it to the device-tree patchwork?! (Maybe your @ysoft.com is blacklisted or something else is broken?)

I am aware of that and I am quite sure my mail is not blacklisted. I submitted quite some patches recently and some of those made it to the device-tree patchwork with no problem. I've got the impression that only patches that modify something inside Documentation/devicetree/ are visible there (but I do not really know how the system works).

@Rob, would you mind to shortly clarify how this works?

Quoted 3 lines

Also I don't think devicetree-tree would merge it. I think the best bet would be to resent the mail and include netdev mailing list and everyone from the get_maintainer.pl output:

I always use the get_maintainter.pl script to get some initial list and then I apply common sense to shrink/broaden the list to which people and lists send the patches.

Quoted 7 lines

Shawn Guo <[email protected]> (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Sascha Hauer <[email protected]> (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Pengutronix Kernel Team <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Fabio Estevam <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) NXP Linux Team <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) [email protected] (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) [email protected] (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE)

In this case this is really trivial patch so I think bothering all those people is not necessary. In my case the script actually reports more items then what you posted.

I added you, Florian and Andrew just because I tripped around your patch that fixes the device tree example of the qca8k binding and this change is related to it.

I actually expect the patch to be picked by Shawn (AFAIK he takes care of the imx device trees).

@Shawn, if my expectation is wrong, please correct me.

Anyway, thanks a lot for your comments Christian!

Best regards,
Michal

Quoted 22 lines
Quoted 22 lines
---
  arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +2 -2
index 091d829f6b05..e8d800fec637 100644
@@ -114,9 +114,9 @@
  			reg = <2>;
  		};
 
-		switch@0 {
+		switch@10 {
  			compatible = "qca,qca8334";
-			reg = <0>;
+			reg = <10>;
 
  			switch_ports: ports {
  				#address-cells = <1>;
#4 lore raw

Re: PM: RE: [PATCH] ARM: dts: imx6dl-yapp4: Use correct pseudo PHY address for the switch

Quoted 36 lines · Michal Vokáč

Hi Christian,

I added all the original recipients back to your PM as we may get some useful feedback from someone.

Quoted 5 lines · Christian Lamparter
Quoted 1 line · CET you

The switch is accessible through pseudo PHY which is located at 0x10.

It doesn't look like your patch made it to the device-tree patchwork?! (Maybe your @ysoft.com is blacklisted or something else is broken?)

I am aware of that and I am quite sure my mail is not blacklisted. I submitted quite some patches recently and some of those made it to the device-tree patchwork with no problem. I've got the impression that only patches that modify something inside Documentation/devicetree/ are visible there (but I do not really know how the system works).

@Rob, would you mind to shortly clarify how this works?

Quoted 3 lines

Also I don't think devicetree-tree would merge it. I think the best bet would be to resent the mail and include netdev mailing list and everyone from the get_maintainer.pl output:

I always use the get_maintainter.pl script to get some initial list and then I apply common sense to shrink/broaden the list to which people and lists send the patches.

Quoted 7 lines

Shawn Guo <[email protected]> (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Sascha Hauer <[email protected]> (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Pengutronix Kernel Team <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Fabio Estevam <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) NXP Linux Team <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) [email protected] (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) [email protected] (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE)

Quoted 3 lines

In this case this is really trivial patch so I think bothering all those people is not necessary. In my case the script actually reports more items then what you posted.

For future patches, please do copy folks above. We need more eyes.

Shawn

#5 lore raw

Re: PM: RE: [PATCH] ARM: dts: imx6dl-yapp4: Use correct pseudo PHY address for the switch

Quoted 37 lines · Shawn Guo
Quoted 36 lines · Michal Vokáč

Hi Christian,

I added all the original recipients back to your PM as we may get some useful feedback from someone.

Quoted 5 lines · Christian Lamparter
Quoted 1 line · CET you

The switch is accessible through pseudo PHY which is located at 0x10.

It doesn't look like your patch made it to the device-tree patchwork?! (Maybe your @ysoft.com is blacklisted or something else is broken?)

I am aware of that and I am quite sure my mail is not blacklisted. I submitted quite some patches recently and some of those made it to the device-tree patchwork with no problem. I've got the impression that only patches that modify something inside Documentation/devicetree/ are visible there (but I do not really know how the system works).

@Rob, would you mind to shortly clarify how this works?

Quoted 3 lines

Also I don't think devicetree-tree would merge it. I think the best bet would be to resent the mail and include netdev mailing list and everyone from the get_maintainer.pl output:

I always use the get_maintainter.pl script to get some initial list and then I apply common sense to shrink/broaden the list to which people and lists send the patches.

Quoted 7 lines

Shawn Guo <[email protected]> (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Sascha Hauer <[email protected]> (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Pengutronix Kernel Team <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Fabio Estevam <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) NXP Linux Team <[email protected]> (reviewer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) [email protected] (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) [email protected] (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE)

Quoted 5 lines
Quoted 3 lines

In this case this is really trivial patch so I think bothering all those people is not necessary. In my case the script actually reports more items then what you posted.

For future patches, please do copy folks above. We need more eyes.

OK, I will do so. Thank you Shawn.

Michal