Skip to content

add ISO7816 support

Ludovic Desroches linux-arch linux-arm-kernel linux-serial lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v42 patches 3 repliesSuperseded
  3. v32 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches4 repliesSuperseded
v13 patches10 repliesSuperseded

Changes from the cover letter · 20 lines

- v5
- rebase on tty-next.
- add documentation for the new ioctls (mimic rs485 one).
- fix a switch/case identation
- v4
- use the IP version number instead of the compatible string to set min and max values for fidi.
- remove a useless macro for fidi.
- v3
- add IOCTLs to parisc arch.
- rework atmel_config_iso7816 according to the comments by Richard.
- keep max iteration hard coded. Will see later if the user need to set this value. It may also concern the normal/inverse mode.
- improve the checking of the value from the user space.
- v2
- uart_get_iso7816_config: check there is an iso7816_config function.
- use IOCTL macros to generate the IOCTL number.
- check that reserved field is not used.
- remove debug logs.
- check that the iso7816_config is right before doing any action.
- change the error from nack and max iteration status to a debug message.
- remove patch 3 as it concerns both rs485 and iso7816 to think more about the need of adding a lock or not.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tty/serial_core: add ISO7816 infrastructureDocumentation/serial/serial-iso7816.txt arch/alpha/include/uapi/asm/ioctls.h arch/mips/include/uapi/asm/ioctls.h +9 more+179 -00 replies
2/2tty/serial: atmel: add ISO7816 supportdrivers/tty/serial/atmel_serial.c drivers/tty/serial/atmel_serial.h+181 -120 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRichard Genoud
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] add ISO7816 support

Hi,

This patchset adds support for the ISO7816 standard. The USART devices in Microchip SoCs have an ISO7816 mode. It allows to let the USART managing the CLK and I/O signals of a smart card.

Changes:
- v5
- rebase on tty-next.
- add documentation for the new ioctls (mimic rs485 one).
- fix a switch/case identation
- v4
- use the IP version number instead of the compatible string to set min and max values for fidi.
- remove a useless macro for fidi.
- v3
- add IOCTLs to parisc arch.
- rework atmel_config_iso7816 according to the comments by Richard.
- keep max iteration hard coded. Will see later if the user need to set this value. It may also concern the normal/inverse mode.
- improve the checking of the value from the user space.
- v2
- uart_get_iso7816_config: check there is an iso7816_config function.
- use IOCTL macros to generate the IOCTL number.
- check that reserved field is not used.
- remove debug logs.
- check that the iso7816_config is right before doing any action.
- change the error from nack and max iteration status to a debug message.
- remove patch 3 as it concerns both rs485 and iso7816 to think more about the need of adding a lock or not.

Nicolas Ferre (2):
tty/serial_core: add ISO7816 infrastructure
tty/serial: atmel: add ISO7816 support

 Documentation/serial/serial-iso7816.txt |  83 ++++++++++++++
 arch/alpha/include/uapi/asm/ioctls.h    |   2 +
 arch/mips/include/uapi/asm/ioctls.h     |   2 +
 arch/parisc/include/uapi/asm/ioctls.h   |   2 +
 arch/powerpc/include/uapi/asm/ioctls.h  |   2 +
 arch/sh/include/uapi/asm/ioctls.h       |   2 +
 arch/sparc/include/uapi/asm/ioctls.h    |   2 +
 arch/xtensa/include/uapi/asm/ioctls.h   |   2 +
 drivers/tty/serial/atmel_serial.c       | 190 ++++++++++++++++++++++++++++++--
 drivers/tty/serial/atmel_serial.h       |   3 +-
 drivers/tty/serial/serial_core.c        |  60 ++++++++++
 include/linux/serial_core.h             |   3 +
 include/uapi/asm-generic/ioctls.h       |   2 +
 include/uapi/linux/serial.h             |  17 +++
 14 files changed, 360 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/serial/serial-iso7816.txt
Signature · 1 line
2.12.2