01 Aug, 2019

1 commit


16 Jul, 2019

1 commit

  • Pull i2c updates from Wolfram Sang:
    "New stuff from the I2C world:

    - in the core, getting irqs from ACPI is now similar to OF

    - new driver for MediaTek MT7621/7628/7688 SoCs

    - bcm2835, i801, and tegra drivers got some more attention

    - GPIO API cleanups

    - cleanups in the core headers

    - lots of usual driver updates"

    * 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (74 commits)
    i2c: mt7621: Fix platform_no_drv_owner.cocci warnings
    i2c: cpm: remove casting dma_alloc
    dt-bindings: i2c: sun6i-p2wi: Fix the binding example
    dt-bindings: i2c: mv64xxx: Fix the example compatible
    i2c: i801: Documentation update
    i2c: i801: Add support for Intel Tiger Lake
    i2c: i801: Fix PCI ID sorting
    dt-bindings: i2c-stm32: document optional dmas
    i2c: i2c-stm32f7: Add I2C_SMBUS_I2C_BLOCK_DATA support
    i2c: core: Tidy up handling of init_irq
    i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq
    i2c: core: Move ACPI IRQ handling to probe time
    i2c: acpi: Factor out getting the IRQ from ACPI
    i2c: acpi: Use available IRQ helper functions
    i2c: core: Allow whole core to use i2c_dev_irq_from_resources
    eeprom: at24: modify a comment referring to platform data
    dt-bindings: i2c: omap: Add new compatible for J721E SoCs
    dt-bindings: i2c: mv64xxx: Add YAML schemas
    dt-bindings: i2c: sun6i-p2wi: Add YAML schemas
    i2c: mt7621: Add MediaTek MT7621/7628/7688 I2C driver
    ...

    Linus Torvalds
     

06 Jul, 2019

2 commits

  • The i2c-i801 driver documentation needs some dusting:
    * Mention disable_features flag 0x20.
    * The i2c_ec driver has been removed from the kernel long ago. Driver
    i2c-scmi serves the same purpose for more recent hardware.
    * Replace obsolete /proc paths with equivalent /sys paths.

    Signed-off-by: Jean Delvare
    Reviewed-by: Jarkko Nikula
    Signed-off-by: Wolfram Sang

    Jean Delvare
     
  • Add SMBUS PCI ID for Intel Tiger Lake -LP.

    Signed-off-by: Jarkko Nikula
    Reviewed-by: Jean Delvare
    Signed-off-by: Wolfram Sang

    Jarkko Nikula
     

22 Jun, 2019

2 commits


21 Jun, 2019

1 commit

  • Since strlcpy is deprecated, the documentation shouldn't suggest using
    it. This patch fixes the examples to use strscpy instead. It also uses
    sizeof instead of underlying constants as far as possible, to simplify
    future changes to the corresponding data structures.

    Signed-off-by: Stephen Kitt
    Acked-by: Kees Cook
    Acked-by: Federico Vaga
    Signed-off-by: Jonathan Corbet

    Stephen Kitt
     

09 Jun, 2019

1 commit

  • Mostly due to x86 and acpi conversion, several documentation
    links are still pointing to the old file. Fix them.

    Signed-off-by: Mauro Carvalho Chehab
    Reviewed-by: Wolfram Sang
    Reviewed-by: Sven Van Asbroeck
    Reviewed-by: Bhupesh Sharma
    Acked-by: Mark Brown
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

03 May, 2019

2 commits


25 Mar, 2019

1 commit

  • MP2 controllers have two separate busses, so may accommodate up to two I2C
    adapters. Those adapters are listed in the ACPI namespace with the
    "AMDI0011" HID, and probed by a platform driver.

    Communication with the MP2 takes place through MMIO registers, or through
    DMA for more than 32 bytes transfers.

    This is major rework of the patch submitted by Nehal-bakulchandra Shah from
    AMD (https://patchwork.kernel.org/patch/10597369/).

    Most of the event handling of v3 was rewritten to make it work with more
    than one bus (e.g on Ryzen-based Lenovo Yoga 530), and this version
    contains many other improvements.

    Signed-off-by: Elie Morisse
    Signed-off-by: Wolfram Sang

    Elie Morisse
     

21 Mar, 2019

1 commit


23 Feb, 2019

2 commits


05 Feb, 2019

1 commit


09 Jan, 2019

1 commit

  • A few drivers open code the handling of suspended adapters. It could be
    handled by the core, though, to ensure generic handling. This patch adds
    the flag and accessor functions. The usage of these helpers is optional,
    though. See the kerneldoc in this patch. Using the new flag, we now
    reject further transfers if the adapter is already marked suspended.

    Signed-off-by: Wolfram Sang
    Signed-off-by: Wolfram Sang

    Wolfram Sang
     

10 Nov, 2018

1 commit

  • Latest NVIDIA GPU card has USB Type-C interface. There is a
    Type-C controller which can be accessed over I2C.

    This driver adds I2C bus driver to communicate with Type-C controller.
    I2C client driver will be part of USB Type-C UCSI driver.

    Signed-off-by: Ajay Gupta
    Reviewed-by: Andy Shevchenko
    [wsa: kept Makefile sorting]
    Signed-off-by: Wolfram Sang

    Ajay Gupta
     

31 Aug, 2018

1 commit

  • a) rename to 'put' instead of 'release' to match 'get' when obtaining
    the buffer
    b) change the argument order to have the buffer as first argument
    c) add a new argument telling the function if the message was
    transferred. This allows the function to be used also in cases
    where setting up DMA failed, so the buffer needs to be freed without
    syncing to the message buffer.

    Also convert the only user.

    Signed-off-by: Wolfram Sang
    Reviewed-by: Niklas Söderlund
    Signed-off-by: Wolfram Sang

    Wolfram Sang
     

