Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1565120imm; Thu, 19 Jul 2018 04:09:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdWOu3TjdkDFhJWhlBhS0tMBpCEJfk5yz570B0skTbE5LAOCXGkKjw0JZhyp5hSqETNPRT3 X-Received: by 2002:a63:cd02:: with SMTP id i2-v6mr9354770pgg.93.1531998543350; Thu, 19 Jul 2018 04:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531998543; cv=none; d=google.com; s=arc-20160816; b=DcZXQj0II448crOC+rYDZV4NLbG9VY4Ez80AR6Qwkdqinsk8lNDtLpNQhqIsEseq3y ES7EirpptQBpK23rpncKSJxBL40vweX4DjEIluGJr6nIwsAdKt3T/JKCT5OWNWN/HXDP sl1ZJpMLa3OcrcXW0QT5gDgAW5EMOuvDXb8R01XbHFA9hVG5TW+ADVk8Kl0NLCGdJ+nP fEyfcS18NxPARyvIjF++4P6fkZNIF88/YxBqsMdei2wvaI8YnEBby9X7v4c7wZzlh1dW pUogfQHHSRkJJ6YQvmyuJNrxFvwMEFnqaJDa2wPt4llgHdlbk7kUm8K62YAqkMWyXgqx 58kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=rMehJ3leG4x82DYtfpbrgH6rQVbKjJ2y/5RwQoFeBvI=; b=Y/ifeJI0pJJchbNu10BIAGxEQeWk9WQPEWqhYZHFfD37BhN+ROROpOZsJdbeBXkyD6 NlcPtsCh8IK0pjqF6ocDyaQpvgXozuQ1NubliFppeBh3iFD99VSDQZkQBmC/nmFYAXyu gvKzG+5i34UDgBLz6f63DsarlAP1EpMqhdiSbFwFNoYsdfyhG/J5dcoHSwrZNDfS8KnR SjjAqgQxD0aCQH9bxWWndvMoaqiy0R+n1BbRWbqQedo4vpvtQtQrn/kDrJoP0egYxKIl M0vV2M4mbMpucCavijTtdIfNoC1QEbvARcqAnvWpI+MPgv0pqxL4SZRPGs3oIGEkWof7 Ka5g== 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 s85-v6si5490866pfe.290.2018.07.19.04.08.48; Thu, 19 Jul 2018 04:09:03 -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 S1731065AbeGSLuM (ORCPT + 99 others); Thu, 19 Jul 2018 07:50:12 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:57498 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbeGSLuM (ORCPT ); Thu, 19 Jul 2018 07:50:12 -0400 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w6JB75e8029809; Thu, 19 Jul 2018 12:07:06 +0100 Date: Thu, 19 Jul 2018 12:07:05 +0100 From: Alan Cox To: Ludovic Desroches Cc: Greg KH , , , , , , , , , Subject: Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure Message-ID: <20180719120705.4a2fde04@alans-desktop> In-Reply-To: <20180713080129.2ifw7crjksvaxxpq@M43218.corp.atmel.com> References: <20180711131638.12622-1-ludovic.desroches@microchip.com> <20180711131638.12622-2-ludovic.desroches@microchip.com> <20180712145808.GA22502@kroah.com> <20180713080129.2ifw7crjksvaxxpq@M43218.corp.atmel.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > + if (!port->iso7816_config) > > > + return -ENOIOCTLCMD; > > > > Why this error value? > > > > It was a mimic of RS485. Which is what you want - it means the upper tty layer knows to offer the ioctl to other places and then return appropriately. Alan