08 May, 2019

1 commit

  • …/git/gregkh/char-misc

    Pull char/misc update part 2 from Greg KH:
    "Here is the "real" big set of char/misc driver patches for 5.2-rc1

    Loads of different driver subsystem stuff in here, all over the places:
    - thunderbolt driver updates
    - habanalabs driver updates
    - nvmem driver updates
    - extcon driver updates
    - intel_th driver updates
    - mei driver updates
    - coresight driver updates
    - soundwire driver cleanups and updates
    - fastrpc driver updates
    - other minor driver updates
    - chardev minor fixups

    Feels like this tree is getting to be a dumping ground of "small
    driver subsystems" these days. Which is fine with me, if it makes
    things easier for those subsystem maintainers.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'char-misc-5.2-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (255 commits)
    intel_th: msu: Add current window tracking
    intel_th: msu: Add a sysfs attribute to trigger window switch
    intel_th: msu: Correct the block wrap detection
    intel_th: Add switch triggering support
    intel_th: gth: Factor out trace start/stop
    intel_th: msu: Factor out pipeline draining
    intel_th: msu: Switch over to scatterlist
    intel_th: msu: Replace open-coded list_{first,last,next}_entry variants
    intel_th: Only report useful IRQs to subdevices
    intel_th: msu: Start handling IRQs
    intel_th: pci: Use MSI interrupt signalling
    intel_th: Communicate IRQ via resource
    intel_th: Add "rtit" source device
    intel_th: Skip subdevices if their MMIO is missing
    intel_th: Rework resource passing between glue layers and core
    intel_th: SPDX-ify the documentation
    intel_th: msu: Fix single mode with IOMMU
    coresight: funnel: Support static funnel
    dt-bindings: arm: coresight: Unify funnel DT binding
    coresight: replicator: Add new device id for static replicator
    ...

    Linus Torvalds
     

27 Apr, 2019

1 commit

  • >From the DS2408 datasheet [1]:
    "Resume Command function checks the status of the RC flag and, if it is set,
    directly transfers control to the control functions, similar to a Skip ROM
    command. The only way to set the RC flag is through successfully executing
    the Match ROM, Search ROM, Conditional Search ROM, or Overdrive-Match ROM
    command"

    The function currently works perfectly fine in a multidrop bus, but when we
    have only a single slave connected, then only a Skip ROM is used and Match
    ROM is not called at all. This is leading to problems e.g. with single one
    DS2408 connected, as the Resume Command is not working properly and the
    device is responding with failing results after the Resume Command.

    This commit is fixing this by using a Skip ROM instead in those cases.
    The bandwidth / performance advantage is exactly the same.

    Refs:
    [1] https://datasheets.maximintegrated.com/en/ds/DS2408.pdf

    Signed-off-by: Mariusz Bialonczyk
    Reviewed-by: Jean-Francois Dagenais
    Signed-off-by: Greg Kroah-Hartman

    Mariusz Bialonczyk
     

26 Apr, 2019

1 commit

  • When we have success in 'Channel Access Write' but reading back latch
    states fails, a write is retried without doing a proper slave reset.
    This leads to protocol errors as the slave treats the next 'Channel
    Access Write' as the continuation of previous command.

    This commit is fixing this by making sure if the retry loop re-runs, a
    reset is performed, whatever the failure (CONFIRM_BYTE or the read
    back).

    The loop was quite due for a cleanup and this change mandated it. By
    isolating the CONFIG_W1_SLAVE_DS2408_READBACK case into it's own
    function, we vastly reduce the visual and branching(runtime and
    compile-time) noise.

    Reported-by: Mariusz Bialonczyk
    Tested-by: Mariusz Bialonczyk
    Signed-off-by: Jean-Francois Dagenais
    Signed-off-by: Greg Kroah-Hartman

    Jean-Francois Dagenais
     

25 Apr, 2019

