NFC: Driver for SAMSUNG S3FHRN2 NFC Chip.
Subsystems (2)
PATCH 1/1 NFC: Driver for SAMSUNG S3FHRN2 NFC Chip.
This is a driver for the S3FHRN2 NFC device. the driver is just a proxy getting SHDLC/HCI frames from a userspace stack.
--- drivers/nfc/Kconfig | 8 + drivers/nfc/Makefile | 1 + drivers/nfc/s3fhrn2_i2c.c | 594 +++++++++++++++++++++++++++++++++++++++++++ include/linux/nfc/s3fhrn2.h | 52 ++++ 4 files changed, 655 insertions(+), 0 deletions(-) create mode 100644 drivers/nfc/s3fhrn2_i2c.c create mode 100644 include/linux/nfc/s3fhrn2.h
drivers/nfc/Kconfig +8 -0
@@ -51,4 +51,12 @@ config NFC_WILINK Say Y here to compile support for Texas Instrument's NFC WiLink driver into the kernel or say M to compile it as module. +config S3FHRN2 + bool "Samsung NFC S3FHRN2 I2C driver" + depends on I2C + help + This driver provides support for NFC SAMSUNG S3FHRN2 devices. + Say Y if you want S3FHRN2 NFC driver. + + This is for I2C connected version. If unsure, say N here. endmenu
drivers/nfc/Makefile +1 -0
@@ -6,5 +6,6 @@ obj-$(CONFIG_PN544_NFC) += pn544.o obj-$(CONFIG_PN544_HCI_NFC) += pn544_hci.o obj-$(CONFIG_NFC_PN533) += pn533.o obj-$(CONFIG_NFC_WILINK) += nfcwilink.o +obj-$(CONFIG_S3FHRN2_I2C) += s3fhrn2_i2c.o ccflags-$(CONFIG_NFC_DEBUG) := -DDEBUG
drivers/nfc/s3fhrn2_i2c.c new file +594 -0
594 lines not on this page · raw message
include/linux/nfc/s3fhrn2.h new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
1.7.1
Hi,
Quoted 2 lines
This is a driver for the S3FHRN2 NFC device. the driver is just a proxy getting SHDLC/HCI frames from a userspace stack.
<snip>
drivers/nfc/s3fhrn2_i2c.c line 495
Quoted 10 lines
drivers/nfc/s3fhrn2_i2c.c new file +10
-0+ + info->miscdev.minor =MISC_DYNAMIC_MINOR ; + info->miscdev.name =S3FHRN2_DRIVER_NAME ; + info->miscdev.fops = &s3fhrn2_fops; + info->miscdev.parent = &client->dev; + ret =misc_register (&info->miscdev); +if (ret <0 ) { +dev_err (&client->dev,"failed to register Device\n" ); + goto err_dev_reg; + }
instead of creating a misc character device, I would prefer that this gets integrated as driver for the NFC subsystem.
We do not want to have shim NFC drivers in the kernel anymore.
Regards
Marcel
Hello,
Quoted 20 lines
Quoted 3 lines
This is a driver for the S3FHRN2 NFC device. the driver is just a proxy getting SHDLC/HCI frames from a userspace stack.
<snip>
drivers/nfc/s3fhrn2_i2c.c line 495
Quoted 10 lines
drivers/nfc/s3fhrn2_i2c.c new file +10
-0+ + info->miscdev.minor =MISC_DYNAMIC_MINOR ; + info->miscdev.name =S3FHRN2_DRIVER_NAME ; + info->miscdev.fops = &s3fhrn2_fops; + info->miscdev.parent = &client->dev; + ret =misc_register (&info->miscdev); +if (ret <0 ) { +dev_err (&client->dev,"failed to register Device\n" ); + goto err_dev_reg; + }instead of creating a misc character device, I would prefer that this gets integrated as driver for the NFC subsystem.
Quoted 2 lines
We do not want to have shim NFC drivers in the kernel anymore.
Ok, I think you are right.
I will submit again after I change misc character device to nfc device of NFC subsystem.
Thank you for your review.
Regards
Woonki.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi WoonKi,
Quoted 4 lines · �̿���
This is a driver for the S3FHRN2 NFC device. the driver is just a proxy getting SHDLC/HCI frames from a userspace stack.
Signed-off-by WoonKi Lee <[email protected]>
NACK from me. We started the NFC subsystem to avoid having a new and different ad-hoc API for each and every NFC driver, and that's what you're doing right here.
Until this driver gets converted to the kernel NFC APIs, it should live in the staging directory.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/
Hello Samuel.
Quoted 7 lines
Hi WoonKi,
Quoted 3 lines · �̿���
This is a driver for the S3FHRN2 NFC device. the driver is just a proxy getting SHDLC/HCI frames from a userspace stack.
Quoted 7 lines
Quoted 1 line
Signed-off-by WoonKi Lee <[email protected]>NACK from me. We started the NFC subsystem to avoid having a new and different ad-hoc API for each and every NFC driver, and that's what you're doing right here.
Until this driver gets converted to the kernel NFC APIs, it should live in the staging directory.
Ok, I see.
I wonder that if I am able to use NFC API except HCI/SHDLC.
I do not have any API of HCI/SHDLC. This driver assumes the upper layer of kernel supports them.
Please let me know if I have to use HCI/SHDLC components of NFC subsystem.
Thank you for your review.
Regards,
WoonKi.