02 Mar, 2011

6 commits


28 Feb, 2011

2 commits


22 Feb, 2011

16 commits

  • Doing this by using 2 calls sometimes results in unexpected
    values being returned on OMAP3 i2c controller.

    Signed-off-by: Grazvydas Ignotas
    Signed-off-by: Lars-Peter Clausen

    Grazvydas Ignotas
     
  • Some minor stylistic cleanups.

    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • * Consistently use uppercase for hexadecimal values.
    * Clarify/fix the unit of functions return value in its comment.

    Signed-off-by: Pali Rohár
    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Pali Rohár
     
  • The current code only reports whether the battery is charging or
    discharging. But the battery also reports whether it is fully charged,
    furthermore by look at if the battery is supplied we can tell whether it
    is discharging or not charging.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • This patch adds MODULE_DEVICE_TABLE for module bq27x00_battery.

    Signed-off-by: Pali Rohár
    Tested-by: Pali Rohár
    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Pali Rohár
     
  • This patch add support for reporting properties
    POWER_SUPPLY_PROP_CHARGE_NOW, POWER_SUPPLY_PROP_CHARGE_FULL,
    POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,
    POWER_SUPPLY_PROP_CHARGE_COUNTER, POWER_SUPPLY_PROP_ENERGY_NOW in
    module bq27x00_battery.

    Signed-off-by: Pali Rohár
    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Pali Rohár
     
  • This patch adds support for polling the battery state and generating a
    power_supply_changed() event if it has changed.

    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • This patch adds a register cache to the bq27x00 battery driver.
    Usually multiple, if not all, power_supply properties are queried at once,
    for example when an uevent is generated. Since some registers are used by
    multiple properties caching the registers should reduce the number of
    reads.

    The cache is valid for 5 seconds this roughly matches the internal update
    interval of the current register for the bq27000/bq27200.

    Fast changing properties(*_NOW) which can be obtained by reading a single
    register are not cached.

    It will also be used in the follow up patch to check if the battery status
    has been changed since the last update to emit power_supply_changed events.

    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • This patch adds support for the bq27000 battery to the bq27x00 driver.
    The bq27000 is similar to the bq27200 except that it uses the HDQ bus
    instead of I2C to communicate with the host system.

    The driver is implemented as a platform driver. The driver expects to be
    provided with a read callback function through its platform data. The read
    function is assumed to do the lowlevel HDQ handling and read out the value
    of a certain register.

    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • This patch simplifies the drivers data structure and moves code to be
    shared by the bq27000 and bq27200/bq27500 init functions into a common
    function.
    This patch has no functional changes, it only moves code around.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • This patch changes get_property callback of the bq27x00 battery to return
    -ENODEV for properties other then the PROP_PRESENT if the battery is not
    present.
    The power subsystem core expects a driver to behave that way.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • According to the bq27000 datasheet the current should be calculated by
    the following formula:
    current = AI * 3570 / 20

    This patch adjust the drivers code accordingly.

    Signed-off-by: Pali Rohár
    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Pali Rohár
     
  • This patch improves the precession of the temperature property of the
    bq27x00 driver.
    By dividing before multiplying the current code effectively cuts of the
    last decimal digit. This patch fixes it by multiplying before dividing.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • This patch adds the type property to the bq27x00 battery driver.
    All bq27x00 are lithium ion batteries.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Rodolfo Giometti
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • Calling device_add causes an inital uevent for that device to be generated.
    The power_supply uevent function calls the drivers get_property function,
    which might causes the driver to update its state, which again might
    causes the driver to call power_supply_changed(). Since the power_supplys
    changed_work has not been initialized at this point the behavior is
    undefined and can result in an OOPS.

    This patch fixes the issue by initializing the power_supplys changed_work
    prior to adding the power_supplys device to the device tree.

    Reported-by: Grazvydas Ignotas
    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     
  • Sometimes a driver can not report a meaningful value for a certain property
    and returns -ENODATA.

    Currently when generating a uevent and a property return -ENODATA it is
    treated as an error an no uevent is generated at all. This is not an
    desirable behavior.

    This patch adds a special case for -ENODATA and ignores properties which
    return this error code when generating the uevent.

    Signed-off-by: Lars-Peter Clausen
    Tested-by: Grazvydas Ignotas

    Lars-Peter Clausen
     

31 Jan, 2011

3 commits


22 Jan, 2011

