[PATCH net-next v3] net/nfc/nci: Support NCI 2.x initial sequence

2020-11-27 Thread bongsu . jeon2
From: Bongsu Jeon implement the NCI 2.x initial sequence to support NCI 2.x NFCC. Since NCI 2.0, CORE_RESET and CORE_INIT sequence have been changed. If NFCEE supports NCI 2.x, then NCI 2.x initial sequence will work. In NCI 1.0, Initial sequence and payloads are as below: (DH)

[PATCH v2 net-next 3/3] nfc: s3fwrn5: extract the common phy blocks

2020-11-27 Thread bongsu . jeon2
From: Bongsu Jeon Extract the common phy blocks to reuse it. The UART module will use the common blocks. Signed-off-by: Bongsu Jeon --- Changes in v2: - remove the common function's definition in common header file. - make the common phy_common.c file to define the common function. - wrap th

[PATCH net-next 2/3] nfc: s3fwrn5: reduce the EN_WAIT_TIME

2020-11-26 Thread bongsu . jeon2
From: Bongsu Jeon The delay of 20ms is enough to enable and wake up the Samsung's nfc chip. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index ae26594..9a

[PATCH net-next 3/3] nfc: s3fwrn5: extract the common phy blocks

2020-11-26 Thread bongsu . jeon2
From: Bongsu Jeon Extract the common phy blocks to reuse it. The UART module will use the common blocks. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/i2c.c| 111 --- drivers/nfc/s3fwrn5/phy_common.h | 86 ++ 2 files

[PATCH net-next 1/3] nfc: s3fwrn5: use signed integer for parsing GPIO numbers

2020-11-26 Thread bongsu . jeon2
From: Krzysztof Kozlowski GPIOs - as returned by of_get_named_gpio() and used by the gpiolib - are signed integers, where negative number indicates error. The return value of of_get_named_gpio() should not be assigned to an unsigned int because in case of !CONFIG_GPIOLIB such number would be a v