c64eb297 | 07-Mar-2019 |
Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> |
i2c: rcar_i2c: Move FSDA check to rcar_i2c_recover
Cosmetic change. Any call to the recover function would need to do the same check afterwards, so it's sensible to make it part of the function.
S
i2c: rcar_i2c: Move FSDA check to rcar_i2c_recover
Cosmetic change. Any call to the recover function would need to do the same check afterwards, so it's sensible to make it part of the function.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com>
show more ...
|
7c8f821e | 07-Mar-2019 |
Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> |
i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer
It needs to be done for both reads and writes, so do it at rcar_i2c_xfer to avoid duplication.
Signed-off-by: Ismael Luceno <ismael.luceno@si
i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer
It needs to be done for both reads and writes, so do it at rcar_i2c_xfer to avoid duplication.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
ff4035be | 07-Mar-2019 |
Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> |
i2c: rcar_i2c: Don't mask errors with EREMOTEIO at rcar_i2c_xfer
Fix rcar_i2c_xfer return value, previously it was always returning -EREMOTEIO when dealing with errors from calls to the read/write f
i2c: rcar_i2c: Don't mask errors with EREMOTEIO at rcar_i2c_xfer
Fix rcar_i2c_xfer return value, previously it was always returning -EREMOTEIO when dealing with errors from calls to the read/write functions.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
3ad31eb1 | 07-Mar-2019 |
Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> |
i2c: rcar_i2c: Fix sending of slave addresses
Do the reset before clearing the MSR, otherwise it may result in a read or write operation instead if the start condition is repeated.
Signed-off-by: I
i2c: rcar_i2c: Fix sending of slave addresses
Do the reset before clearing the MSR, otherwise it may result in a read or write operation instead if the start condition is repeated.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
3b59eaef | 07-Mar-2019 |
Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> |
i2c: rcar_i2c: Add comments about registers & values
Document the meaning of macros related to registers and values to be written to them.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.
i2c: rcar_i2c: Add comments about registers & values
Document the meaning of macros related to registers and values to be written to them.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
4fcff08c | 07-Mar-2019 |
Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> |
i2c: rcar_i2c: Setup SCL/SDA delay at rcar_i2c_set_speed
Setting up the delay only needs to be done once; move it to rcar_i2c_set_speed so it's done at initialization time.
Signed-off-by: Ismael Lu
i2c: rcar_i2c: Setup SCL/SDA delay at rcar_i2c_set_speed
Setting up the delay only needs to be done once; move it to rcar_i2c_set_speed so it's done at initialization time.
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
bc005124 | 07-Mar-2019 |
Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> |
i2c: i2c_cdns: Add support for handling arbitration lost
This patch adds support for handling arbitration lost in case of multi master mode. When an arbitration lost is detected, it retries for 10 t
i2c: i2c_cdns: Add support for handling arbitration lost
This patch adds support for handling arbitration lost in case of multi master mode. When an arbitration lost is detected, it retries for 10 times before failing.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
006265d0 | 07-Mar-2019 |
Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> |
i2c: i2c_cdns: Fix clearing of all interrupts
The arbitration lost interrupt was not getting cleared while clearing interrupts. This patch fixes this by adding arbitration lost interrupt as well dur
i2c: i2c_cdns: Fix clearing of all interrupts
The arbitration lost interrupt was not getting cleared while clearing interrupts. This patch fixes this by adding arbitration lost interrupt as well during clear. This patch also removes hardcoded value and defined a macro for it.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
da53b054 | 02-Mar-2019 |
Marek Vasut <marek.vasut@gmail.com> |
i2c: rcar_i2c: Add Gen3 SoC support
Add support for R-Car Gen3 SoCs into the driver, which encompases the Gen3 SoC extra timing register handling and 64bit build fixes.
Signed-off-by: Marek Vasut <
i2c: rcar_i2c: Add Gen3 SoC support
Add support for R-Car Gen3 SoCs into the driver, which encompases the Gen3 SoC extra timing register handling and 64bit build fixes.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|