Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp656807imm; Wed, 11 Jul 2018 08:47:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfuyUZQn5IP26LBQ9rQV0c3dymcjtJyO9rnYcY0s0di1BeaMElM6Pj/VwQof9GcNNpiRHQ4 X-Received: by 2002:a62:2352:: with SMTP id j79-v6mr8427254pfj.221.1531324024936; Wed, 11 Jul 2018 08:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531324024; cv=none; d=google.com; s=arc-20160816; b=Sj4FnYYCaM0VxEXrP5IhpwgUOFdejP4D63bWONzDb2kme1BXWL9W0wLVTy74bIiQvE 58licXRalji6u8JvU3d9oi9sfJEREeTXobWesZExOhvhzEV0tn04MW1TLArCe8LnnUYV BlXpQFX2XqCWyvKf34j8AvPINm0xgmE/mKvhQymf/9K4T+X2ejiVOn1XNqage5otMwRY 2+iPGn4f9VUijxUk86RTDd4r+DTpLY+FMxnsG9xRQfyJ4fcTGXhh2dWD6ffj7h5lsG53 BViNkZzsFYBw8l2GOd8kkl0ItTF3TuyMwshY6lAZdcUp2KAhXEhr9c50dl/Pj348zSOy s50A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=Ac7BdZ/LwlqBd5ajMZesVJMwhGkRdLQ/VrXycBkbJpE=; b=WCRXDLfxqWodazu/MxaezUeAWLOmPZe6zrPypo/Gk1m23VZ4yR7ere3xRMdP38aL9u 4DSlckGkiWPOB5CVBB9fJ9GbG4Hd/KVagwVwsMcW7m8TllgLu6JxqI8vNW+SSiXUM6Wn HrskgJXTMYkFvpAKgWpFHcZka/yDO3hQXFg9VNH3z1OPLFucnjqlbWkbK8ZJ0qm+2OEY HGtyyR50lRgn0FO8uiqxQslD2azVZT5niPTOshxLFyrwaIAvZgBgNHQwiauteU/5Qz2U QYHnucnH5eIMrxbhIJLlPeE1OODVQ5PRCcfSfcIeKf1QLYDz1dtbupuKDRaA5AoBs6rA RrMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9-v6si19496045pfm.85.2018.07.11.08.46.49; Wed, 11 Jul 2018 08:47:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387622AbeGKNY6 (ORCPT + 99 others); Wed, 11 Jul 2018 09:24:58 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:21760 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732562AbeGKNY6 (ORCPT ); Wed, 11 Jul 2018 09:24:58 -0400 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="16189970" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Jul 2018 06:20:38 -0700 Received: from ibiza.rfo.atmel.com (10.10.76.4) by chn-sv-exch06.mchp-main.com (10.10.76.107) with Microsoft SMTP Server id 14.3.352.0; Wed, 11 Jul 2018 06:20:37 -0700 From: Ludovic Desroches To: , , CC: , , , , , , , Ludovic Desroches Subject: [PATCH 0/3] add ISO7816 support Date: Wed, 11 Jul 2018 15:16:35 +0200 Message-ID: <20180711131638.12622-1-ludovic.desroches@microchip.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This set of patches 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. Nicolas Ferre (3): tty/serial_core: add ISO7816 infrastructure tty/serial: atmel: add ISO7816 support tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode drivers/tty/serial/atmel_serial.c | 179 +++++++++++++++++++++++++++++++++++--- drivers/tty/serial/atmel_serial.h | 3 +- drivers/tty/serial/serial_core.c | 49 +++++++++++ include/linux/serial_core.h | 3 + include/uapi/asm-generic/ioctls.h | 2 + include/uapi/linux/serial.h | 17 ++++ 6 files changed, 241 insertions(+), 12 deletions(-) -- 2.12.2