Skip to content
Permalink
Andy-Shevchenk…
Switch branches/tags

Commits on Apr 13, 2021

  1. i2c: mpc: Drop duplicate message from devm_platform_ioremap_resource()

    devm_platform_ioremap_resource() prints a message in case of error.
    Drop custom one.
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    andy-shev authored and intel-lab-lkp committed Apr 13, 2021
  2. i2c: mpc: Use device_get_match_data() helper

    Use the device_get_match_data() helper instead of open coding.
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    andy-shev authored and intel-lab-lkp committed Apr 13, 2021
  3. i2c: mpc: Remove CONFIG_PM_SLEEP ifdeffery

    Use __maybe_unused for the suspend()/resume() hooks and get rid of
    the CONFIG_PM_SLEEP ifdeffery to improve the code.
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    andy-shev authored and intel-lab-lkp committed Apr 13, 2021
  4. i2c: mpc: Use devm_clk_get_optional()

    The peripheral clock is optional and we may get an -EPROBE_DEFER error code
    which would not be propagated correctly, fix this by using
    devm_clk_get_optional().
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    andy-shev authored and intel-lab-lkp committed Apr 13, 2021
  5. Merge branch 'i2c/for-5.13' into i2c/for-next

    Wolfram Sang committed Apr 13, 2021
  6. i2c: sprd: Add missing MODULE_DEVICE_TABLE

    This patch adds missing MODULE_DEVICE_TABLE definition which generates
    correct modalias for automatic loading of this driver when it is built
    as an external module.
    
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
    Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Bixuan Cui authored and Wolfram Sang committed Apr 13, 2021
  7. MAINTAINERS: Add Chris Packham as FREESCALE MPC I2C maintainer

    Add Chris Packham as FREESCALE MPC I2C maintainer.
    
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 13, 2021
  8. i2c: mpc: Remove redundant NULL check

    In mpc_i2c_get_fdr_8xxx div is assigned as we iterate through the
    mpc_i2c_dividers_8xxx array. By the time we exit the loop div will
    either have the value that matches the requested speed or be pointing at
    the last entry in mpc_i2c_dividers_8xxx. Checking for div being NULL
    after the loop is redundant so remove the check.
    
    Reported-by: Wolfram Sang <wsa@kernel.org>
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 13, 2021
  9. i2c: mpc: drop release for resource allocated with devm_*

    It's not necessary to release resource which allocated with devm_*
    and those release may leads to a double free. And also remove useless
    irq_dispose_mapping() call since mapping not created.
    
    Fixes: 09aab7a ("i2c: mpc: use device managed APIs")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Wei Yongjun authored and Wolfram Sang committed Apr 13, 2021