1 commit

  • The syzkaller USB fuzzer spotted a slab-out-of-bounds bug in the
    ds2490 driver. This bug is caused by improper use of the altsetting
    array in the usb_interface structure (the array's entries are not
    always stored in numerical order), combined with a naive assumption
    that all interfaces probed by the driver will have the expected number
    of altsettings.

    The bug can be fixed by replacing references to the possibly
    non-existent intf->altsetting[alt] entry with the guaranteed-to-exist
    intf->cur_altsetting entry.

    Signed-off-by: Alan Stern
    Reported-and-tested-by: syzbot+d65f673b847a1a96cdba@syzkaller.appspotmail.com
    CC:
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

28 Mar, 2019

1 commit

  • We have a helper function ds2482_calculate_config() which is calculating
    the config value, so just use it instead of passing the same variable
    in all calls to this function.

    Also fixes the placement of module parameters to match with:
    50fa2951bd74 (w1: Organize driver source to natural/common order)
    by Andrew F. Davis

    Signed-off-by: Mariusz Bialonczyk
    Cc: Andrew Worsley
    Cc: Andrew F. Davis
    Signed-off-by: Greg Kroah-Hartman

    Mariusz Bialonczyk
     

21 Dec, 2018

1 commit

  • The Kconfig lexer supports special characters such as '.' and '/' in
    the parameter context. In my understanding, the reason is just to
    support bare file paths in the source statement.

    I do not see a good reason to complicate Kconfig for the room of
    ambiguity.

    The majority of code already surrounds file paths with double quotes,
    and it makes sense since file paths are constant string literals.

    Make it treewide consistent now.

    Signed-off-by: Masahiro Yamada
    Acked-by: Wolfram Sang
    Acked-by: Geert Uytterhoeven
    Acked-by: Ingo Molnar

    Masahiro Yamada
     

16 Oct, 2018

1 commit

  • …ned, count for max size).

    IAD Register is yet readable trough the "iad" sys file.

    A write to the "iad" sys file enables or disables the current
    measurement, but it was not possible to get the measured value by
    reading it.
    Fix: %u in snprintf for unsigned values (vdd and vad)
    Fix: Avoid possibles overflows (Usage of the 'count' variables)

    Signed-off-by: Julien Folly <julien.folly@gmail.com>
    Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    Julien Folly
     

03 Oct, 2018

1 commit

  • The bus master was not removed after unloading the module
    or unbinding the driver. That lead to oopses like this

    [ 127.842987] Unable to handle kernel paging request at virtual address bf01d04c
    [ 127.850646] pgd = 70e3cd9a
    [ 127.853698] [bf01d04c] *pgd=8f908811, *pte=00000000, *ppte=00000000
    [ 127.860412] Internal error: Oops: 80000007 [#1] PREEMPT SMP ARM
    [ 127.866668] Modules linked in: bq27xxx_battery overlay [last unloaded: omap_hdq]
    [ 127.874542] CPU: 0 PID: 1022 Comm: w1_bus_master1 Not tainted 4.19.0-rc4-00001-g2d51da718324 #12
    [ 127.883819] Hardware name: Generic OMAP36xx (Flattened Device Tree)
    [ 127.890441] PC is at 0xbf01d04c
    [ 127.893798] LR is at w1_search_process_cb+0x4c/0xfc
    [ 127.898956] pc : [] lr : [] psr: a0070013
    [ 127.905609] sp : cf885f48 ip : bf01d04c fp : ddf1e11c
    [ 127.911132] r10: cf8fe040 r9 : c05f8d00 r8 : cf8fe040
    [ 127.916656] r7 : 000000f0 r6 : cf8fe02c r5 : cf8fe000 r4 : cf8fe01c
    [ 127.923553] r3 : c05f8d00 r2 : 000000f0 r1 : cf8fe000 r0 : dde1ef10
    [ 127.930450] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
    [ 127.938018] Control: 10c5387d Table: 8f8f0019 DAC: 00000051
    [ 127.944091] Process w1_bus_master1 (pid: 1022, stack limit = 0x9135699f)
    [ 127.951171] Stack: (0xcf885f48 to 0xcf886000)
    [ 127.955810] 5f40: cf8fe000 00000000 cf884000 cf8fe090 000003e8 c05f8d00
    [ 127.964477] 5f60: dde5fc34 c05f9700 ddf1e100 ddf1e540 cf884000 cf8fe000 c05f9694 00000000
    [ 127.973114] 5f80: dde5fc34 c01499a4 00000000 ddf1e540 c0149874 00000000 00000000 00000000
    [ 127.981781] 5fa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
    [ 127.990447] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 127.999114] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
    [ 128.007781] [] (w1_search_process_cb) from [] (w1_process+0x6c/0x118)
    [ 128.016479] [] (w1_process) from [] (kthread+0x130/0x148)
    [ 128.024047] [] (kthread) from [] (ret_from_fork+0x14/0x2c)
    [ 128.031677] Exception stack(0xcf885fb0 to 0xcf885ff8)
    [ 128.037017] 5fa0: 00000000 00000000 00000000 00000000
    [ 128.045684] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 128.054351] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [ 128.061340] Code: bad PC value
    [ 128.064697] ---[ end trace af066e33c0e14119 ]---

    Cc:
    Signed-off-by: Andreas Kemnade
    Signed-off-by: Greg Kroah-Hartman

    Andreas Kemnade
     

