1. 12 10月, 2013 1 次提交
  2. 06 10月, 2013 1 次提交
  3. 27 9月, 2013 1 次提交
  4. 01 8月, 2013 1 次提交
  5. 17 5月, 2013 1 次提交
    • S
      USB: set device dma_mask without reference to global data · 3b9561e9
      Stephen Warren 提交于
      Many USB host drivers contain code such as:
      
      if (!pdev->dev.dma_mask)
              pdev->dev.dma_mask = &tegra_ehci_dma_mask;
      
      ... where tegra_ehci_dma_mask is a global. I suspect this code originated
      in commit 4a53f4e6 "USB: ehci-tegra: add probing through device tree" and
      was simply copied everywhere else.
      
      This works fine when the code is built-in, but can cause a crash when the
      code is in a module. The first module load sets up the dma_mask pointer,
      but if the module is removed and re-inserted, the value is now non-NULL,
      and hence is not updated to point at the new location, and hence points
      at a stale location within the previous module load address, which in
      turn causes a crash if the pointer is de-referenced.
      
      The simplest way of solving this seems to be to copy the code from
      ehci-platform.c, which uses the coherent_dma_mask as the target for the
      dma_mask pointer.
      Suggested-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NTony Prisk <linux@prisktech.co.nz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3b9561e9
  6. 12 4月, 2013 1 次提交
  7. 11 4月, 2013 1 次提交
  8. 08 4月, 2013 1 次提交
  9. 18 3月, 2013 1 次提交
  10. 25 1月, 2013 1 次提交
  11. 23 1月, 2013 2 次提交
  12. 22 11月, 2012 3 次提交
  13. 03 11月, 2012 1 次提交
    • 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
  14. 25 10月, 2012 2 次提交
  15. 23 10月, 2012 1 次提交
  16. 19 9月, 2012 1 次提交
    • A
      ARM: samsung: move platform_data definitions · 436d42c6
      Arnd Bergmann 提交于
      Platform data for device drivers should be defined in
      include/linux/platform_data/*.h, not in the architecture
      and platform specific directories.
      
      This moves such data out of the samsung include directories
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Jeff Garzik <jgarzik@pobox.com>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: "Wolfram Sang (embedded platforms)" <w.sang@pengutronix.de>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Bryan Wu <bryan.wu@canonical.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Sangbeom Kim <sbkim73@samsung.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: linux-samsung-soc@vger.kernel.org
      436d42c6
  17. 17 7月, 2012 1 次提交
  18. 07 7月, 2012 2 次提交
  19. 28 4月, 2012 1 次提交
  20. 25 2月, 2012 1 次提交
  21. 23 12月, 2011 1 次提交