Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1424340lqp; Mon, 15 Apr 2024 06:22:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKxmQkJygak8ppit6jNakOnWqTAQsj3/SK4QEco2TIFIO0Km1vTMtI4nIvzG3tnKQR+JCQmkQbUjJlo1P6r9TQ275uJjCoDBzfw5ScWw== X-Google-Smtp-Source: AGHT+IGgu6eVKTQM03KUDRSSeufp9KXraWiwl3DdBXMyi0Cl5uvZ+brX4RSmppPm2oUZQA+qHHsf X-Received: by 2002:a50:9515:0:b0:568:8e22:4eff with SMTP id u21-20020a509515000000b005688e224effmr5927522eda.37.1713187322374; Mon, 15 Apr 2024 06:22:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713187322; cv=pass; d=google.com; s=arc-20160816; b=VywLEXComZhud6ZAagG02iL6O6BlL5GLfk9RJinMbHP8xdUoDFSFckGq9ynFjwHsIW dKkpLmermnN74qVkKBz5sGTbg8rHJGWRuzNbur32U1o1BLw8+m8cIHO9b/tPEH2ZjpJo 8qMm3U5JhnSLY9Rka9XyaQKY0m1h9US8j5eOxvi6yWveFauPFroDQJRSrMN+y/OOhfKJ fE6jFmV1Y4GUVzbGCIxjI1D6kpL1FYIptDH6b6DhE0E8lQDYEG5d71S9CDxD21Yj1K25 kA8BqU78ZP8PMrbWhrdexXM1Pzx/sxfti8aybrcPIvMIjBV0JUuieE83wmVeiF9NKKZz EsXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=bHk114x/vBCks/AIlKHUmu52GQ4BwtM1tN04XkpxdhQ=; fh=W6fL0DODbn0g0rVoUncJ5vg17fISZuvsCqhbwA3Rii4=; b=UrU+p+qYPLaa2vDIcJ8D34Vw/tRO1EgrlU7jjACZCfZrG+PHLZeQfLfk5gyFHQUVtu HKp6W1znW4SiA0B+1JOza+HjBCz/esATyp21ySottA78kn109+/FpSAVOkr3Qn4JC1h6 9XxhkyQgo+2FOidZaUKaqFJ9a/p12eZzujdOK0qkam9OEldsTzbRk1PypQou4oaGgAG8 h92g82oSr2yvjm+0hg6Y+E/yHDm0vZKg/umOjV2plGNaxRDEEMWpiil22WyqEsqRvti7 G/0fkKGacGCLgziFwHL6MdG1/k5NvqXaCvk2IR8UrRitmiAHTjZPp8TqiDcTAuBA/rhf 9dGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-145220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f24-20020a50d558000000b0056fd7f87ebcsi4494589edj.184.2024.04.15.06.22.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 06:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-145220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B0D41F21127 for ; Mon, 15 Apr 2024 13:22:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8907412AAE5; Mon, 15 Apr 2024 13:05:33 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83B56763EE; Mon, 15 Apr 2024 13:05:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713186333; cv=none; b=beNTOfo4j/VE8mv9oLlk+h5nIAG4M7WSOcc9LhrwxPVcIYtargg7AuFc5xlXx1HtbXHWUD6N7aEFLJVK0YvjM9UazNYoyfSaI8VE2/kbeGcdNzHuqKYwjlnTDMtT2UBp5obcbwYF6T9RZXobHB6u9p3CuJaDAsL3XTJcTLOD/as= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713186333; c=relaxed/simple; bh=e9tGNm4v3nKmynIONtpDA6Y1cuJoNNasV3i92wHJLUI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DaAFjRWTyk7g3p0pCYqzfwjt99CXPt7IFQCCsi6Vv55zPZa1sraR00gBdKfcU+i/xlej398VN8N7QEkNp6A6y6SAXmNKqbb2e1QYNXVKRHH1TT592nleDjJaXhYmtbhngHU9f4w3CtmO4j/mDkGmRf1HrNhRy8E8v8AldIidtzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com X-CSE-ConnectionGUID: pxfsBNFjSGGMA/+gcsiXkA== X-CSE-MsgGUID: 0abM+Rf3ScyRz1TfETM3IA== X-IronPort-AV: E=McAfee;i="6600,9927,11044"; a="8794833" X-IronPort-AV: E=Sophos;i="6.07,203,1708416000"; d="scan'208";a="8794833" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 06:05:30 -0700 X-CSE-ConnectionGUID: zyKL/BT3QWmfYv/DOdk9vQ== X-CSE-MsgGUID: WMeYX4HITFm+8UeMsF58cw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,203,1708416000"; d="scan'208";a="26704586" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 06:05:29 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rwM1W-00000004PlW-2wXR; Mon, 15 Apr 2024 16:05:26 +0300 Date: Mon, 15 Apr 2024 16:05:26 +0300 From: Andy Shevchenko To: William Breathitt Gray Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski Subject: Re: [PATCH v1 1/1] gpio: sch: Switch to memory mapped IO accessors Message-ID: References: <20240410072102.1200869-1-andy.shevchenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Sat, Apr 13, 2024 at 04:31:26AM -0400, William Breathitt Gray wrote: > On Wed, Apr 10, 2024 at 10:21:02AM +0300, Andy Shevchenko wrote: > > Convert driver to use memory mapped IO accessors. > > > > Signed-off-by: Andy Shevchenko > > Acked-by: William Breathitt Gray Pushed to my review and testing queue, thank you! > A minor suggestion below, but I find this patch accepted as-is. > > > static int sch_gpio_probe(struct platform_device *pdev) > > { > > + struct device *dev = &pdev->dev; > > In general I think this is a good variable to define to simplify all the > &pdev->dev appearing throughout this callback, but I'd rather have seen > it as its own patch so we could change all the other uses of &pdev->dev > at once without distracting from the memory-mapped I/O change of this > particular patch. Not really necessary, but maybe at some point in the > future a follow-up patch doing such a cleanup would be nice. I avoid making unneeded churn on a line I have updated in this patch. That's why I introduced the local variable proactively. Yet, I can do another patch to clean up the driver based on the existence of this var. -- With Best Regards, Andy Shevchenko