Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp593457lqb; Wed, 29 May 2024 05:24:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0k0ATybYQBfI0C4SMqHH8G878aBJW0gOjqmxBGleBvMyy0zwUMNGJobAgTZvjU9UqH9E9tGrmEzSfw7iz0//9felljvowteA8wjT9zA== X-Google-Smtp-Source: AGHT+IFMYgOhCsuzb7jqKUv0N/CS79BD73n7O4+RJtI92EsngT24qBj0fJ+FaLTDQblp/1ibr7ak X-Received: by 2002:a05:6a00:2907:b0:6ea:afdb:6d03 with SMTP id d2e1a72fcca58-6f8f390bb0bmr13073240b3a.19.1716985449658; Wed, 29 May 2024 05:24:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716985449; cv=pass; d=google.com; s=arc-20160816; b=1I23mIDWKR46OJty0RcZvuMlF/GRlFuELldlCcEYQW9rA4cE6UwTWfpU/g0lkaSLjm 59R8Fox5YvMfzX9QC1FJS9SGcMFW2j4LAKtKJciFejydSkxQgCh89We8/8XMXGgyzucU mdJKR1HD+7MMRcCajGq2qwbfZQ+fDH4LG/hOc12NlgZ5Sq/TCTxnE0mfLjAvDg+0YtSX DlB8Zm6IwB8ClKjEOteo8yC090YXtwcpf9HS0q7Tq8cTpTH6dco4p8XU61E/pVA/mZLU +hTTYOUUdXJF0p4vnrrGrvmlU6H5PQN6A1KJ3VINKGhfshgMk8nUTCK2VzuuTtf1VSQt OOHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature:dkim-signature; bh=AK+PLBQH4NTyua07V0s1IK8ojq+PtKADHdWPDdKYg+Y=; fh=E9SwRNuEfdUXzgdwA549WQumNUPKkMDrQSaRWscPx60=; b=TOjUU9dyavdSbOwxUkjxwhJbXiKfiGGHAGSP4EamTBmAg2cVSKYoXurVRiOhLXEeHb LWtgyeAVGWuJxG8Xe3KR6X8N1FIrfk0/eSzTx3f2r+wZDgloTMF4OK/OnEifnboFWBJh YAe1w8KB2Mu1+CNLR5HP0z9RewHRuy9iEjE2wzuepr8ruDRb44vbFMIXIT9U22LCMjzx Yc4FFbKcrjmBITGUrIj7brdKa+8phn7IHobB4PVXJYvEV2OhnPXjQbsTRYl0SSEbKlMy kKtrigVPKj1LHKVZTWwK67cgVWLP39uFlh/5IConKoUSol1m/zt4nu3L5KGau2jZSv9L pKyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b="b5JKglK/"; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=ghMneyPw; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-194080-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822bbc7c4asi239796a12.887.2024.05.29.05.24.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 05:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194080-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b="b5JKglK/"; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=ghMneyPw; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-194080-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DF429287500 for ; Wed, 29 May 2024 12:24:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B829181307; Wed, 29 May 2024 12:24:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="b5JKglK/"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="ghMneyPw" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 BD5573B295; Wed, 29 May 2024 12:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716985443; cv=none; b=XeVkhYJHA/6O9mLh7iKrKbafMWhrnFp1YYmpu+oneQCthnBJDYCx0YRdpjLW3nsiEzjtfet59o4Taq70g/38+Dlu5A0lK0/ft6yQWPHHlCpW2Iw8vcpDoqixI/tSHSPhNX+5ftp7u/ILuPGuQfkEaD/jOeneNHKku4t6vJJ7bvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716985443; c=relaxed/simple; bh=czqyFmNXe0Nn20OjypurysmGhajb2thuPoegbMjzh94=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=SBdiT4emWb8nVhi/w/7APLPWZccTtPb2zYjVjzwaERMJl/Hft+yYYG4xLeOPBEOEJpbwFB5QwlMC43vW/e15X8hGY2EOS9e4NM5UeTD5/DOr+eOGJApmQVz+Rq05PMaIvzQ2ZaIh799dZQVjeSQ+4REJybp2N1uMKOksMBs/bVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=b5JKglK/; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=ghMneyPw reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1716985439; x=1748521439; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=AK+PLBQH4NTyua07V0s1IK8ojq+PtKADHdWPDdKYg+Y=; b=b5JKglK/Trj/Pjnyy+fkEZEG/DJhaAAxtWRGwXv//kGyIAZYlyG1FBo6 egbsH65UR6dQW1ORQGJfErpqZeN/+idUspLnvpNsyUJUZqJ3HoAhAjmUX YSr1HEDVZFQyVdNNSEeltpVxgOUu61Yot8Jy00Gf7YzCNBpxTbFrpgpa0 o7STDlDYPnzzwgxnBK+aucvhPZXAyNT2N4rvfvvlr67htdGlvKHmN3x7/ S/VGFenvVgDFwg0pdyNsv4uzvqffmQ8OWPXF6GynUFQ1o6jYX4GMad+8A em0bN80jqbNDYZmuVpY556V23zDYDmDEMlKarI4Vz+9aa8D2yW05pA8WX Q==; X-CSE-ConnectionGUID: 5GiaChy4TeWh5QBs27tLrg== X-CSE-MsgGUID: RM/Cgre6RbOysbdaumDqdg== X-IronPort-AV: E=Sophos;i="6.08,198,1712613600"; d="scan'208";a="37128533" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 29 May 2024 14:23:51 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B6144162D90; Wed, 29 May 2024 14:23:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1716985427; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=AK+PLBQH4NTyua07V0s1IK8ojq+PtKADHdWPDdKYg+Y=; b=ghMneyPwWcafWRZ1/GVALatLebLFE/lhVspBfudEUDf9yNqVYPqKn12GldnDH49jUAUl51 OMHNqNtLSG1c2paBaJnZQjuey/duNG8sRv5MRGv4jZ9gPaXApDnFozAgKf9MvC4rdTZA0z uXiAoOT3WAU7g0JKlkHiabfGhmH4iJJtVNtMMHP0slpiFkNlUPfdX4LzqZO9xwN3VmmMet AD3angvuR9HiwOOv2HFqsYYVdded5jt6MB9eC3bWOQNxNMblG738C9bsmEDSMi3Dy7kfvb e7DUH65NCVzfpFhwVLRt+RnA7ttC+HMu82xxAQk1FoYMow2l5vCS65U4h8KKaQ== Message-ID: Subject: Re: [PATCH 3/8] gpio: tqmx86: change tqmx86_gpio_write() order of arguments to match regmap API From: Matthias Schiffer To: Andrew Lunn , Bartosz Golaszewski Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Gregor Herburger , linux@ew.tq-group.com Date: Wed, 29 May 2024 14:23:46 +0200 In-Reply-To: References: <56cb8a4f19ac0596318d740ed14091d6904d3f7f.1716967982.git.matthias.schiffer@ew.tq-group.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 On Wed, 2024-05-29 at 14:11 +0200, Andrew Lunn wrote: >=20 > On Wed, May 29, 2024 at 02:03:35PM +0200, Bartosz Golaszewski wrote: > > On Wed, May 29, 2024 at 9:46=E2=80=AFAM Matthias Schiffer > > wrote: > > >=20 > > > Conversion to actually use regmap does not seem useful for this drive= r, > > > as regmap can't properly represent separate read-only and write-only > > > registers at the same address, but we can at least match the API to m= ake > > > the code clearer. > > >=20 > > > No functional change intended. > > >=20 > > > Fixes: b868db94a6a7 ("gpio: tqmx86: Add GPIO from for this IO control= ler") > >=20 > > This is not a fix. >=20 > Agreed. >=20 > I'm somewhat conflicted by this patch. It is a step towards using > regmap, but then says regmap does not make sense. So why make that > step? >=20 > Changing the order of parameters like this seems like it is will make > back porting bug fixes harder, unless all supported versions are > changed, which is why fixes make sense. Does the compiler at least > issue a warning if the parameters are used the wrong way around? >=20 > Overall, i'm leaning towards just dropping it. >=20 > Andrew Okay, will drop this patch. Matthias