31 Jul, 2017

1 commit


10 Feb, 2017

1 commit

  • Declare i2c_algorithm structures as const as they are only stored in the
    algo field of an i2c_adapter structure. This field is of type const, so
    i2c_algorithm structures having this property can be made const too.

    Signed-off-by: Bhumika Goyal
    Acked-by: Uwe Kleine-König for
    Acked-by: Patrice Chotard
    Acked-by: Jarkko Nikula
    Reviewed-by: Jean Delvare
    Acked-by: Ludovic Desroches
    Signed-off-by: Wolfram Sang

    Bhumika Goyal
     

22 Aug, 2016

1 commit

  • The core will do this for us now.

    Signed-off-by: Wolfram Sang
    Reviewed-by: Grygorii Strashko
    Acked-by: Peter Korsgaard
    Acked-by: Heiko Stuebner
    Acked-by: Neil Horman
    Acked-by: Thierry Reding
    Acked-by: Ray Jui
    Acked-by: Vladimir Zapolskiy
    Acked-by: Ludovic Desroches
    Acked-by: Krzysztof Kozlowski
    Acked-by: Laxman Dewangan
    Signed-off-by: Wolfram Sang

    Wolfram Sang
     

13 May, 2016

1 commit

  • >From I2C specifications:
    http://www.nxp.com/documents/user_manual/UM10204.pdf

    Chapter 3.1.16, when the i2c device held the SDA line low, the master
    should send 9 clocks pulses to try to recover.

    Signed-off-by: Frederic Pillon
    Signed-off-by: Peter Griffin
    Signed-off-by: Wolfram Sang

    Peter Griffin
     

12 Apr, 2016

1 commit


15 Jan, 2016

1 commit

  • Pull i2c updates from Wolfram Sang:
    "Quite some driver updates:
    - piix4 can now handle multiplexed adapters
    - brcmstb, xlr, eg20t, designware drivers support more SoCs
    - emev2 gained i2c slave support
    - img-scb and rcar got bigger refactoring to remove issues
    - lots of common driver updates

    i2c core changes:
    - new quirk flag when an adapter does not support clock stretching,
    so clients can be configured to avoid that if possible
    - added a helper function to retrieve timing parameters from firmware
    (with rcar being the first user)
    - "multi-master" DT binding added so drivers can adapt to this
    setting (like disabling PM to keep arbitration working)
    - RuntimePM for the logical adapter device is now always enabled by
    the core to ensure propagation from childs to the parent (the HW
    device)
    - new macro builtin_i2c_driver to reduce boilerplate"

    * 'i2c/for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (70 commits)
    i2c: create builtin_i2c_driver to avoid registration boilerplate
    i2c: imx: fix i2c resource leak with dma transfer
    dt-bindings: i2c: eeprom: add another EEPROM device
    dt-bindings: move I2C eeprom descriptions to the proper file
    i2c: designware: Do not require clock when SSCN and FFCN are provided
    DT: i2c: trivial-devices: Add Epson RX8010 and MPL3115
    i2c: s3c2410: remove superfluous runtime PM calls
    i2c: always enable RuntimePM for the adapter device
    i2c: designware: retry transfer on transient failure
    i2c: ibm_iic: rename i2c_timings struct due to clash with generic version
    i2c: designware: Add support for AMD Seattle I2C
    i2c: imx: Remove unneeded comments
    i2c: st: use to_platform_device()
    i2c: designware: use to_pci_dev()
    i2c: brcmstb: Adding support for CM and DSL SoCs
    i2c: mediatek: fix i2c multi transfer issue in high speed mode
    i2c: imx: improve code readability
    i2c: imx: Improve message log when DMA is not used
    i2c: imx: add runtime pm support to improve the performance
    i2c: imx: init bus recovery info before adding i2c adapter
    ...

    Linus Torvalds
     

04 Jan, 2016

1 commit


01 Dec, 2015

1 commit


24 Apr, 2015

1 commit

  • The driver uses pinctrl directly and thus should include the appropriate
    header. Sort the headers while we are here to have a better view what is
    included and what is not.

    Reported-by: Pascal Huerst
    Signed-off-by: Wolfram Sang

    Wolfram Sang
     

20 Oct, 2014

1 commit


02 Aug, 2014

2 commits

  • The i2c timing values specified in the driver are the minimun values
    defined in the I2C specifications. The I2C specification does not
    specify any default or maximum values.

    Some I2C devices are out of spec, such as the HDMI link of the Toshiba
    19AV600 TV, and might not work properly with minimum values.

    This patch adds a 10% margin on all the timings in both Normal and Fast modes.

    Trial and error method have been used to find the minimum margin necessary to
    have the out-of-spec device working, and a security margin has been added.

    Signed-off-by: Maxime Coquelin
    Signed-off-by: Wolfram Sang

    Maxime COQUELIN
     
  • When building multi_v7_defconfig with CONFIG_ARM_LPAE=y the following warning
    is seen:

    drivers/i2c/busses/i2c-st.c:818:2: warning: format '%x' expects argument of type
    'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat=]

    Use %pa to print 'resource_size_t' type to fix the warning.

    Reported-by: Olof's autobuilder
    Signed-off-by: Fabio Estevam
    Acked-by: Maxime Coquelin
    Signed-off-by: Wolfram Sang

    Fabio Estevam
     

03 Jun, 2014

1 commit


11 Mar, 2014

1 commit


19 Nov, 2013

1 commit

  • Pull i2c changes from Wolfram Sang:
    - new drivers for exynos5, bcm kona, and st micro
    - bigger overhauls for drivers mxs and rcar
    - typical driver bugfixes, cleanups, improvements
    - got rid of the superfluous 'driver' member in i2c_client struct This
    touches a few drivers in other subsystems. All acked.

    * 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (38 commits)
    i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()
    i2c: i2c-eg20t: do not print error message in syslog if no ACK received
    i2c: bcm-kona: Introduce Broadcom I2C Driver
    i2c: cbus-gpio: Fix device tree binding
    i2c: wmt: add missing clk_disable_unprepare() on error
    i2c: designware: add new ACPI IDs
    i2c: i801: Add Device IDs for Intel Wildcat Point-LP PCH
    i2c: exynos5: Remove incorrect clk_disable_unprepare
    i2c: i2c-st: Add ST I2C controller
    i2c: exynos5: add High Speed I2C controller driver
    i2c: rcar: fixup rcar type naming
    i2c: scmi: remove some bogus NULL checks
    i2c: sh_mobile & rcar: Enable the driver on all ARM platforms
    i2c: sh_mobile: Convert to clk_prepare/unprepare
    i2c: mux: gpio: use reg value for i2c_add_mux_adapter
    i2c: mux: gpio: use gpio_set_value_cansleep()
    i2c: Include linux/of.h header
    i2c: mxs: Fix PIO mode on i.MX23
    i2c: mxs: Rework the PIO mode operation
    i2c: mxs: distinguish i.MX23 and i.MX28 based I2C controller
    ...

    Linus Torvalds
     

15 Nov, 2013

1 commit

  • This patch adds support to SSC (Synchronous Serial Controller)
    I2C driver. This IP also supports SPI protocol, but this is not
    the aim of this driver.

    This IP is embedded in all ST SoCs for Set-top box platorms, and
    supports I2C Standard and Fast modes.

    Signed-off-by: Maxime Coquelin
    Signed-off-by: Wolfram Sang

    Maxime COQUELIN