1. 05 7月, 2013 34 次提交
  2. 04 7月, 2013 6 次提交
    • B
      of: Fix address decoding on Bimini and js2x machines · 6dd18e46
      Benjamin Herrenschmidt 提交于
       Commit:
      
        e38c0a1f
        of/address: Handle #address-cells > 2 specially
      
      broke real time clock access on Bimini, js2x, and similar powerpc
      machines using the "maple" platform. That code was indirectly relying
      on the old (broken) behaviour of the translation for the hypertransport
      to ISA bridge.
      
      This fixes it by treating hypertransport as a PCI bus
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NRob Herring <rob.herring@calxeda.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      6dd18e46
    • P
      HID: wacom: Intuos4 battery charging changes · 9d157624
      Przemo Firszt 提交于
      Intuos4 WL is separately reporting power supply and battery
      charging status - now hid-wacom is using that information.
      Previously hid-wacom was wrongly treating "battery charging" bit
      as "power supply connected". Now it should report battery charging,
      battery discharging, battery full and power supply status.
      
      Intuos4 WL sends reports when is in use (obvious) and when unplugging
      power supply. If means that if the device is being charged, but it's not
      being used it will never report "battery full". The same problem happens
      after the device has been connected, but it's not in use - the
      battery/ac status will be incorrect. Currently there is no mechanism to
      ask the device to send a report containing battery/ac status.
      Signed-off-by: NPrzemo Firszt <przemo@firszt.eu>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9d157624
    • A
      HID: i2c-hid: support sending HID output reports using the output register · 811adb96
      Andrew Duggan 提交于
      The current i2c hid driver does not support sending HID output reports using
      the output register for devices which support receiving reports through this
      method. This patch determines which method to use to send output reports based
       on the value of wMaxOutputLength in the device's HID descriptor.
      Signed-off-by: NAndrew Duggan <aduggan@synaptics.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      811adb96
    • N
      md/raid10: fix bug which causes all RAID10 reshapes to move no data. · 13765120
      NeilBrown 提交于
      The recent comment:
      commit 7e83ccbe
          md/raid10: Allow skipping recovery when clean arrays are assembled
      
      Causes raid10 to skip a recovery in certain cases where it is safe to
      do so.  Unfortunately it also causes a reshape to be skipped which is
      never safe.  The result is that an attempt to reshape a RAID10 will
      appear to complete instantly, but no data will have been moves so the
      array will now contain garbage.
      (If nothing is written, you can recovery by simple performing the
      reverse reshape which will also complete instantly).
      
      Bug was introduced in 3.10, so this is suitable for 3.10-stable.
      
      Cc: stable@vger.kernel.org (3.10)
      Cc: Martin Wilck <mwilck@arcor.de>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      13765120
    • N
      md/raid5: allow 5-device RAID6 to be reshaped to 4-device. · fdcfbbb6
      NeilBrown 提交于
      There is a bug in 'check_reshape' for raid5.c  To checks
      that the new minimum number of devices is large enough (which is
      good), but it does so also after the reshape has started (bad).
      
      This is bad because
       - the calculation is now wrong as mddev->raid_disks has changed
         already, and
       - it is pointless because it is now too late to stop.
      
      So only perform that test when reshape has not been committed to.
      Signed-off-by: NNeilBrown <neilb@suse.de>
      fdcfbbb6
    • J
      drivers/w1/slaves/w1_ds2408.c: add magic sequence to disable P0 test mode · d5528773
      Jean-Francois Dagenais 提交于
      Power-up timing
      
      The DS2408 is sensitive to the power-on slew rate and can inadvertently
      power up with a test mode feature enabled.  When this occurs, the P0 port
      does not respond to the Channel Access Write command.  For most reliable
      operation, it is recommended to disable the test mode after every power-on
      reset using the Disable Test Mode sequence shown below.  The 64-bit ROM
      code must be transmitted in the same bit sequence as with the Match ROM
      command, i.e., least significant bit first.  This precaution is
      recommended in parasite power mode (VCC pin connected to GND) as well as
      with VCC power.
      
      Disable Test Mode:
      RST,PD,96h,<64-bit DS2408 ROM Code>,3Ch,RST,PD
      
      [akpm@linux-foundation.org: don't use kerenldoc token to introduce a non-kerneldoc comment, tweak whitespace]
      Signed-off-by: NJean-Francois Dagenais <jeff.dagenais@gmail.com>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d5528773