]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
USB: shutdown USB before booting
authorMarkus Klotzbücher <mk@denx.de>
Thu, 10 Jul 2008 12:47:09 +0000 (14:47 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 10 Jul 2008 19:47:44 +0000 (21:47 +0200)
commit3d71c81a9bb03f866a1e98da96363ef3f46c76b3
treed238a1da6f5a90056b20cbbf017c5b502327a64f
parente0320b1ebec13755911a53b0af12cbf3e5e49a65
USB: shutdown USB before booting

This patch fixes a potentially serious issue related to USB which was
discouvered by Martin Krause <martin.krause@tqs.de> and fixed for
ARM920T. Martin wrote:

  Turn off USB to prevent the host controller from writing to the
  SDRAM while Linux is booting. This could happen, because the HCCA
  (Host Controller Communication Area) lies within the SDRAM and the
  host controller writes continously to this area (as busmaster!), for
  example to increase the HccaFrameNumber variable, which happens
  every 1 ms.

This is a slightly modified version of the patch in order to shutdown
USB when booting on all architectures.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
common/cmd_bootm.c