Le 13/10/2015 17:19, Peter Rosin a écrit :
> On 2015-10-13 16:21, Ludovic Desroches wrote:
>> From: Cyrille Pitchen <cyrille.pitc...@atmel.com>
>>
>> In some cases a NACK interrupt may be pending in the Status Register (SR)
>> as a result of a previous transfer. H
ave devices connected to the bus, add a DT
> property "atmel,twd-hold-cycles" to specify this HOLD field.
>
> Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com>
Acked-by: Cyrille Pitchen <cyrille.pitc.
/i2c/busses/i2c-at91.c:293: style: Checking if unsigned variable
'buf_len' is less than zero.
Thanks for reporting!
Cyrille Pitchen (1):
i2c: at91: fix code checker warnings
drivers/i2c/busses/i2c-at91.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
1.8.2.2
buf_len is a size_t, so unsigned but was tested with '= 0'.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index
Hi all,
this patch was made after applying the previous series
[PATCH v6 0/6] i2c: at91: add support to FIFOs and alternative command,
which was already accepted.
Best Regards,
Cyrille
Le 11/06/2015 11:16, Cyrille Pitchen a écrit :
ChangeLog
v1:
This patch fixes somes code checker
add a new value atmel,sama5d2-i2c for the compatible property.
add a new optional property atmel,fifo-size to enable FIFO support when
available.
add missing optional properties dmas and dma-names.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
Documentation/devicetree/bindings/i2c
of the ACR is not used so its Data
Length 8bit counter is cleared.
For each byte sent or received by the device, the Data Length 8bit counter
is decremented. When it reaches 0, a STOP condition is automatically sent.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses
The probe() function now prints the hardware version of the I2C
controller.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c
properly
in the I2C controller node of the device tree.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 147 +-
1 file changed, 130 insertions(+), 17 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b
. However to unify
the management of the TXCOMP bit when the DMA controller is used, the
TXCOMP interrupt is now enabled by the DMA callbacks for both TX and
RX transfers.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
Cc: sta...@vger.kernel.org #3.10 and later
---
drivers/i2c/busses/i2c
transfers take
advantage of FIFOs.
Cyrille Pitchen (6):
i2c: at91: fix a race condition when using the DMA controller
i2c: at91: use BIT() macro to define register bits
i2c: at91: update documentation for DT bindings
i2c: at91: add support for new alternative command mode
i2c: at91: print
This patch just fixes typo before applying later patches which will use
register bits with index above 16.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git
access to the Transmit
Holding Register. Also the RX FIFO allows to read up to 4 data in a single
access to the Receive Holding Register. Currently only DMA transfers take
advantage of FIFOs.
Cyrille Pitchen (6):
i2c: at91: fix a race condition when using the DMA controller
i2c: at91: use BIT
properly
in the I2C controller node of the device tree.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 146 +-
1 file changed, 129 insertions(+), 17 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b
of the ACR is not used so its Data
Length 8bit counter is cleared.
For each byte sent or received by the device, the Data Length 8bit counter
is decremented. When it reaches 0, a STOP condition is automatically sent.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses
The probe() function now prints the hardware version of the I2C
controller.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index
This patch just fixes typo before applying later patches which will use
register bits with index above 16.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git
. However to unify
the management of the TXCOMP bit when the DMA controller is used, the
TXCOMP interrupt is now enabled by the DMA callbacks for both TX and
RX transfers.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
Cc: sta...@vger.kernel.org #3.10 and later
---
drivers/i2c/busses/i2c
properly
in the I2C controller node of the device tree.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 147 +-
1 file changed, 130 insertions(+), 17 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b
This patch just fixes typo before applying later patches which will use
register bits with index above 16.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git
add a new value atmel,at91sama5d2-i2c for the compatible property.
add a new optional property atmel,fifo-size to enable FIFO support when
available.
add missing optional properties dmas and dma-names.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
Documentation/devicetree/bindings
The probe() function now prints the hardware version of the I2C
controller.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c
of the ACR is not used so its Data
Length 8bit counter is cleared.
For each byte sent or received by the device, the Data Length 8bit counter
is decremented. When it reaches 0, a STOP condition is automatically sent.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses
to reduce number I/O accesses: for instance,
the TX FIFO allows to write up to 4 data in a single access to the Transmit
Holding Register. Also the RX FIFO allows to read up to 4 data in a single
access to the Receive Holding Register. Currently only DMA transfers take
advantage of FIFOs.
Cyrille
of the ACR is not used so its Data
Length 8bit counter is cleared.
For each byte sent or received by the device, the Data Length 8bit counter
is decremented. When it reaches 0, a STOP condition is automatically sent.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses
. However to unify
the management of the TXCOMP bit when the DMA controller is used, the
TXCOMP interrupt is now enabled by the DMA callbacks for both TX and
RX transfers.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 70
add a new value atmel,at91sama5d2-i2c for the compatible property.
add a new optional property atmel,fifo-size to enable FIFO support when
available.
add missing optional properties dmas and dma-names.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
Documentation/devicetree/bindings
to reduce number I/O accesses: for instance,
the TX FIFO allows to write up to 4 data in a single access to the Transmit
Holding Register. Also the RX FIFO allows to read up to 4 data in a single
access to the Receive Holding Register. Currently only DMA transfers take
advantage of FIFOs.
Cyrille
The probe() function now prints the hardware version of the I2C
controller.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index
properly
in the I2C controller node of the device tree.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 146 +-
1 file changed, 129 insertions(+), 17 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b
to the Receive Holding Register. Currently only DMA transfers take
advantage of FIFOs.
Cyrille Pitchen (5):
i2c: at91: use BIT() macro to define register bits
i2c: at91: update documentation for DT bindings
i2c: at91: add support for new alternative command mode
i2c: at91: print hardware version
This patch just fixes typo before applying later patches which will use
register bits with index above 16.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git
add a new value atmel,at91sama5d2-i2c for the compatible property.
add a new optional property atmel,fifo-size to enable FIFO support when
available.
add missing optional properties dmas and dma-names.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
Documentation/devicetree/bindings
The probe() function now prints the hardware version of the I2C controller
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index
properly
in the I2C controller node of the device tree.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 146 +-
1 file changed, 129 insertions(+), 17 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b
of the ACR is not used so its Data Length 8bit counter is
cleared.
For each byte sent or received by the device, the Data Length 8bit counter is
decremented. When it reaches 0, a STOP condition is automatically sent.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses
The probe() function now prints the hardware version of the I2C controller
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index
of the ACR is not used so its Data Length 8bit counter is
cleared.
For each byte sent or received by the device, the Data Length 8bit counter is
decremented. When it reaches 0, a STOP condition is automatically sent.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses
advantage of FIFOs.
Cyrille Pitchen (3):
i2c: at91: add support for new alternative command mode
i2c: at91: print hardware version
i2c: at91: add support to FIFOs
drivers/i2c/busses/i2c-at91.c | 347 +++---
1 file changed, 288 insertions(+), 59 deletions
properly
in the I2C controller node of the device tree.
Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com
---
drivers/i2c/busses/i2c-at91.c | 146 +-
1 file changed, 129 insertions(+), 17 deletions(-)
diff --git a/drivers/i2c/busses/i2c-at91.c b
40 matches
Mail list logo