“440769a3f6209186d13795ca4bfc7e4b4315e013”上不存在“docs/user/project/merge-request/squash.md”
  1. 03 11月, 2012 2 次提交
    • V
      USB: ohci-exynos: initialize registers pointer earlier · 57465109
      Vincent Palatin 提交于
      In the former code, we have a race condition between the first interrupt
      and the regs field initilization in the usb_hcd structure.
      If the OHCI irq fires before hcd->regs is set, we are getting a null
      pointer dereference in ohci_irq.
      
      When calling usb_add_hcd(), it first executes the reset() callback,
      then enables the ohci interrupt, and finally executes the start()
      callback. So moving the ohci_init() call which actually initializes the
      reg field from start() to reset() should remove the race.
      
      Tested by enabling the external HSIC hub in the bootloader on an exynos5
      machine and booting. With the former code, this triggers an early interrupt
      about 50% of the boots and a subsequent kernel panic in ohci_irq when trying
      to access the registers.
      
      Cc: Olof Johansson <olofj@chromium.org>
      Cc: Doug Anderson <dianders@chromium.org>
      Cc: Arjun.K.V <arjun.kv@samsung.com>
      Cc: Vikas Sajjan <vikas.sajjan@samsung.com>
      Cc: Abhilash Kesavan <a.kesavan@samsung.com>
      Signed-off-by: NVincent Palatin <vpalatin@chromium.org>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      57465109
    • A
      USB: EHCI: fix build error in ehci-platform.c under PowerPC · d1bb67a7
      Alan Stern 提交于
      This patch (as1628) fixes a build error in the ehci-platform driver
      when compiled for the PowerPC architecture.  The error was introduced
      by commit 99f91934 (USB: EHCI: make
      ehci-platform a separate driver).
      
      The fix is simple; a few additional header-file #includes are needed.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d1bb67a7
  2. 01 11月, 2012 10 次提交
  3. 31 10月, 2012 14 次提交
  4. 26 10月, 2012 14 次提交