Skip to contentSkip to conversation

PM / AVS: rockchip-io: make the log more consistent

PATCH New Shawn Lin 4 participants 4 messages Oct 10, 2016 – Nov 14, 2016 Arm Rockchip

lore
Share & tools
lore

Shawn Lin

author
#0 lore raw

PATCH 1/1 PM / AVS: rockchip-io: make the log more consistent

When testing SD hotplug automatically, I got bunch of useless log like this:

[  588.357838] mmc0: card 0007 removed
[  589.492664] rockchip-iodomain ff770000.syscon:io-domains: Setting to 3300000 done
[  589.500698] vccio_sd: ramp_delay not set
[  589.504817] rockchip-iodomain ff770000.syscon:io-domains: Setting to 3300000 done
[  589.669705] rockchip-iodomain ff770000.syscon:io-domains: Setting to 3300000 done
[  589.677593] vccio_sd: ramp_delay not set
[  589.681581] rockchip-iodomain ff770000.syscon:io-domains: Setting to 1800000 done
[  590.032820] dwmmc_rockchip ff0c0000.dwmmc: Successfully tuned phase to 140
[  590.039725] mmc0: new ultra high speed SDR50 SDHC card at address 0007
[  590.046641] mmcblk0: mmc0:0007 SD32G 29.3 GiB
[  590.052163]  mmcblk0: p1

Moreover the code is intent to print the 'uV' for debug but later print it using dev_info. It looks more like to me that it should be the real intention of the code. Anyway, let's mark this verbose log as debug message.

---

 drivers/power/avs/rockchip-io-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/avs/rockchip-io-domain.c +1 -1
index 01b6d3f..56bce19 100644
@@ -143,7 +143,7 @@ static int rockchip_iodomain_notify(struct notifier_block *nb,
 	if (ret && event == REGULATOR_EVENT_PRE_VOLTAGE_CHANGE)
 		return NOTIFY_BAD;
 
-	dev_info(supply->iod->dev, "Setting to %d done\n", uV);
+	dev_dbg(supply->iod->dev, "Setting to %d done\n", uV);
 	return NOTIFY_OK;
 }
 
Signature · 1 line
2.3.7
maintainer
#1 lore raw

PATCH 1/1 PM / AVS: rockchip-io: make the log more consistent

Am Montag, 10. Oktober 2016, 20:44:22 CEST schrieb Shawn Lin:

Quoted 15 lines

When testing SD hotplug automatically, I got bunch of useless log like this:

[  588.357838] mmc0: card 0007 removed
[  589.492664] rockchip-iodomain ff770000.syscon:io-domains: Setting to
3300000 done [  589.500698] vccio_sd: ramp_delay not set
[  589.504817] rockchip-iodomain ff770000.syscon:io-domains: Setting to
3300000 done [  589.669705] rockchip-iodomain ff770000.syscon:io-domains:
Setting to 3300000 done [  589.677593] vccio_sd: ramp_delay not set
[  589.681581] rockchip-iodomain ff770000.syscon:io-domains: Setting to
1800000 done [  590.032820] dwmmc_rockchip ff0c0000.dwmmc: Successfully
tuned phase to 140 [  590.039725] mmc0: new ultra high speed SDR50 SDHC
card at address 0007 [  590.046641] mmcblk0: mmc0:0007 SD32G 29.3 GiB
[  590.052163]  mmcblk0: p1
Quoted 6 lines

Moreover the code is intent to print the 'uV' for debug but later print it using dev_info. It looks more like to me that it should be the real intention of the code. Anyway, let's mark this verbose log as debug message.

reducing the amount of logs, especially for information not generally needed looks sane

Quoted 17 lines

---

 drivers/power/avs/rockchip-io-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/power/avs/rockchip-io-domain.c index 01b6d3f..56bce19 100644

drivers/power/avs/rockchip-io-domain.c +1 -1
@@ -143,7 +143,7 @@ static int rockchip_iodomain_notify(struct
 notifier_block *nb, if (ret && event == REGULATOR_EVENT_PRE_VOLTAGE_CHANGE)
 		return NOTIFY_BAD;
 
-	dev_info(supply->iod->dev, "Setting to %d done\n", uV);
+	dev_dbg(supply->iod->dev, "Setting to %d done\n", uV);
 	return NOTIFY_OK;
 }
