[PATCH 04/11] ARM: OMAP2+: usb_host_fs: add custom reset for usb_host_fs (fsusb)
Paul Walmsley
paul at pwsan.com
Mon Jun 11 04:04:20 EDT 2012
On Sun, 10 Jun 2012, Tony Lindgren wrote:
> * Paul Walmsley <paul at pwsan.com> [120608 06:33]:
>
> > I don't really have a huge problem with switching to a late reset,
> > but there are disadvantages to it.
>
> I think the early reset actually has more disadvantages to it compared
> to driver reset. We don't see any errors when things go wrong, and we
> may even kill the only debug console in the reset process.
>
> We are already doing what Benoit describes with clocks where we only
> reset the unclaimed ones at late_initcall level, and that has proven
> to work well.
The difference though between the clock and the IP block init is that
leaving the clocks on until later has no effect on system stability. The
chip simply consumes more energy.
But if the IP blocks are reset later, and the bootloader or previous OS
gets some register settings wrong, there's a greater risk of system
instability or unpredictable behavior during the boot process.
I agree that it is probably easier to debug a late reset approach.
- Paul
More information about the linux-arm-kernel
mailing list