Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp238527lqb; Tue, 16 Apr 2024 14:18:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVB+ZcRYCZBsIlKJADpgdDdKAVNdXwXME8pk/FPtc8A+TFVcVOQ7e9r1u+XpenypfvUplwQBw+FEXrE+VKERXT/5HKZJv2q4pkMbGVy9w== X-Google-Smtp-Source: AGHT+IE5cgQK8VRFRe3o8wxDMo8WIblo3vwMfDyrEdLUzKE/8jZRLC5rULkU8bhlBFmq2ClVMiUU X-Received: by 2002:a05:6a00:815:b0:6ed:d8d2:503d with SMTP id m21-20020a056a00081500b006edd8d2503dmr15552789pfk.20.1713302331409; Tue, 16 Apr 2024 14:18:51 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w20-20020a63d754000000b005dcd64e8467si10357378pgi.59.2024.04.16.14.18.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="iTQO/N3G"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-147555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147555-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8086DB226AE for ; Tue, 16 Apr 2024 21:17:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 377605D477; Tue, 16 Apr 2024 21:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="iTQO/N3G" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0047D1E864 for ; Tue, 16 Apr 2024 21:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302233; cv=none; b=WCInxGgtmAIos9UoRcxx5MKvOAz9vBasqqGUXaalZD/jiDzQFpzUHcj9vPfdyh8Dl88Vq5x5aqfEZyQdagBPN+M760qzCZ5pf5quBzIbVrGbsBQkGNbBNdkyo/IYYU5eXnMpm7L8+YH41aHIUPuZXX9scArdXVN57Qs6JGleZds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302233; c=relaxed/simple; bh=eW0+TtsohUH9CaW6bbrr3GrY8ovGxIw12PSymqVtzIc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jNWvJjcr3mWNs5hnOpR3qqYAF5da07wfBXr0Qm0/y1Akahr0PVLYGfDvUZ7Ovic490I9zl9DPvArQZkqyT/xefrZx9TevWTpyXp9wwsrXkKkboakMpHDraJUclj/fkrOqL0KkmbF6/ERy9rmqu/2UzYpy3EsB1+vIlARfmz83ds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=iTQO/N3G; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-516cbf3fd3dso6153347e87.2 for ; Tue, 16 Apr 2024 14:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1713302230; x=1713907030; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7VtGiyOmv3LjfZ2ORMBzfO1xFPZa7kUNTsJeqps7G5g=; b=iTQO/N3GE3WnTqCk3cq7wwVLic2RScvyTBjmuP5amcWugciuQCAqK4GqNqFnGTWGuW coL551Emvpr75xiYFBTDSc/GsFqEUcbDpHHzFWOBND7wpo8T/EVFPRkJHhxQRWU/tDeR G2cbSlJ1nmMWaV5oPxpF+9h63EPO8EYJ4GWSILv0PxR/plagU57Gzme6pBneKJrj7NW+ RyGoaSplAqaG01cpY7WiVN50jCItY6gGVtmg/qIJHjdzMGhP+sGDwGRBY209N1+h54xd jue5Ixh18PtSxuF4gtsq/CYPxklV2X5jbT0qcDmkzH/M4KwHfsC43R4VTHRVsOmlspEB lUAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713302230; x=1713907030; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7VtGiyOmv3LjfZ2ORMBzfO1xFPZa7kUNTsJeqps7G5g=; b=Y38xGSdSjWMPlRpe78iH6qZAaxATEQnjU6ZclkWZ7W332vJ1KJCChKB7r/NBOdkfA5 unlhZWHuTEeMvqblFMI0SkYzh25ZXoxmjzmZWLvCpA1JKMBK6FDta2sFhYC3tG2KLd+Y 6Y1d3V0OhGnIMmK1gK1HlgW3Y2CaIOrfoSqFQNsKvEjf2scnazEjN9+oadrxBdr4LWWR rW1ZlH5cNycDAdMtX0PA4MGzQzHlnx1bIlRl1yjpiR45eBvrRLDWzC9UoU8XltN3sVLu veEUDWk/K1V0OkHA29zFH2j1QtBlccxUWNjCFWIrhjd11tALGgyLET3du6xo/O2Cone0 cBSw== X-Forwarded-Encrypted: i=1; AJvYcCWDAAtJ9Qy5YchqMxyf8K3ITQSdGGAuapAtDYcZr/wp0TiQjik95rUCI02KKwsfOHiGg5Me9liWS2WvPeERkgGS0JIsBkrBMpc00W5O X-Gm-Message-State: AOJu0YzJpZzrtgSK//nfl4mZhX8KL5AjukJ5ik2bR7W9Am4v6ySvqSuc 2axXJZ0xJBXyAFitencSeLUcSy8IBCNzJvrfP5sUN9xfwkoXDkORTBY7QEKcEyTeIZFMHGNdZa8 X/NeIDrRF9B4+m2rRiaBxxoZUDr/NNF/T4FWUTw== X-Received: by 2002:a05:6512:3d91:b0:519:26c9:669a with SMTP id k17-20020a0565123d9100b0051926c9669amr2491258lfv.11.1713302230073; Tue, 16 Apr 2024 14:17:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410072102.1200869-1-andy.shevchenko@gmail.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 16 Apr 2024 23:16:59 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] gpio: sch: Switch to memory mapped IO accessors To: William Breathitt Gray Cc: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Apr 13, 2024 at 10:31=E2=80=AFAM 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 > > A minor suggestion below, but I find this patch accepted as-is. > > > static int sch_gpio_probe(struct platform_device *pdev) > > { > > + struct device *dev =3D &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. > > William Breathitt Gray I applied it as is, if anyone wants it, this can be sent on top of it. Bart