Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4630017pxk; Wed, 30 Sep 2020 07:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0S5vm6in5GFV5guuvVLVE0OctbA4ucTFj+LJz16RX30Ba8jeB5rZlZpk81ABYc/j7mRO9 X-Received: by 2002:a17:906:4e82:: with SMTP id v2mr3367693eju.218.1601477533805; Wed, 30 Sep 2020 07:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601477533; cv=none; d=google.com; s=arc-20160816; b=nKWo8X2tYLa7/DLQQMNoi4VE15EL67ZYlhdrci9THuHLVFjqnAFZBwCfEbU10lpM1y Gw+fR35GdZ0dHOWoFj6uUQtZXWXTv0s6w+pVbxTdJsQQLZcu7TIi517c7ZD9+EEWScdx Zgi6sIg36o9xIRpgH94HlD/TFG+sj3c40s6Tv1/afgdWqZ1911jwVFTjHlJJYIIp0/S/ AX8yUYqJJSFL0bPuno51Ge7IsKBX/YoNyMj8B7H2yehvDt7QSFK4gplH0Cy8+7HS/LT7 Fs/5bctzdzkBuvVB6vtzFD4C3cIR9paF/shisJuA5ACguhqaYPAuYeLcAjcUWf8IHBYM 0kMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=33Pst9XXwCZsa+93fJRPo9VFSnMtvF4Tz86dRNamqSg=; b=kGBcL6UbwJ6NhIYQeHRgvLqPxLBRhQWJvnNTJYZBUongidkP4NEy0x1OxEF/myiZmS BtCOlY3eKDeNk84eISPdOc6dGzHB4PdWB7mT03C/JzFVkzcnJU6U+zSwI1cs0sJ6f5+X buJbyqhVxboOE6DYbrRrsixQCD0tszm7GBvhIDf1FhoPKG4uWLfeP8zKY22DKj1a/h8F mdQfkjqe+LHakhtABUr3RT5AH76rdrCct9R5GulSJkHFlVtM5oEgA030O9hDa3wpJI7G rVq7p71UmwIPWwN/Je+x9r3kS6aU27CIbwug90yLyWnQ/1I5B7FxrrCdvDD/kfMgpNdG QjWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si1217369edi.523.2020.09.30.07.51.51; Wed, 30 Sep 2020 07:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730506AbgI3Oul (ORCPT + 99 others); Wed, 30 Sep 2020 10:50:41 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:37093 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729767AbgI3Oul (ORCPT ); Wed, 30 Sep 2020 10:50:41 -0400 X-Greylist: delayed 3535 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Sep 2020 10:50:40 EDT X-Originating-IP: 86.206.245.199 Received: from windsurf.home (lfbn-tou-1-420-199.w86-206.abo.wanadoo.fr [86.206.245.199]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 0A1071BF20B; Wed, 30 Sep 2020 14:50:37 +0000 (UTC) Date: Wed, 30 Sep 2020 16:50:37 +0200 From: Thomas Petazzoni To: Andy Shevchenko Cc: Greg Kroah-Hartman , Jiri Slaby , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List , Jan =?UTF-8?B?S3VuZHLDoXQ=?= , Mark Brown , linux-spi Subject: Re: [PATCH] serial: max310x: rework RX interrupt handling Message-ID: <20200930165037.77813365@windsurf.home> In-Reply-To: References: <20200930135137.197592-1-thomas.petazzoni@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, 30 Sep 2020 17:24:48 +0300 Andy Shevchenko wrote: > > On a Microchip SAMA5D3 platform that is receiving 20 bytes every 16ms > > over one MAX310X UART, this patch has allowed to reduce the CPU > > consumption of the interrupt handler thread from ~25% to 6-7%. > > Was it always like this? As far as I can see, yes. I guess you were thinking about a Fixes: tag perhaps? I don't think a Fixes: tag really applies here, as we're not fixing a performance regression. > Reviewed-by: Andy Shevchenko > > - /* Configure MODE2 register & Reset FIFOs*/ > > - val = MAX310X_MODE2_RXEMPTINV_BIT | MAX310X_MODE2_FIFORST_BIT; > > - max310x_port_write(port, MAX310X_MODE2_REG, val); > > + /* Reset FIFOs*/ > > Add a space before the asterisk. Indeed. Let me know if a v2 is needed, or if this small typo can be fixed when applying. Thanks, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com