- 28 1月, 2021 2 次提交
-
-
由 Arnd Bergmann 提交于
The zte zx platform is getting removed, so this driver is no longer needed. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Andre Przywara 提交于
Add the obvious compatible name to the existing I2C binding, and pair it with the existing A31 fallback compatible string, as the devices are compatible. On the way use enums to group all compatible devices together. Signed-off-by: NAndre Przywara <andre.przywara@arm.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
- 22 1月, 2021 9 次提交
-
-
由 Wolfram Sang 提交于
This driver implements I2C_M_RECV_LEN, so it can advertise the SMBus transfers needing it. This also enables client devices to check for the RECV_LEN capability. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
This driver implements I2C_M_RECV_LEN, so it can advertise the SMBus transfers needing it. This also enables client devices to check for the RECV_LEN capability. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Let's use the new macro for emulating SMBus with RECV_LEN support. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Some I2C bus master drivers which support I2C_M_RECV_LEN do not set the functionality bits of the now supported SMBus transfers. Add a convenience macro to make this very simple. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Remove boilerplate because we now have the SPDX header. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Remove boilerplate because we now have the SPDX header. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
The information about 'i2c_msg' was spread between kdoc and comments. Move all the explanations to kdoc and duplicate only the requirements for the flags in the comments. Also, add some redundancy and fix some typos while here. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Arnd Bergmann 提交于
The ST-Ericsson U300 platform is getting removed, so this driver is no longer needed. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Reviewed-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Arnd Bergmann 提交于
The CSR SiRF prima2/atlas platforms are getting removed, so this driver is no longer needed. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Acked-by: NBarry Song <baohua@kernel.org> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
- 17 1月, 2021 5 次提交
-
-
由 Tom Rix 提交于
Defining DEBUG should only be done in development. So remove DEBUG. Signed-off-by: NTom Rix <trix@redhat.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Evan Green 提交于
Enable i2c-mux-gpio devices to be defined via ACPI. The idle-state property translates directly to a fwnode_property_*() call. The child reg property translates naturally into _ADR in ACPI. The i2c-parent binding is a relic from the days when the bindings dictated that all direct children of an I2C controller had to be I2C devices. These days that's no longer required. The i2c-mux can sit as a direct child of its parent controller, which is where it makes the most sense from a hardware description perspective. For the ACPI implementation we'll assume that's always how the i2c-mux-gpio is instantiated. Signed-off-by: NEvan Green <evgreen@chromium.org> Acked-by: NPeter Rosin <peda@axentia.se> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Evan Green 提交于
Factor out &pdev->dev into a local variable in preparation for the ACPI enablement of this function, which will utilize the variable more. Signed-off-by: NEvan Green <evgreen@chromium.org> Acked-by: NPeter Rosin <peda@axentia.se> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Uwe Kleine-König 提交于
Support for this machine was just removed, so drop the now unused i2c bus driver, too. Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
- 12 1月, 2021 1 次提交
-
-
由 Dmitry Torokhov 提交于
When copying memory from one buffer to another, instead of open-coding loops with byte-by-byte copies let's use memcpy() which might be a bit faster and makes intent more clear. Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: NLuca Ceresoli <luca@lucaceresoli.net> Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
- 06 1月, 2021 11 次提交
-
-
由 Vadim Pasternak 提交于
Add support for I2C bus frequency setting according to the specific system capability. This capability is obtained from CPLD frequency setting register, which could be provided through the platform data. If such register is provided, it specifies minimal I2C bus frequency to be used for the devices attached to the I2C bus. Supported freqeuncies are 100KHz, 400KHz, 1MHz, while 100KHz is the default. Signed-off-by: NVadim Pasternak <vadimp@nvidia.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Zheng Yongjun 提交于
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: NZheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Zheng Yongjun 提交于
Don't open-code DIV_ROUND_UP() kernel macro. Signed-off-by: NZheng Yongjun <zhengyongjun3@huawei.com> Reviewed-by: NFabio Estevam <festevam@gmail.com> Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Tian Tao 提交于
Remove dev_err() messages after platform_get_irq*() failures. drivers/i2c/busses/i2c-hix5hd2.c:417:2-9: line 417 is redundant because platform_get_irq() already prints an error Signed-off-by: NTian Tao <tiantao6@hisilicon.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Let MODULE_LICENCE match the SPDX header which is correctly based on the previous textual description. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Rayagonda Kokatanur 提交于
Add code to handle IS_S_RX_FIFO_FULL_SHIFT interrupt to support master write request with >= 64 bytes. Iproc has a slave rx fifo size of 64 bytes. Rx fifo full interrupt (IS_S_RX_FIFO_FULL_SHIFT) will be generated when RX fifo becomes full. This can happen if master issues write request of more than 64 bytes. Signed-off-by: NRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Acked-by: NRay Jui <ray.jui@broadcom.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Rayagonda Kokatanur 提交于
Handle single or multi byte master read request with or without repeated start. Fixes: c245d94e ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: NRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Acked-by: NRay Jui <ray.jui@broadcom.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Rayagonda Kokatanur 提交于
Fix typo in bcm_iproc_i2c_slave_isr(). Signed-off-by: NRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Acked-by: NRay Jui <ray.jui@broadcom.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Rayagonda Kokatanur 提交于
Update slave isr mask (ISR_MASK_SLAVE) to include remaining two slave interrupts. Fixes: c245d94e ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: NRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Acked-by: NRay Jui <ray.jui@broadcom.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Rayagonda Kokatanur 提交于
Handle only slave interrupts which are enabled. The IS_OFFSET register contains the interrupt status bits which will be set regardless of the enabling of the corresponding interrupt condition. One must therefore look at both IS_OFFSET and IE_OFFSET to determine whether an interrupt condition is set and enabled. Fixes: c245d94e ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: NRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Acked-by: NRay Jui <ray.jui@broadcom.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Rayagonda Kokatanur 提交于
Handle Master aborted error by flushing tx and rx fifo and reinitializing the hw. Signed-off-by: NRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Acked-by: NRay Jui <ray.jui@broadcom.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
- 05 1月, 2021 11 次提交
-
-
由 Wolfram Sang 提交于
V3U creates spurious interrupts which we need to handle. This costs time until BUS_PHASE_DATA can be activated which is problematic for Gen2 SoCs and earlier. Because of this we introduce two interrupt handlers here which will call a generic main irq function once the timing critical stuff is done. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
Ensure this irq runs as fast as possible. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
'flags' and 'io' are needed first, so they should be at the beginning of the private struct. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Wolfram Sang 提交于
To avoid the HW race condition on R-Car Gen2 and earlier, we need to write to ICMCR as soon as possible in the interrupt handler. We can improve this by writing a static value instead of masking out bits. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Roja Rani Yarubandi 提交于
Store DMA mapping data in geni_i2c_dev struct to enhance DMA mapping data scope. For example during shutdown callback to unmap DMA mapping, this stored DMA mapping data can be used to call geni_se_tx_dma_unprep and geni_se_rx_dma_unprep functions. Add two helper functions geni_i2c_rx_msg_cleanup and geni_i2c_tx_msg_cleanup to unwrap the things after rx/tx FIFO/DMA transfers, so that the same can be used in geni_i2c_stop_xfer() function during shutdown callback. Signed-off-by: NRoja Rani Yarubandi <rojay@codeaurora.org> Reviewed-by: NAkash Asthana <akashast@codeaurora.org> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Andy Shevchenko 提交于
platform_device_unregister() is NULL-aware and thus doesn't required a duplication check in i801_del_mux(). Besides that it's also error pointer aware, and we may drop unneeded assignment in i801_add_mux() followed by conversion to PTR_ERR_OR_ZERO() for the returned value. Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Andy Shevchenko 提交于
Since gpiod_remove_lookup_table() is NULL-aware, no need to have this check in the caller. Drop duplicate NULL check. Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Andy Shevchenko 提交于
The usual pattern for the remove calls, like gpiod_remove_lookup_table(), is to be NULL-aware, i.o.w. become a no-op whenever parameter is NULL. Update gpiod_remove_lookup_table() call to follow this pattern. Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: NBartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Vadim Pasternak 提交于
Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 2000 usec to 400 usec. It greatly improves performance of I2C transactions. Reliability of setting polling time to 400 usec has been thoroughly validated across all the supported systems. Signed-off-by: NVadim Pasternak <vadimp@nvidia.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Vadim Pasternak 提交于
Update license to SPDX-License. Signed-off-by: NVadim Pasternak <vadimp@nvidia.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
由 Hans de Goede 提交于
i2c_new_client_device() already prints an error when it fails. Some ACPI tables contain 2 ACPI devices describing the same i2c-client, leading to errors like this: [ 1.620847] i2c i2c-4: Failed to register i2c client MAGN0001:00 at 0x1d (-16) [ 1.620870] i2c i2c-4: failed to add I2C device MAGN0001:00 from ACPI There is nothing we can do about the first -EBUSY error being logged, but the second error does not really add any new information, so lets drop it. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
-
- 04 1月, 2021 1 次提交
-
-
由 Linus Torvalds 提交于
-