Skip to contentSkip to conversation

arm: sunxi: Reduce inrush current on Olimex A20-OLinuXino_MICRO

PATCH Superseded Philippe Coval 3 participants 3 messages Jan 6, 2024 – Jan 14, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: sunxi: Reduce inrush current on Olimex A20-OLinuXino_MICRO

This change fix reboot, it was tested on debian-12

It was inspired from for-master-20181206-10-g8311e84b18

Relate-to: https://github.com/rzr/u-boot/issues/2
Thanks-to: Olliver Schinagl <[email protected]>

---

 configs/A20-OLinuXino_MICRO_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/A20-OLinuXino_MICRO_defconfig +1 -0
index db4270f9b2..673ab85c8a 100644
@@ -20,6 +20,7 @@ CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_SUN7I_GMAC=y
 CONFIG_SUN7I_GMAC_FORCE_TXERR=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y
 CONFIG_AXP_ALDO3_VOLT=2800
 CONFIG_AXP_ALDO4_VOLT=2800
 CONFIG_SCSI=y
Signature · 1 line
2.43.0
#1 lore raw

On Sat, 6 Jan 2024 23:21:34 +0100
Philippe Coval <[email protected]> wrote:

(CC:ing Olliver, can you confirm that this quirk applies to the Micro too?)

Hi Philippe,

thanks for taking care of upstreaming this!

Quoted 1 line

This change fix reboot, it was tested on debian-12

So I am wondering why this only comes up now. Was that always broken, and nobody cared (or ran mainline U-Boot)? Or does the problem only show under certain circumstances?

It would be good if you can elaborate about that in the commit message, to show *why* your patch is needed.

Quoted 1 line

It was inspired from for-master-20181206-10-g8311e84b18

Referencing a commit here looks odd. You could just mention that this quirk is also used on the Lime2 boards.

Quoted 2 lines

Relate-to: https://github.com/rzr/u-boot/issues/2
Thanks-to: Olliver Schinagl <[email protected]>

Please don't invent tags. If you want to give credit for things like advice or support, mention their name in the commit message, and maybe add them in CC:
If you have a *stable* link with useful(!) information, use the Link: tag.

configs/A20-OLinuXino_MICRO_defconfig

Quoted 7 lines

---

 configs/A20-OLinuXino_MICRO_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/A20-OLinuXino_MICRO_defconfig +0 -0

If you change this file, that probably means that the eMMC version is also affected? Same as the two Lime2 boards, where we set the symbol in *both* defconfigs? So can you please add that symbol there as well?

Cheers,
Andre

Quoted 11 lines

index db4270f9b2..673ab85c8a 100644

configs/A20-OLinuXino_MICRO_defconfig +1 -0
@@ -20,6 +20,7 @@ CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_SUN7I_GMAC=y
 CONFIG_SUN7I_GMAC_FORCE_TXERR=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y
 CONFIG_AXP_ALDO3_VOLT=2800
 CONFIG_AXP_ALDO4_VOLT=2800
 CONFIG_SCSI=y
#2 lore raw
Quoted 3 lines · Andre Przywara

On Sat, 6 Jan 2024 23:21:34 +0100
Philippe Coval<[email protected]> wrote:

(...)

Quoted 1 line

thanks for taking care of upstreaming this!

yea I should have done this earlier !

Quoted 2 lines
Quoted 1 line

This change fix reboot, it was tested on debian-12

So I am wondering why this only comes up now. Was that always broken,

I assume yes, it has been reported a couple of time elsewhere:

https://forum.openwrt.org/t/rebot-issue-with-a20-olinuxino-micro/56720/2?u=rzr

Also, I just filed (And shared patch):

https://bugs.debian.org/1060752

I've been using armbian's lime images on micro that had the fix , and forgot about this problem until  I gave a try at freedom box images for micro

Quoted 2 lines

It would be good if you can elaborate about that in the commit message, to show *why* your patch is needed.

OK I'll improve commit message with details I know and also apply to the eMMC defconfig (testers welcome?) waiting for Olivier feedback then I'll push a V2 of patch to:

http://patchwork.ozlabs.org/project/uboot/list/?series=389169 <http://patchwork.ozlabs.org/project/uboot/list/?series=389169>

then feel free to annotate if you have more details to share

Keep in touch