public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] sunxi, usb: Clean up SRAM initialization code
@ 2023-06-07 23:16 Sam Edwards
  2023-06-07 23:16 ` [PATCH 1/2] usb: musb-new: sunxi: only perform SRAM initialization when necessary Sam Edwards
  2023-06-07 23:16 ` [PATCH 2/2] usb: musb-new: sunxi: clarify the purpose of SRAM initialization Sam Edwards
  0 siblings, 2 replies; 8+ messages in thread
From: Sam Edwards @ 2023-06-07 23:16 UTC (permalink / raw)
  To: u-boot; +Cc: Andre Przywara, Jagan Teki, Marek Vasut, Sam Edwards

Hi list,

This pair of patches is a byproduct of discussion on my earlier patchset
(Patchwork series #357953), which had simply disabled this initialization where
SUNXI_SRAMC_BASE was set to null. It is true that this initialization is not
needed on newer devices, but not because the SRAMC (now called "SYSCON") has
been removed, so a null SRAMC base was not the appropriate fix.

Of the two patches here, only the first is an actual fix; the second is a
mostly-cosmetic cleanup, which also adds a TODO to make this function
independent of SUNXI_SRAMC_BASE altogether, per the aforementioned prior
discussion.

I do not have an A10, A10s, A13, GR8, or A20 against which to test this change;
a reviewer with access to one of these should verify that USB-OTG functionality
is still working. That ought to be a sufficient regression test. :)

A note to committers: If patch 1 is acceptable but patch 2 is not, go ahead and
commit only patch 1 (unless the U-Boot project specifically avoids doing this).

Thanks for your time,
Sam

Sam Edwards (2):
  usb: musb-new: sunxi: only perform SRAM initialization when necessary
  usb: musb-new: sunxi: clarify the purpose of SRAM initialization

 drivers/usb/musb-new/sunxi.c | 33 +++++++++++++++++++++++++--------
 1 file changed, 25 insertions(+), 8 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-06-09 19:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07 23:16 [PATCH 0/2] sunxi, usb: Clean up SRAM initialization code Sam Edwards
2023-06-07 23:16 ` [PATCH 1/2] usb: musb-new: sunxi: only perform SRAM initialization when necessary Sam Edwards
2023-06-08 12:03   ` Andre Przywara
2023-06-09 10:00   ` Andre Przywara
2023-06-07 23:16 ` [PATCH 2/2] usb: musb-new: sunxi: clarify the purpose of SRAM initialization Sam Edwards
2023-06-09 10:13   ` Andre Przywara
2023-06-09 19:16     ` Sam Edwards
2023-06-09 19:40       ` Andre Przywara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox