Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1795602imm; Thu, 12 Jul 2018 08:00:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdQp2Z0fSK5WN/M643Gtm9OjzDjhwUjLMHIIeWH/mXhIQ4APW0bKJKhPYevRYA0MD60Tqgs X-Received: by 2002:a62:8917:: with SMTP id v23-v6mr2822697pfd.127.1531407611147; Thu, 12 Jul 2018 08:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531407611; cv=none; d=google.com; s=arc-20160816; b=pcJK/6PfMzoCS5GYbvFB17BjIpUvKqGWqsc4aEFiSuRPmcfy4R72ls9yCSb9XGLODW L2AIfhsQZJLVdSOPIwH+H3TCMICROT9V2FvJKFw4ikMNvAnb1MqH7C4xIM1ncznePc2o kQ2Wqa8A/qqvjl2flM5ILpBevBpRvM1dWeE/3mnLNHtkZoU+Zo5klMHVx0Z9tUpvEDVr qUIfRLTNqeQAPcrSMPvmnJ1HpEJlqSntbjKtH4bpYo6qT1AbtehUt9jYR0PiobBeFCRX HXZaBK0EO4iLfibEekwK1OCrQjlMALXxlqkKEQrw/jjd5H1iJ6P3lR+bMv13CzbDf89e igEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=MDEZb1mpakIL+SnuYoaFCES14yZlApi3t/jUF4/B8R8=; b=wfpmJAbdvy46S3qfT06+rWx/XOdiO3UcsNieDsPJPkTToI/MQF/tQ8JqAjs/x31x1E QKmyCdE1Lu96wMuuZNsz3SnjJgwQ/TfhQmmcXRAb+ijizFPh+Pf9xerYvqQANOYGutm5 2SbUvRtwdkYwMEdQ+kZstdVUwm44amsU6pT0ZW1kkh1qc9RWl4avsygrDfbrvgK+BW1X cSNZUwSFR0DazxUN7YAs/vJ4pDT7DkfkXH6/wT0MMBEOxBq3xy8EgUNdQ9dwp7XE0Y7V E+whsOMgfWYY/OwvBf5x0yVgyF9RlrhJJ3xHX1hkhD6NYmfOBZSog3vYrpT8sKXAyLrg y0yA== 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 r128-v6si2250666pgr.634.2018.07.12.07.59.55; Thu, 12 Jul 2018 08:00:11 -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 S1732639AbeGLPIZ (ORCPT + 99 others); Thu, 12 Jul 2018 11:08:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50642 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732426AbeGLPIZ (ORCPT ); Thu, 12 Jul 2018 11:08:25 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 97603D4F; Thu, 12 Jul 2018 14:58:29 +0000 (UTC) Date: Thu, 12 Jul 2018 16:58:27 +0200 From: Greg KH To: Ludovic Desroches Cc: linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jslaby@suse.com, arnd@arndb.de, richard.genoud@gmail.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode Message-ID: <20180712145827.GB22502@kroah.com> References: <20180711131638.12622-1-ludovic.desroches@microchip.com> <20180711132623.13227-1-ludovic.desroches@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180711132623.13227-1-ludovic.desroches@microchip.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2018 at 03:26:23PM +0200, Ludovic Desroches wrote: > From: Nicolas Ferre > > In atmel_shutdown() we call atmel_stop_rx() and atmel_stop_tx() functions. > Prevent the rx restart that is implemented in RS485 or ISO7816 modes when > calling atmel_stop_tx() by using the atomic information tasklet_shutdown > that is already in place for this purpose. > > Signed-off-by: Nicolas Ferre > --- > drivers/tty/serial/atmel_serial.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Did you send this patch twice? confused, greg k-h