1. 22 6月, 2012 3 次提交
    • P
      W1: OMAP HDQ1W: use runtime PM · c354a864
      Paul Walmsley 提交于
      Convert the OMAP HDQ driver to use runtime PM.  Compile- and boot-tested,
      but not tested in actual use.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: NeilBrown <neilb@suse.de>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
      Tested-by: NNeilBrown <neilb@suse.de>
      c354a864
    • P
      W1: OMAP HDQ1W: use 32-bit register accesses · 2acd0894
      Paul Walmsley 提交于
      HDQ/1-wire registers are 32 bits long, even if the register contents
      fit into 8 bits, so accesses must be 32-bit aligned.  Evidently the
      OMAP2/3 interconnects allowed the driver to get away with 8 bit accesses,
      but the OMAP4 puts a stop to that:
      
      [    1.488800] Driver for 1-wire Dallas network protocol.
      [    1.495025] Bad mode in data abort handler detected
      [    1.500122] Internal error: Oops - bad mode: 0 [#1] SMP
      [    1.505615] Modules linked in:
      [    1.508819] CPU: 0    Not tainted  (3.3.0-rc1-00008-g45030e9 #992)
      [    1.515289] PC is at 0xffff0018
      [    1.518615] LR is at omap_hdq_probe+0xd4/0x2cc
      
      The OMAP4430 ES2 Rev X TRM does warn about this restriction in section
      23.2.6.2 "HDQ/1-Wire Registers".
      
      Fixes the crash on OMAP4430 ES2 Pandaboard.  Tested also on OMAP34xx and
      OMAP2420; it seems to work fine on those chips, although due to the lack
      of boards with HDQ/1-wire devices here, a more indepth test was not
      possible.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: NeilBrown <neilb@suse.de>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
      2acd0894
    • P
      W1: OMAP HDQ1W: allow driver to be built on all OMAP2+ · d6600300
      Paul Walmsley 提交于
      Allow the OMAP HDQ1W driver to be built for all OMAP2+ SoCs by
      adjusting KConfig dependencies.  The previous dependency required
      either SOC_OMAP2430 or ARCH_OMAP3 to be set, but the HDQ IP block is
      present on OMAP2420 and OMAP44xx SoCs.  The driver was still
      selectable on multi-OMAP kernel configurations, however; so the
      previous prohibition was rather pointless.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
      d6600300
  2. 07 5月, 2012 1 次提交
  3. 05 5月, 2012 1 次提交
  4. 30 4月, 2012 1 次提交
  5. 25 4月, 2012 1 次提交
  6. 19 4月, 2012 1 次提交
  7. 12 4月, 2012 2 次提交
  8. 10 4月, 2012 1 次提交
  9. 03 4月, 2012 1 次提交
  10. 09 3月, 2012 1 次提交
  11. 25 2月, 2012 3 次提交
  12. 16 2月, 2012 1 次提交
    • N
      w1: Fix w1_bq27000 · 9f3519d2
      NeilBrown 提交于
      w1_bq27000 adds a bq27000-battery platform device but does not provide
      platform data for it. This causes the bq27x00 driver to dereference a NULL
      pointer.
      So provide the appropriate platform data.  This requires modifying
      w1_bq27000_read so that it find the w1 device as the parent of the bq device.
      
      Also there is no point exporting w1_bq27000_read as nothing else uses it
      or could use it.  So make it static.
      
      Finally, as there is no way to track how many batteries have been found, and
      we will probably only find one, use an id number of '-1' to assert that this
      is a unique instance.
      Signed-off-by: NNeilBrown <neilb@suse.de>
      Tested-by: NThomas Weber <weber@corscience.de>
      Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9f3519d2
  13. 10 2月, 2012 1 次提交
  14. 10 12月, 2011 1 次提交
  15. 19 11月, 2011 1 次提交
    • G
      USB: convert some miscellanies drivers to use module_usb_driver() · fe748483
      Greg Kroah-Hartman 提交于
      This converts the remaining USB drivers in the kernel to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Till Harbaum <till@harbaum.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
      Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fe748483
  16. 18 11月, 2011 1 次提交
    • M
      W1: w1_therm: release the bus during conversion on externally powered devices · 377195c4
      Maciej Szmigiero 提交于
      w1_therm devices can either be bus powered or externally powered.
      
      When device is bus powered during temperature conversion the bus
      have to be left high to provide necessary power. Some masters also allow
      strong power-up to be enabled in this case.
      Naturally, no communication over bus can occur during that time.
      
      However, if device has external power then there is no such restriction,
      and host can talk to other devices during temperature conversion.
      
      There is command which allows us to check how device is powered,
      this patch uses it to release the bus on externally w1_therm powered devices
      during temperature conversion.
      
      Also, this changes uninterruptible sleeps there into interruptible ones to
      avoid long uninterruptible sleep if w1 subsystem happens to grab bus for
      scan during w1_therm_read().
      Signed-off-by: NMaciej Szmigiero <mhej@o2.pl>
      Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      377195c4
  17. 03 11月, 2011 4 次提交
  18. 01 11月, 2011 2 次提交
  19. 26 8月, 2011 2 次提交
  20. 27 7月, 2011 2 次提交
  21. 09 7月, 2011 1 次提交
    • J
      w1: ds1wm: add a reset recovery parameter · f607e7fc
      Jean-François Dagenais 提交于
      This fixes a regression in 3.0 reported by Paul Parsons regarding the
      removal of the msleep(1) in the ds1wm_reset() function:
      
      : The linux-3.0-rc4 DS1WM 1-wire driver is logging "bus error, retrying"
      : error messages on an HP iPAQ hx4700 PDA (XScale-PXA270):
      :
      : <snip>
      : Driver for 1-wire Dallas network protocol.
      : DS1WM w1 busmaster driver - (c) 2004 Szabolcs Gyurko
      : 1-Wire driver for the DS2760 battery monitor  chip  - (c) 2004-2005, Szabolcs Gyurko
      : ds1wm ds1wm: pass: 1 bus error, retrying
      : ds1wm ds1wm: pass: 2 bus error, retrying
      : ds1wm ds1wm: pass: 3 bus error, retrying
      : ds1wm ds1wm: pass: 4 bus error, retrying
      : ds1wm ds1wm: pass: 5 bus error, retrying
      : ...
      :
      : The visible result is that the battery charging LED is erratic; sometimes
      : it works, mostly it doesn't.
      :
      : The linux-2.6.39 DS1WM 1-wire driver worked OK.  I haven't tried 3.0-rc1,
      : 3.0-rc2, or 3.0-rc3.
      
      This sleep should not be required on normal circuitry provided the
      pull-ups on the bus are correctly adapted to the slaves.  Unfortunately,
      this is not always the case.  The sleep is restored but as a parameter to
      the probe function in the pdata.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Reported-by: NPaul Parsons <lost.distance@yahoo.com>
      Tested-by: NPaul Parsons <lost.distance@yahoo.com>
      Signed-off-by: NJean-François Dagenais <dagenaisj@sonatest.com>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f607e7fc
  22. 16 6月, 2011 1 次提交
  23. 27 5月, 2011 6 次提交
  24. 31 3月, 2011 1 次提交