Commits on Apr 10, 2021

  1. Merge branch 'i2c/for-5.13' into i2c/for-next

    Wolfram Sang committed Apr 10, 2021
  2. i2c: mpc: use device managed APIs

    Use device managed functions an clean up error handling.
    
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 10, 2021
  3. i2c: mpc: make interrupt mandatory and remove polling code

    All the in-tree dts files that use one of the compatible strings from
    i2c-mpc.c provide an interrupt property. By making this mandatory we
    can simplify the code.
    
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 10, 2021
  4. i2c: mpc: Make use of i2c_recover_bus()

    Move the existing calls of mpc_i2c_fixup() to a recovery function
    registered via bus_recovery_info. This makes it more obvious that
    recovery is supported and allows for a future where recovery is
    triggered by the i2c core.
    
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 10, 2021
  5. dt-bindings: i2c: convert i2c-mpc to json-schema

    Convert i2c-mpc to YAML.
    
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 10, 2021
  6. dt-bindings: i2c-mpc: Document interrupt property as required

    All of the in-tree device-trees that use the one of the compatible
    strings from i2c-mpc.c supply an interrupts property. Make this property
    mandatory to aid refactoring the driver.
    
    Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    cpackham-atlnz authored and Wolfram Sang committed Apr 10, 2021
  7. i2c: ensure timely release of driver-allocated resources

    More and more drivers rely on devres to manage their resources, however
    if bus' probe() and release() methods are not trivial and control some
    of resources as well (for example enable or disable clocks, or attach
    device to a power domain), we need to make sure that driver-allocated
    resources are released immediately after driver's remove() method
    returns, and not postponed until driver core gets around to releasing
    resources. To fix that we open a new devres group before calling
    driver's probe() and explicitly release it when we return from driver's
    remove().
    
    Tested-by: Jeff LaBundy <jeff@labundy.com>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    dtor authored and Wolfram Sang committed Apr 10, 2021
  8. i2c: designware: Switch over to i2c_freq_mode_string()

    Use generic i2c_freq_mode_string() helper to print chosen bus speed.
    
    Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    andy-shev authored and Wolfram Sang committed Apr 10, 2021
  9. i2c: add support for HiSilicon I2C controller

    Add HiSilicon I2C controller driver for the Kunpeng SoC. It provides
    the access to the i2c busses, which connects to the eeprom, rtc, etc.
    
    The driver works with IRQ mode, and supports basic I2C features and 10bit
    address. The DMA is not supported.
    
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
    Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Yicong Yang authored and Wolfram Sang committed Apr 10, 2021
  10. i2c: core: add api to provide frequency mode strings

    Some I2C drivers like Designware and HiSilicon will print the
    bus frequency mode information, so add a public one that everyone
    can make use of.
    
    Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
    Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Yicong Yang authored and Wolfram Sang committed Apr 10, 2021
  11. i2c: core: add managed function for adding i2c adapters

    Some I2C controller drivers will only unregister the I2C
    adapter in their .remove() callback, which can be done
    by simply using a managed variant to add the I2C adapter.
    
    So add the managed functions for adding the I2C adapter.
    
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
    Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Yicong Yang authored and Wolfram Sang committed Apr 10, 2021
  12. Merge branch 'i2c/software-nodes' into i2c/for-5.13

    Wolfram Sang committed Apr 10, 2021
  13. i2c: Remove support for dangling device properties

    From now on only accepting complete software nodes.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  14. Input: elantech - Prepare a complete software node for the device

    Creating a software node and supplying that for the device
    instead of only the device properties in it. A software
    node was always created in any case to hold the additional
    device properties, so this change does not have any real
    effect.
    
    This change makes it possible to remove support for the
    problematic "dangling" device properties from i2c subsystem,
    i.e. the "properties" member from struct i2c_board_info. The
    problems caused by them are not related to this driver.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  15. platform/chrome: chromeos_laptop - Prepare complete software nodes

    The older device property API is going to be removed soon
    and that will affect also I2C subystem. Supplying complete
    software nodes instead of only the properties in them for
    the I2C devices.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  16. i2c: icy: Constify the software node

    Complete software node can now be supplied to the device
    with struct i2c_board_info.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Reviewed-by: Max Staudt <max@enpas.org>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  17. i2c: nvidia-gpu: Constify the software node

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  18. i2c: cht-wc: Constify the software node

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  19. platform/x86: intel_cht_int33fe_microb: Constify the software node

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  20. ARM: s3c: mini2440: Constify the software node

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021
  21. ARM: pxa: stargate2: Constify the software node

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 10, 2021

Commits on Apr 8, 2021

  1. Merge branch 'i2c/for-5.13' into i2c/for-next

    Wolfram Sang committed Apr 8, 2021
  2. Merge branch 'i2c/for-current' into i2c/for-next

    Wolfram Sang committed Apr 8, 2021
  3. ARM: omap1: osk: Constify the software node

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Acked-by: Tony Lindgren <tony@atomide.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 8, 2021
  4. ARM: davinci: Constify the software nodes

    Additional device properties are always just a part of a
    software fwnode. If the device properties are constant, the
    software node can also be constant.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 8, 2021
  5. i2c: Add support for software nodes

    This makes it possible for the drivers to assign complete
    software fwnodes to the devices instead of only the device
    properties in those nodes.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
    Heikki Krogerus authored and Wolfram Sang committed Apr 8, 2021
Older