24 Aug, 2018

1 commit


04 Jul, 2018

4 commits


14 Jun, 2018

1 commit

  • Pull i2c updates from Wolfram Sang:

    - mainly feature additions to drivers (stm32f7, qup, xlp9xx, mlxcpld, ...)

    - conversion to use the i2c_8bit_addr_from_msg macro consistently

    - move includes to platform_data

    - core updates to allow the (still in review) I3C subsystem to connect

    - and the regular share of smaller driver updates

    * 'i2c/for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (68 commits)
    i2c: qup: fix building without CONFIG_ACPI
    i2c: tegra: Remove suspend-resume
    i2c: imx-lpi2c: Switch to SPDX identifier
    i2c: mxs: Switch to SPDX identifier
    i2c: busses: make use of i2c_8bit_addr_from_msg
    i2c: algos: make use of i2c_8bit_addr_from_msg
    i2c: rcar: document R8A77980 bindings
    i2c: qup: Add command-line parameter to override SCL frequency
    i2c: qup: Correct duty cycle for FM and FM+
    i2c: qup: Add support for Fast Mode Plus
    i2c: qup: add probe path for Centriq ACPI devices
    i2c: robotfuzz-osif: drop pointless test
    i2c: robotfuzz-osif: remove pointless local variable
    i2c: rk3x: Don't print visible virtual mapping MMIO address
    i2c: opal: don't check number of messages in the driver
    i2c: ibm_iic: don't check number of messages in the driver
    i2c: imx: Switch to SPDX identifier
    i2c: mux: pca954x: merge calls to of_match_device and of_device_get_match_data
    i2c: mux: demux-pinctrl: use proper parent device for demux adapter
    i2c: mux: improve error message for failed symlink
    ...

    Linus Torvalds
     

30 May, 2018

1 commit


17 May, 2018

3 commits


30 Apr, 2018

1 commit


18 Apr, 2018

3 commits


21 Feb, 2018

1 commit


05 Feb, 2018

1 commit

  • Pull i2c updates from Wolfram Sang:
    "I2C has the following changes for you:

    - new flag to mark DMA safe buffers in i2c_msg. Also, some
    infrastructure around it. And docs.

    - huge refactoring of the at24 driver led by the new maintainer
    Bartosz

    - update I2C bus recovery to send STOP after recovery

    - conversion from gpio to gpiod for I2C bus recovery

    - adding a fault-injector to the i2c-gpio driver

    - lots of small driver improvements, and bigger ones to
    i2c-sh_mobile"

    * 'i2c/for-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (99 commits)
    i2c: mv64xxx: Add myself as maintainer for this driver
    i2c: mv64xxx: Fix clock resource by adding an optional bus clock
    i2c: mv64xxx: Remove useless test before clk_disable_unprepare
    i2c: mxs: use true and false for boolean values
    i2c: meson: update doc description to fix build warnings
    i2c: meson: add configurable divider factors
    dt-bindings: i2c: update documentation for the Meson-AXG
    i2c: imx-lpi2c: add runtime pm support
    i2c: rcar: fix some trivial typos in comments
    i2c: davinci: fix the cpufreq transition
    i2c: rk3x: add proper kerneldoc header
    i2c: rk3x: account for const type of of_device_id.data
    i2c: acorn: remove outdated path from file header
    i2c: acorn: add MODULE_LICENSE tag
    i2c: rcar: implement bus recovery
    i2c: send STOP after successful bus recovery
    i2c: ensure SDA is released in recovery if SDA is controllable
    i2c: add 'set_sda' to bus_recovery_info
    i2c: add identifier in declarations for i2c_bus_recovery
    i2c: make kerneldoc about bus recovery more precise
    ...

    Linus Torvalds
     

22 Dec, 2017

1 commit

  • `Documentation/i2c/dev-interface` gives examples for accessing i2c from
    userspace.

    There's a note that warns developers about the two `i2c-dev.h` header
    files which were shipped with the kernel and i2c-tools separately.

    However, following i2c-tools commits suggest that the header files are now
    identical (in functionality) and `i2c_*` helper functions are now defined
    in a separate header called `i2c/smbus.h`, which is distributed with
    i2c-tools:

    commit 652619121974 ("Minimize differences with kernel flavor")
    commit 93caf007f4cb ("Move SMBus helper functions to include/i2c/smbus.h")

    Thus, I've converted the warning paragraph into a historical note and
    updated the suggested header files.

    Signed-off-by: Cengiz Can
    Cc: Wolfram Sang
    Signed-off-by: Jonathan Corbet

    Cengiz C
     

04 Dec, 2017

2 commits


05 Oct, 2017

1 commit


22 Aug, 2017

1 commit


19 Jun, 2017

1 commit