22 Aug, 2018

1 commit

  • Pull power supply and reset updates from Sebastian Reichel:

    - Improve support for TI bq20z75 in sbs-battery

    - Add Qualcomm PM8xxx reboot driver

    - Add cros-ec USBPD charger driver

    - Move ds2760 battery driver from w1 to power-supply and add DT support

    - Misc fixes

    * tag 'for-v4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (28 commits)
    power: supply: bq27xxx: Update comments
    power: supply: max77693_charger: fix unintentional fall-through
    power: supply: mark expected switch fall-throughs
    power: supply: lego_ev3_battery: fix Vce offset
    power: supply: lego_ev3_battery: Don't ignore iio_read_channel_processed() return value
    power: supply: ds2760_battery: add devicetree probing
    power: supply: ds2760_battery: merge ds2760 supply driver with its w1 slave companion
    w1: core: match sub-nodes of bus masters in devicetree
    dt-bindings: w1: document bindings for ds2760 battery monitor
    dt-bindings: w1: document generic onewire bindings
    power: supply: adp5061: Fix a couple off by ones
    dt-bindings: power: reset: qcom: Add resin binding
    adp5061: New driver for ADP5061 I2C battery charger
    power: generic-adc-battery: check for duplicate properties copied from iio channels
    power: generic-adc-battery: fix out-of-bounds write when copying channel properties
    power: supply: axp288_charger: Fix initial constant_charge_current value
    power: supply: ab8500: stop using getnstimeofday64()
    power: gemini-poweroff: Avoid more spurious poweroffs
    power: vexpress: fix corruption in notifier registration
    power: remove possible deadlock when unregistering power_supply
    ...

    Linus Torvalds
     

19 Aug, 2018

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here is the bit set of char/misc drivers for 4.19-rc1

    There is a lot here, much more than normal, seems like everyone is
    writing new driver subsystems these days... Anyway, major things here
    are:

    - new FSI driver subsystem, yet-another-powerpc low-level hardware
    bus

    - gnss, finally an in-kernel GPS subsystem to try to tame all of the
    crazy out-of-tree drivers that have been floating around for years,
    combined with some really hacky userspace implementations. This is
    only for GNSS receivers, but you have to start somewhere, and this
    is great to see.

    Other than that, there are new slimbus drivers, new coresight drivers,
    new fpga drivers, and loads of DT bindings for all of these and
    existing drivers.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'char-misc-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (255 commits)
    android: binder: Rate-limit debug and userspace triggered err msgs
    fsi: sbefifo: Bump max command length
    fsi: scom: Fix NULL dereference
    misc: mic: SCIF Fix scif_get_new_port() error handling
    misc: cxl: changed asterisk position
    genwqe: card_base: Use true and false for boolean values
    misc: eeprom: assignment outside the if statement
    uio: potential double frees if __uio_register_device() fails
    eeprom: idt_89hpesx: clean up an error pointer vs NULL inconsistency
    misc: ti-st: Fix memory leak in the error path of probe()
    android: binder: Show extra_buffers_size in trace
    firmware: vpd: Fix section enabled flag on vpd_section_destroy
    platform: goldfish: Retire pdev_bus
    goldfish: Use dedicated macros instead of manual bit shifting
    goldfish: Add missing includes to goldfish.h
    mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux
    dt-bindings: mux: add adi,adgs1408
    Drivers: hv: vmbus: Cleanup synic memory free path
    Drivers: hv: vmbus: Remove use of slow_virt_to_phys()
    Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind()
    ...

    Linus Torvalds
     

