Skip to contentSkip to conversation

linux-ti33x-psp 3.2: demote cpsw PHY message to INFO

PATCH In review Koen Kooi 2 participants 6 messages May 17, 2012

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/2 linux-ti33x-psp 3.2: demote cpsw PHY message to INFO

This keeps them from appearing on the screen during quiet boots. They are still being reported, so no info is lost.

---
 ...pws-phy_device-demote-PHY-message-to-INFO.patch |   51 ++++++++++++++++++++
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb        |    3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch new file +51 -0
new file mode 100644
index 0000000..2aed646
@@ -0,0 +1,51 @@
+From 04924dfd0335b8adca0e7783112827df30e70a5f Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Thu, 17 May 2012 10:59:18 +0200
+Subject: [PATCH] cpsw,phy_device: demote PHY message to INFO
+
+This keeps them from appearing on the screen when booting with 'quiet'
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ drivers/net/ethernet/ti/cpsw.c |    2 +-
+ drivers/net/phy/phy_device.c   |    4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
+index 86fe57d..d10996d 100644
+--- a/drivers/net/ethernet/ti/cpsw.c
++++ b/drivers/net/ethernet/ti/cpsw.c
+@@ -638,7 +638,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv)
+ 		    slave->data->phy_id, slave->slave_num);
+ 		slave->phy = NULL;
+ 	} else {
+-		printk(KERN_ERR"\nCPSW phy found : id is : 0x%x\n",
++		printk(KERN_INFO"\nCPSW phy found : id is : 0x%x\n",
+ 			slave->phy->phy_id);
+ 		cpsw_set_phy_config(priv, slave->phy);
+ 		phy_start(slave->phy);
+diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
+index 83a5a5a..8b84789 100644
+--- a/drivers/net/phy/phy_device.c
++++ b/drivers/net/phy/phy_device.c
+@@ -380,7 +380,7 @@ struct phy_device * phy_connect(struct net_device *dev, const char *bus_id,
+ 	 * PHY with the requested name */
+ 	d = bus_find_device_by_name(&mdio_bus_type, NULL, bus_id);
+ 	if (!d) {
+-		pr_err("PHY %s not found\n", bus_id);
++		pr_info("PHY %s not found\n", bus_id);
+ 		return ERR_PTR(-ENODEV);
+ 	}
+ 	phydev = to_phy_device(d);
+@@ -503,7 +503,7 @@ struct phy_device *phy_attach(struct net_device *dev,
+ 	 * PHY with the requested name */
+ 	d = bus_find_device_by_name(bus, NULL, bus_id);
+ 	if (!d) {
+-		pr_err("PHY %s not found\n", bus_id);
++		pr_info("PHY %s not found\n", bus_id);
+ 		return ERR_PTR(-ENODEV);
+ 	}
+ 	phydev = to_phy_device(d);
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +2 -1
index 6c5056a..0fe3d4f 100644
@@ -12,7 +12,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
@@ -970,4 +970,5 @@ PATCHES_OVER_PSP = " \
     file://beaglebone/0043-st7735fb-Working-WIP-changes-to-make-DMA-safe-and-ad.patch \
 	file://beaglebone/0044-omap-hwmod-silence-st_shift-error.patch \
 	file://beaglebone/0001-arm-boot-compressed-default-asm-arch-to-armv7-a.patch \
+	file://beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch \
 "
Signature · 1 line
1.7.10
author
#1 lore raw

PATCH 2/2 linux-ti33x-psp 3.2: correct PV for non-tipsp distros

The patchset updates the kernel to 3.2.x, so make PV match.
This doesn't need PR or MACHINE_KERNEL_PR bumps since the both the kernel ABI and file locations remain the same.

---
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb |    4 ++++
 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +4 -0
index 0fe3d4f..efc5adb 100644
@@ -10,6 +10,10 @@ S = "${WORKDIR}/git"
 
 MULTI_CONFIG_BASE_SUFFIX = ""
 
+# the PATCHES_OVER_PSP updates it to 3.2.x, so adjust PV to match
+PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.16", d)}"
+FILESPATH =. "${FILE_DIRNAME}/${PN}-3.2:${FILE_DIRNAME}/${PN}-3.2/${MACHINE}:"
+
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
 MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
Signature · 1 line
1.7.10
#2 lore raw

Re: [PATCH 2/2] linux-ti33x-psp 3.2: correct PV for non-tipsp distros

Quoted 13 lines · Koen Kooi

The patchset updates the kernel to 3.2.x, so make PV match.
This doesn't need PR or MACHINE_KERNEL_PR bumps since the both the kernel ABI and file locations remain the same.

---
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb |    4 ++++
 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +0 -0
index 0fe3d4f..efc5adb 100644

recipes-kernel/linux/linux-ti33x-psp_3.2.bb S = "${WORKDIR}/git" · line 15

Quoted 6 lines
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +3 -0
@@ -10,6 +10,10 @@ S = "${WORKDIR}/git"
 
 MULTI_CONFIG_BASE_SUFFIX = ""
 
+# the PATCHES_OVER_PSP updates it to 3.2.x, so adjust PV to match
+PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.16", d)}"
+FILESPATH =. "${FILE_DIRNAME}/${PN}-3.2:${FILE_DIRNAME}/${PN}-3.2/${MACHINE}:"

Are you planning to use ${PN}-3.2.16 in FILESPATH for patches or defconfigs? If not, I'd like to try to fix it differently...

Signature · 1 line
Denys
Quoted 12 lines
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +1 -0
+
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
 MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
Signature · 6 lines
1.7.10

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#3 lore raw

Re: [PATCH 2/2] linux-ti33x-psp 3.2: correct PV for non-tipsp distros

Op 17 mei 2012, om 20:28 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 15 lines · Koen Kooi
Quoted 14 lines

The patchset updates the kernel to 3.2.x, so make PV match.
This doesn't need PR or MACHINE_KERNEL_PR bumps since the both the kernel ABI and file locations remain the same.

---
recipes-kernel/linux/linux-ti33x-psp_3.2.bb | 4 ++++

1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +0 -0
index 0fe3d4f..efc5adb 100644
@@ -10,6 +10,10 @@ S = "${WORKDIR}/git"
 
Quoted 8 lines

recipes-kernel/linux/linux-ti33x-psp_3.2.bb S = "${WORKDIR}/git" · line 15

Quoted 5 lines

MULTI_CONFIG_BASE_SUFFIX = ""

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +3 -0
+# the PATCHES_OVER_PSP updates it to 3.2.x, so adjust PV to match
+PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.16", d)}"
+FILESPATH =. "${FILE_DIRNAME}/${PN}-3.2:${FILE_DIRNAME}/${PN}-3.2/${MACHINE}:"

Are you planning to use ${PN}-3.2.16 in FILESPATH for patches or defconfigs? If not, I'd like to try to fix it differently...

I went for the minimal patch, I have no objection to you fixing it properly :)

regards,

Koen

#4 lore raw
In reply to Koen Kooi
Quoted 80 lines · Koen Kooi

This keeps them from appearing on the screen during quiet boots. They are still being reported, so no info is lost.

---
 ...pws-phy_device-demote-PHY-message-to-INFO.patch |   51 ++++++++++++++++++++
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb        |    3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch new file +51 -0
new file mode 100644
index 0000000..2aed646
@@ -0,0 +1,51 @@
+From 04924dfd0335b8adca0e7783112827df30e70a5f Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Thu, 17 May 2012 10:59:18 +0200
+Subject: [PATCH] cpsw,phy_device: demote PHY message to INFO
+
+This keeps them from appearing on the screen when booting with 'quiet'
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ drivers/net/ethernet/ti/cpsw.c |    2 +-
+ drivers/net/phy/phy_device.c   |    4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
+index 86fe57d..d10996d 100644
+--- a/drivers/net/ethernet/ti/cpsw.c
++++ b/drivers/net/ethernet/ti/cpsw.c
+@@ -638,7 +638,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv)
+ 		    slave->data->phy_id, slave->slave_num);
+ 		slave->phy = NULL;
+ 	} else {
+-		printk(KERN_ERR"\nCPSW phy found : id is : 0x%x\n",
++		printk(KERN_INFO"\nCPSW phy found : id is : 0x%x\n",
+ 			slave->phy->phy_id);
+ 		cpsw_set_phy_config(priv, slave->phy);
+ 		phy_start(slave->phy);
+diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
+index 83a5a5a..8b84789 100644
+--- a/drivers/net/phy/phy_device.c
++++ b/drivers/net/phy/phy_device.c
+@@ -380,7 +380,7 @@ struct phy_device * phy_connect(struct net_device *dev, const char *bus_id,
+ 	 * PHY with the requested name */
+ 	d = bus_find_device_by_name(&mdio_bus_type, NULL, bus_id);
+ 	if (!d) {
+-		pr_err("PHY %s not found\n", bus_id);
++		pr_info("PHY %s not found\n", bus_id);
+ 		return ERR_PTR(-ENODEV);
+ 	}
+ 	phydev = to_phy_device(d);
+@@ -503,7 +503,7 @@ struct phy_device *phy_attach(struct net_device *dev,
+ 	 * PHY with the requested name */
+ 	d = bus_find_device_by_name(bus, NULL, bus_id);
+ 	if (!d) {
+-		pr_err("PHY %s not found\n", bus_id);
++		pr_info("PHY %s not found\n", bus_id);
+ 		return ERR_PTR(-ENODEV);
+ 	}
+ 	phydev = to_phy_device(d);
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +1 -1
index 6c5056a..0fe3d4f 100644
@@ -12,7 +12,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 

recipes-kernel/linux/linux-ti33x-psp_3.2.bb PATCHES_OVER_PSP = " \ · line 971

Quoted 2 lines
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +0 -0
@@ -970,4 +970,5 @@ PATCHES_OVER_PSP = " \
     file://beaglebone/0043-st7735fb-Working-WIP-changes-to-make-DMA-safe-and-ad.patch \
 	file://beaglebone/0044-omap-hwmod-silence-st_shift-error.patch \

This 0044 patch seems to be missing - did you forget to submit it?

Signature · 1 line
Denys
Quoted 11 lines
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +1 -0
 	file://beaglebone/0001-arm-boot-compressed-default-asm-arch-to-armv7-a.patch \
+	file://beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch \
 "
Signature · 6 lines
1.7.10

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#5 lore raw

Op 17 mei 2012, om 20:32 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 78 lines · Koen Kooi
Quoted 77 lines

This keeps them from appearing on the screen during quiet boots. They are still being reported, so no info is lost.

---
...pws-phy_device-demote-PHY-message-to-INFO.patch | 51 ++++++++++++++++++++
recipes-kernel/linux/linux-ti33x-psp_3.2.bb | 3 +-

2 files changed, 53 insertions(+), 1 deletion(-)

create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch

recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0045-cpws-phy_device-demote-PHY-message-to-INFO.patch new file +51 -0
new file mode 100644
index 0000000..2aed646
@@ -0,0 +1,51 @@
+From 04924dfd0335b8adca0e7783112827df30e70a5f Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Thu, 17 May 2012 10:59:18 +0200
+Subject: [PATCH] cpsw,phy_device: demote PHY message to INFO
+
+This keeps them from appearing on the screen when booting with 'quiet'
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ drivers/net/ethernet/ti/cpsw.c |    2 +-
+ drivers/net/phy/phy_device.c   |    4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
+index 86fe57d..d10996d 100644
+--- a/drivers/net/ethernet/ti/cpsw.c
++++ b/drivers/net/ethernet/ti/cpsw.c
+@@ -638,7 +638,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv)
+ 		    slave->data->phy_id, slave->slave_num);
+ 		slave->phy = NULL;
+ 	} else {
+-		printk(KERN_ERR"\nCPSW phy found : id is : 0x%x\n",
++		printk(KERN_INFO"\nCPSW phy found : id is : 0x%x\n",
+ 			slave->phy->phy_id);
+ 		cpsw_set_phy_config(priv, slave->phy);
+ 		phy_start(slave->phy);
+diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
+index 83a5a5a..8b84789 100644
+--- a/drivers/net/phy/phy_device.c
++++ b/drivers/net/phy/phy_device.c
+@@ -380,7 +380,7 @@ struct phy_device * phy_connect(struct net_device *dev, const char *bus_id,
+ 	 * PHY with the requested name */
+ 	d = bus_find_device_by_name(&mdio_bus_type, NULL, bus_id);
+ 	if (!d) {
+-		pr_err("PHY %s not found\n", bus_id);
++		pr_info("PHY %s not found\n", bus_id);
+ 		return ERR_PTR(-ENODEV);
+ 	}
+ 	phydev = to_phy_device(d);
+@@ -503,7 +503,7 @@ struct phy_device *phy_attach(struct net_device *dev,
+ 	 * PHY with the requested name */
+ 	d = bus_find_device_by_name(bus, NULL, bus_id);
+ 	if (!d) {
+-		pr_err("PHY %s not found\n", bus_id);
++		pr_info("PHY %s not found\n", bus_id);
+ 		return ERR_PTR(-ENODEV);
+ 	}
+ 	phydev = to_phy_device(d);
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +0 -0
index 6c5056a..0fe3d4f 100644
@@ -12,7 +12,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 

BRANCH = "v3.2-staging"
SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +1 -1
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
Quoted 7 lines

recipes-kernel/linux/linux-ti33x-psp_3.2.bb PATCHES_OVER_PSP = " \ · line 971

Quoted 5 lines

COMPATIBLE_MACHINE = "(ti33x)"

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +0 -0
@@ -970,4 +970,5 @@ PATCHES_OVER_PSP = " \
    file://beaglebone/0043-st7735fb-Working-WIP-changes-to-make-DMA-safe-and-ad.patch \
 	file://beaglebone/0044-omap-hwmod-silence-st_shift-error.patch \

This 0044 patch seems to be missing - did you forget to submit it?

No, it's a discrepancy caused by git-am -3 auto dropping patches. The upstream patch scripts merges in .17, which I want to hold of on for a few days till after the A6 build.

regards,

Koen