#2 lore raw

PATCH 1/1 PM / AVS: rockchip-io: make the log more consistent

Quoted 21 lines · Heiko Stuebner

Am Montag, 10. Oktober 2016, 20:44:22 CEST schrieb Shawn Lin:

Quoted 20 lines

When testing SD hotplug automatically, I got bunch of useless log like this:

[  588.357838] mmc0: card 0007 removed
[  589.492664] rockchip-iodomain ff770000.syscon:io-domains: Setting to
3300000 done [  589.500698] vccio_sd: ramp_delay not set
[  589.504817] rockchip-iodomain ff770000.syscon:io-domains: Setting to
3300000 done [  589.669705] rockchip-iodomain ff770000.syscon:io-domains:
Setting to 3300000 done [  589.677593] vccio_sd: ramp_delay not set
[  589.681581] rockchip-iodomain ff770000.syscon:io-domains: Setting to
1800000 done [  590.032820] dwmmc_rockchip ff0c0000.dwmmc: Successfully
tuned phase to 140 [  590.039725] mmc0: new ultra high speed SDR50 SDHC
card at address 0007 [  590.046641] mmcblk0: mmc0:0007 SD32G 29.3 GiB
[  590.052163]  mmcblk0: p1

Moreover the code is intent to print the 'uV' for debug but later print it using dev_info. It looks more like to me that it should be the real intention of the code. Anyway, let's mark this verbose log as debug message.

Quoted 6 lines
Quoted 1 line

reducing the amount of logs, especially for information not generally needed looks sane

Rafael, feel free to apply directly as a fix for v4.9-rc, or wait for v4.10 if you prefer.

Kevin

#3 lore raw

PATCH 1/1 PM / AVS: rockchip-io: make the log more consistent

In reply to Heiko Stuebner
Quoted 41 lines · Heiko Stuebner

Am Montag, 10. Oktober 2016, 20:44:22 CEST schrieb Shawn Lin:

Quoted 15 lines

When testing SD hotplug automatically, I got bunch of useless log like this:

[  588.357838] mmc0: card 0007 removed
[  589.492664] rockchip-iodomain ff770000.syscon:io-domains: Setting to
3300000 done [  589.500698] vccio_sd: ramp_delay not set
[  589.504817] rockchip-iodomain ff770000.syscon:io-domains: Setting to
3300000 done [  589.669705] rockchip-iodomain ff770000.syscon:io-domains:
Setting to 3300000 done [  589.677593] vccio_sd: ramp_delay not set
[  589.681581] rockchip-iodomain ff770000.syscon:io-domains: Setting to
1800000 done [  590.032820] dwmmc_rockchip ff0c0000.dwmmc: Successfully
tuned phase to 140 [  590.039725] mmc0: new ultra high speed SDR50 SDHC
card at address 0007 [  590.046641] mmcblk0: mmc0:0007 SD32G 29.3 GiB
[  590.052163]  mmcblk0: p1
Quoted 6 lines

Moreover the code is intent to print the 'uV' for debug but later print it using dev_info. It looks more like to me that it should be the real intention of the code. Anyway, let's mark this verbose log as debug message.

reducing the amount of logs, especially for information not generally needed looks sane

Quoted 13 lines

---

 drivers/power/avs/rockchip-io-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/power/avs/rockchip-io-domain.c index 01b6d3f..56bce19 100644

drivers/power/avs/rockchip-io-domain.c +0 -0
@@ -143,7 +143,7 @@ static int rockchip_iodomain_notify(struct
 notifier_block *nb, if (ret && event == REGULATOR_EVENT_PRE_VOLTAGE_CHANGE)
 		return NOTIFY_BAD;
 
Quoted 5 lines

drivers/power/avs/rockchip-io-domain.c static int rockchip_iodomain_notify(struct notifier_block *nb, · line 148

Quoted 4 lines
drivers/power/avs/rockchip-io-domain.c +1 -1
-	dev_info(supply->iod->dev, "Setting to %d done\n", uV);
+	dev_dbg(supply->iod->dev, "Setting to %d done\n", uV);
 	return NOTIFY_OK;
 }

Applied (for v4.10).

Thanks,
Rafael