12 Jul, 2018

2 commits

  • This patch removes the w1 slave driver that used to register the w1 family
    and instanciate a platform device at runtime. The code now lives in the
    supply driver instead to avoid that level of indirection.

    The old device name "ds2760-battery.0" is preserved, so userspace
    applications can access the same virtual device nodes as before.

    Note that because the w1 core does not currently have a framework for
    suspend/resume, the driver now registers a PM notifier callback.

    Signed-off-by: Daniel Mack
    Signed-off-by: Sebastian Reichel

    Daniel Mack
     
  • Once a new slave device is detected, match it against all sub-nodes of the
    master bus controller. If a match is found, set the slave device's of_node
    pointer.

    Signed-off-by: Daniel Mack
    Signed-off-by: Sebastian Reichel

    Daniel Mack
     

07 Jul, 2018

4 commits


03 Jul, 2018

1 commit


26 Jun, 2018

1 commit

  • The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
    not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
    functionality only, can still be compiled if GPIOLIB is not enabled.

    Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
    appropriate.

    Signed-off-by: Geert Uytterhoeven
    Acked-by: Linus Walleij
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Linus Walleij

    Geert Uytterhoeven
     

06 Jun, 2018

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here is the "big" char and misc driver patches for 4.18-rc1.

    It's not a lot of stuff here, but there are some highlights:

    - coreboot driver updates

    - soundwire driver updates

    - android binder updates

    - fpga big sync, mostly documentation

    - lots of minor driver updates

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'char-misc-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (81 commits)
    vmw_balloon: fixing double free when batching mode is off
    MAINTAINERS: Add driver-api/fpga path
    fpga: clarify that unregister functions also free
    documentation: fpga: move fpga-region.txt to driver-api
    documentation: fpga: add bridge document to driver-api
    documentation: fpga: move fpga-mgr.txt to driver-api
    Documentation: fpga: move fpga overview to driver-api
    fpga: region: kernel-doc fixes
    fpga: bridge: kernel-doc fixes
    fpga: mgr: kernel-doc fixes
    fpga: use SPDX
    fpga: region: change api, add fpga_region_create/free
    fpga: bridge: change api, don't use drvdata
    fpga: manager: change api, don't use drvdata
    fpga: region: don't use drvdata in common fpga code
    Drivers: hv: vmbus: Removed an unnecessary cast from void *
    ver_linux: Drop redundant calls to system() to test if file is readable
    ver_linux: Move stderr redirection from function parameter to function body
    misc: IBM Virtual Management Channel Driver (VMC)
    rpmsg: Correct support for MODULE_DEVICE_TABLE()
    ...

    Linus Torvalds
     

14 May, 2018

2 commits


11 May, 2018

1 commit


14 Mar, 2018

1 commit


01 Feb, 2018

