linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] add ISO7816 support
@ 2018-08-07 13:00 Ludovic Desroches
  2018-08-07 13:00 ` [PATCH v3 1/2] tty/serial_core: add ISO7816 infrastructure Ludovic Desroches
  2018-08-07 13:00 ` [PATCH v3 2/2] tty/serial: atmel: add ISO7816 support Ludovic Desroches
  0 siblings, 2 replies; 9+ messages in thread
From: Ludovic Desroches @ 2018-08-07 13:00 UTC (permalink / raw)
  To: linux-serial, linux-arch, linux-arm-kernel
  Cc: gregkh, jslaby, arnd, richard.genoud, nicolas.ferre,
	alexandre.belloni, linux-kernel, Ludovic Desroches

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:
- 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

 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      | 211 ++++++++++++++++++++++++++++++---
 drivers/tty/serial/atmel_serial.h      |   6 +-
 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 +++
 13 files changed, 297 insertions(+), 16 deletions(-)

-- 
2.12.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-05 14:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-07 13:00 [PATCH v3 0/2] add ISO7816 support Ludovic Desroches
2018-08-07 13:00 ` [PATCH v3 1/2] tty/serial_core: add ISO7816 infrastructure Ludovic Desroches
2018-08-07 13:32   ` Christoph Hellwig
2018-08-07 13:00 ` [PATCH v3 2/2] tty/serial: atmel: add ISO7816 support Ludovic Desroches
2018-08-09  8:47   ` Richard Genoud
2018-08-09 11:30     ` Ludovic Desroches
2018-09-05 12:43       ` Ludovic Desroches
2018-09-05 13:53         ` Richard Genoud
2018-09-05 14:14           ` Ludovic Desroches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).