Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1457023imm; Thu, 19 Jul 2018 01:52:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeLdHNH5JXJLAnbmDWG9XXJWQ+pJjBitXO2LValEj/wM+ATaN7XNj5ctY7eSdVDcOOxxoZZ X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr9220825pgg.370.1531990363933; Thu, 19 Jul 2018 01:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531990363; cv=none; d=google.com; s=arc-20160816; b=q6POQ2Dw45M1eXlO/zLroINKVx7anPQmQQawuqoBQLI8nvX4iquwNlloEEgGMMSPGm sbDsG1k4bXQofxoGmMbWgfelLdIfYQpoMUARwMaAkUmk652EPj3NEfgzQahi4TxPG4ev cFD3+jJCmW22urWjaUJtwaBJLclSwubnX9YdCYnyAtZeaCAbBUu2/StohtvsAuJBLR+E Q1muu7L5HNusyk6MnBKkqpIFSS7Q7QVHek0R2kcCInHntTJvyhz86MMwi7obWLKgMQ04 SU0OdcJrqlQ0D2S9zAnPjz4bWLKxzwGBe/FLYxkLE6Z76IBgI8rZXLYYDjpF6eTloeqs riJg== 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=oZDPR5CZhHPiXB8WyH9TIk2cJs7IwhYLYZZ4SkcKHps=; b=I8AB7NFi8o3gs1iC3OC7VlkbaUaUZYI/Lwr9fbCA0smENYVSkSpeUfTXuJ85bh9G5c VQO6KOfCmoM7j7Io+BXfOaJvlgHrMUfZVcKeoSmREfU5UwfIBreFwURrcmUoUl8EiXcD N522FM26W2dHoj6MxEg1euG2zR+MGjx+KCmpmQAXkAKq0Sg76cilTddmUPSM8c3rqPed wLxwLedOPk0g/Mcc6n8U2eqN9YQfh0E3Xb/+UoFmxldHVc1XQmCet+CArS9toVgJ79V1 f9uw7gc6JtUJr/BQHUCL1FLHkkCbG2VvJneIEeR2/aGq2qiZUYO0E+wPzoAAW6YzLv6h 2C+g== 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 w22-v6si4864093plp.294.2018.07.19.01.52.29; Thu, 19 Jul 2018 01:52:43 -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 S1731065AbeGSJdW (ORCPT + 99 others); Thu, 19 Jul 2018 05:33:22 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:55602 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbeGSJdW (ORCPT ); Thu, 19 Jul 2018 05:33:22 -0400 X-IronPort-AV: E=Sophos;i="5.51,374,1526367600"; d="scan'208";a="14347205" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Jul 2018 01:51:16 -0700 Received: from ibiza.rfo.atmel.com (10.10.76.4) by chn-sv-exch03.mchp-main.com (10.10.76.49) with Microsoft SMTP Server id 14.3.352.0; Thu, 19 Jul 2018 01:51:14 -0700 From: Ludovic Desroches To: , , CC: , , , , , , , Ludovic Desroches Subject: [PATCH v2 0/2] add ISO7816 support Date: Thu, 19 Jul 2018 10:47:35 +0200 Message-ID: <20180719084737.1490-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 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: - 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/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 | 170 +++++++++++++++++++++++++++++++-- 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 ++++ 12 files changed, 256 insertions(+), 11 deletions(-) -- 2.12.2