1 commit

  • Pull documentation updates from Jonathan Corbet:
    "Documentation updates for 4.16.

    New stuff includes refcount_t documentation, errseq documentation,
    kernel-doc support for nested structure definitions, the removal of
    lots of crufty kernel-doc support for unused formats, SPDX tag
    documentation, the beginnings of a manual for subsystem maintainers,
    and lots of fixes and updates.

    As usual, some of the changesets reach outside of Documentation/ to
    effect kerneldoc comment fixes. It also adds the new LICENSES
    directory, of which Thomas promises I do not need to be the
    maintainer"

    * tag 'docs-4.16' of git://git.lwn.net/linux: (65 commits)
    linux-next: docs-rst: Fix typos in kfigure.py
    linux-next: DOC: HWPOISON: Fix path to debugfs in hwpoison.txt
    Documentation: Fix misconversion of #if
    docs: add index entry for networking/msg_zerocopy
    Documentation: security/credentials.rst: explain need to sort group_list
    LICENSES: Add MPL-1.1 license
    LICENSES: Add the GPL 1.0 license
    LICENSES: Add Linux syscall note exception
    LICENSES: Add the MIT license
    LICENSES: Add the BSD-3-clause "Clear" license
    LICENSES: Add the BSD 3-clause "New" or "Revised" License
    LICENSES: Add the BSD 2-clause "Simplified" license
    LICENSES: Add the LGPL-2.1 license
    LICENSES: Add the LGPL 2.0 license
    LICENSES: Add the GPL 2.0 license
    Documentation: Add license-rules.rst to describe how to properly identify file licenses
    scripts: kernel_doc: better handle show warnings logic
    fs/*/Kconfig: drop links to 404-compliant http://acl.bestbits.at
    doc: md: Fix a file name to md-fault.c in fault-injection.txt
    errseq: Add to documentation tree
    ...

    Linus Torvalds
     

22 Dec, 2017

1 commit


08 Dec, 2017

1 commit

  • The w1 master driver includes a complete open drain emulation
    reimplementation among other things.

    This converts the driver and all board files using it to use
    GPIO descriptors associated with the device to look up the
    GPIO wire, as well ass the optional pull-up GPIO line.

    When probed from the device tree, the driver will just pick
    descriptors and use them right off. For the two board files
    in the kernel, we add descriptor lookups so we do not need
    to keep any old platform data handling around for the GPIO
    lines.

    As the platform data is also a state container for this driver,
    we augment it to contain the GPIO descriptors.

    w1_gpio_write_bit_dir() and w1_gpio_write_bit_val() are gone
    since this pair was a reimplementation of open drain emulation
    which is now handled by gpiolib.

    The special "linux,open-drain" flag is a bit of mishap here:
    it has the same semantic as the same flags in I2C: it means
    that something in the platform is setting up the line as
    open drain behind our back. We handle this the same way as
    in I2C.

    To drive the pull-up, we need to bypass open drain emulation
    in gpiolib for the line, and this is done by driving it high
    using gpiod_set_raw_value() which has been augmented to have
    the semantic of overriding the open drain emulation.

    We also augment the documentation to reflect the way to pass
    GPIO descriptors from the machine.

    Acked-by: Evgeniy Polyakov
    Signed-off-by: Linus Walleij

    Linus Walleij
     

17 Nov, 2017

1 commit

  • …/git/gregkh/char-misc

    Pull char/misc updates from Greg KH:
    "Here is the big set of char/misc and other driver subsystem patches
    for 4.15-rc1.

    There are small changes all over here, hyperv driver updates, pcmcia
    driver updates, w1 driver updats, vme driver updates, nvmem driver
    updates, and lots of other little one-off driver updates as well. The
    shortlog has the full details.

    All of these have been in linux-next for quite a while with no
    reported issues"

    * tag 'char-misc-4.15-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (90 commits)
    VME: Return -EBUSY when DMA list in use
    w1: keep balance of mutex locks and refcnts
    MAINTAINERS: Update VME subsystem tree.
    nvmem: sunxi-sid: add support for A64/H5's SID controller
    nvmem: imx-ocotp: Update module description
    nvmem: imx-ocotp: Enable i.MX7D OTP write support
    nvmem: imx-ocotp: Add i.MX7D timing write clock setup support
    nvmem: imx-ocotp: Move i.MX6 write clock setup to dedicated function
    nvmem: imx-ocotp: Add support for banked OTP addressing
    nvmem: imx-ocotp: Pass parameters via a struct
    nvmem: imx-ocotp: Restrict OTP write to IMX6 processors
    nvmem: uniphier: add UniPhier eFuse driver
    dt-bindings: nvmem: add description for UniPhier eFuse
    nvmem: set nvmem->owner to nvmem->dev->driver->owner if unset
    nvmem: qfprom: fix different address space warnings of sparse
    nvmem: mtk-efuse: fix different address space warnings of sparse
    nvmem: mtk-efuse: use stack for nvmem_config instead of malloc'ing it
    nvmem: imx-iim: use stack for nvmem_config instead of malloc'ing it
    thunderbolt: tb: fix use after free in tb_activate_pcie_devices
    MAINTAINERS: Add git tree for Thunderbolt development
    ...

    Linus Torvalds
     

08 Nov, 2017

1 commit

  • w1_therm_eeprom() and w1_DS18B20_precision() decrement THERM_REFCNT
    on error paths, while they did not increment it yet.

    read_therm() unlocks bus mutex on some error paths,
    while it is not acquired.

    The patch makes sure all the functions keep the balance in usage of
    the mutex and the THERM_REFCNT.

    Found by Linux Driver Verification project (linuxtesting.org).

    Signed-off-by: Alexey Khoroshilov
    Signed-off-by: Greg Kroah-Hartman

    Alexey Khoroshilov
     

02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

04 Oct, 2017

2 commits

  • This subpatch adds a driver for the DS28E17 Onewire to I2C master bridge.

    Signed-off-by: Jan Kandziora
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Greg Kroah-Hartman

    Jan Kandziora
     
  • The w1_ds28e17 driver from the next part of this patch needs to emit
    single-bit read timeslots to the DS28E17. The w1 subsystem already
    has this function but it is not exported outside drivers/w1/w1_io.c

    This subpatch exports the w1_touch_bit symbol with EXPORT_SYMBOL_GPL,
    same as the other exported symbols in drivers/w1/w1_io.c

    May be also useful later for writing drivers for other Onewire chips
    which do single-bit communication.

    Signed-off-by: Jan Kandziora
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Greg Kroah-Hartman

    Jan Kandziora
     

10 Sep, 2017

1 commit

  • Pull power supply and reset changes from Sebastian Reichel:
    "New chip/feature support:
    - bq27xxx: support updating battery config from DT
    - bq24190: support loading battery charge info from DT
    - LTC2941: add LTC2942/LTC2944 support
    - max17042: add ACPI support
    - max1721x: new driver

    Misc:
    - Move bq27xxx w1 driver from w1 into power-supply subsystem
    - Introduce power_supply_set_input_current_limit_from_supplier
    - constify stuff
    - some minor fixes"

    * tag 'for-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (39 commits)
    power: supply: bq27xxx: enable writing capacity values for bq27421
    power: supply: bq24190_charger: Get input_current_limit from our supplier
    power: supply: bq24190_charger: Export 5V boost converter as regulator
    power: supply: bq24190_charger: Add power_supply_battery_info support
    power: supply: bq24190_charger: Add property system-minimum-microvolt
    power: supply: bq24190_charger: Enable devicetree config
    dt-bindings: power: supply: Add docs for TI BQ24190 battery charger
    power: supply: bq27xxx: Remove duplicate chip data arrays
    power: supply: bq27xxx: Enable data memory update for certain chips
    power: supply: bq27xxx: Add chip IDs for previously shadowed chips
    power: supply: bq27xxx: Create single chip data table
    power: supply: bq24190_charger: Add ti,bq24192i to devicetree table
    power: supply: bq24190_charger: Add input_current_limit property
    power: supply: Add power_supply_set_input_current_limit_from_supplier helper
    power: supply: max17042_battery: Fix compiler warning
    power: supply: core: Delete two error messages for a failed memory allocation in power_supply_check_supplies()
    power: supply: make device_attribute const
    power: supply: max17042_battery: Fix ACPI interrupt issues
    power: supply: max17042_battery: Add support for ACPI enumeration
    power: supply: lp8788: Make several arrays static const * const
    ...

    Linus Torvalds
     

01 Sep, 2017

3 commits


28 Aug, 2017

5 commits