13 commits

  • Linus Torvalds
     
  • * 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (101 commits)
    [media] staging/lirc: fix mem leaks and ptr err usage
    [media] hdpvr: reduce latency of i2c read/write w/recycled buffer
    [media] hdpvr: enable IR part
    [media] rc/mceusb: timeout should be in ns, not us
    [media] v4l2-device: fix 'use-after-freed' oops
    [media] v4l2-dev: don't memset video_device.dev
    [media] zoran: use video_device_alloc instead of kmalloc
    [media] w9966: zero device state after a detach
    [media] v4l: Fix a use-before-set in the control framework
    [media] v4l: Include linux/videodev2.h in media/v4l2-ctrls.h
    [media] DocBook/v4l: update V4L2 revision and update copyright years
    [media] DocBook/v4l: fix validation error in dev-rds.xml
    [media] v4l2-ctrls: queryctrl shouldn't attempt to replace V4L2_CID_PRIVATE_BASE IDs
    [media] v4l2-ctrls: fix missing 'read-only' check
    [media] pvrusb2: Provide more information about IR units to lirc_zilog and ir-kbd-i2c
    [media] ir-kbd-i2c: Add back defaults setting for Zilog Z8's at addr 0x71
    [media] lirc_zilog: Update TODO.lirc_zilog
    [media] lirc_zilog: Add Andy Walls to copyright notice and authors list
    [media] lirc_zilog: Remove useless struct i2c_driver.command function
    [media] lirc_zilog: Remove unneeded tests for existence of the IR Tx function
    ...

    Linus Torvalds
     
  • Fix up comments in the key management code. No functional changes.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • Do a bit of a style clean up in the key management code. No functional
    changes.

    Done using:

    perl -p -i -e 's!^/[*]*/\n!!' security/keys/*.c
    perl -p -i -e 's!} /[*] end [a-z0-9_]*[(][)] [*]/\n!}\n!' security/keys/*.c
    sed -i -s -e ": next" -e N -e 's/^\n[}]$/}/' -e t -e P -e 's/^.*\n//' -e "b next" security/keys/*.c

    To remove /*****/ lines, remove comments on the closing brace of a
    function to name the function and remove blank lines before the closing
    brace of a function.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    cifs: fix up CIFSSMBEcho for unaligned access
    cifs: fix unaligned accesses in cifsConvertToUCS
    cifs: clean up unaligned accesses in cifs_unicode.c
    cifs: fix unaligned access in check2ndT2 and coalesce_t2
    cifs: clean up unaligned accesses in validate_t2
    cifs: use get/put_unaligned functions to access ByteCount
    cifs: move time field in cifsInodeInfo
    cifs: TCP_Server_Info diet
    CIFS: Implement cifs_strict_readv (try #4)
    CIFS: Implement cifs_file_strict_mmap (try #2)
    CIFS: Implement cifs_strict_fsync
    CIFS: Make cifsFileInfo_put work with strict cache mode

    Linus Torvalds
     
  • * 'fixes-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
    x86,percpu: Move out of place 64 bit ops into X86_64 section

    Linus Torvalds
     
  • * 'fixes-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
    workqueue: note the nested NOT_RUNNING test in worker_clr_flags() isn't a noop
    workqueue: relax lockdep annotation on flush_work()

    Linus Torvalds
     
  • …l/git/tip/linux-2.6-tip

    * 'irq-cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (37 commits)
    um: Use generic irq Kconfig
    tile: Use generic irq Kconfig
    sparc: Use generic irq Kconfig
    score: Use generic irq Kconfig
    powerpc: Use generic irq Kconfig
    parisc: Use generic irq Kconfig
    mn10300: Use generic irq Kconfig
    microblaze: Use generic irq Kconfig
    m68knommu: Use generic irq Kconfig
    ia64: Use generic irq Kconfig
    frv: Use generic irq Kconfig
    blackfin: Use generic irq Kconfig
    alpha: Use generic irq Kconfig
    genirq: Remove __do_IRQ
    m32r: Convert to generic irq Kconfig
    m32r: Convert usrv platform irq handling
    m32r: Convert opsput_lcdpld irq chip
    m32r: Convert opsput lanpld irq chip
    m32r: Convert opsput pld irq chip
    m32r: Convert opsput irq chip
    ...

    Linus Torvalds
     
  • * 'stable/bug-fixes-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen: p2m: correctly initialize partial p2m leaf
    xen: fix non-ANSI function warning in irq.c

    Linus Torvalds
     
  • …git/ieee1394/linux1394-2.6

    * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: core: fix unstable I/O with Canon camcorder

    * 'fwnet' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: net: is not experimental anymore
    firewire: net: invalidate ARP entries of removed nodes

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Fix EAPD to low on CZC P10T tablet computer with ALC662
    ALSA: HDA: Add SKU ignore for another Thinkpad Edge 14
    ALSA: hda - Fix "unused variable" compile warning
    ALSA: hda - Add quirk for HP Z-series workstation
    Revert "ALSA: HDA: Create mixers on ALC887"
    ASoC: PXA: Fix codec address on Zipit Z2
    ASoC: PXA: Fix jack detection on Zipit Z2
    ASoC: Blackfin: fix DAI/SPORT config dependency issues
    ASoC: Blackfin TDM: use external frame syncs
    ASoC: Blackfin AC97: fix build error after multi-component update
    ASoC: Blackfin TDM: fix missed snd_soc_dai_get_drvdata update
    ASoC: documentation updates
    ALSA: ice1712 delta - initialize SPI clock

    Linus Torvalds
     
  • * 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6:
    powerpc/83xx: fix build failures on dt compatible list.

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (34 commits)
    powerpc/mpic: Fix mask/unmask timeout message
    powerpc/pseries: Add BNX2=m to defconfig
    powerpc: Enable 64kB pages and 1024 threads in pseries config
    powerpc: Disable mcount tracers in pseries defconfig
    powerpc/boot/dts: Install dts from the right directory
    powerpc: machine_check_generic is wrong on 64bit
    powerpc: Check RTAS extended log flag before checking length
    powerpc: Fix corruption when grabbing FWNMI data
    powerpc: Rework pseries machine check handler
    powerpc: Don't silently handle machine checks from userspace
    powerpc: Remove duplicate debugger hook in machine_check_exception
    powerpc: Never halt RTAS error logging after receiving an unrecoverable machine check
    powerpc: Don't force MSR_RI in machine_check_exception
    powerpc: Print 32 bits of DSISR in show_regs
    powerpc/kdump: Disable ftrace during kexec
    powerpc/kdump: Move crash_kexec_stop_spus to kdump crash handler
    powerpc/kexec: Remove empty ppc_md.machine_kexec_prepare
    powerpc/kexec: Don't initialise kexec hooks to default handlers
    powerpc/kdump: Remove ppc_md.machine_crash_shutdown
    powerpc/kexec: Remove ppc_md.machine_kexec
    ...

    Linus Torvalds