Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp586331lqb; Wed, 29 May 2024 05:11:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5vcDYknxkXAkBvbkYYy9/o7Laq7bjCTVYISV+c7YdKEUYWBNOhRrz2Oz8auLfiInM5IT0pC8LxMWYjUqpFq8RkTzb26EIwki9QEexVg== X-Google-Smtp-Source: AGHT+IH1BZgPZQfDZuUw/xEtHUwLsFrqUI7VRgbSzBfnu03tBySlrHCb2Mc4Uk8gkbIEKhBVa8Nh X-Received: by 2002:a05:6808:e85:b0:3c9:9424:9318 with SMTP id 5614622812f47-3d1a7647411mr17330988b6e.45.1716984697368; Wed, 29 May 2024 05:11:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716984697; cv=pass; d=google.com; s=arc-20160816; b=v/y++Q081NIPFiNRTDD1UEo1z9BK6NIBgs5rQxYUEk88uDYhlK2qawB+sxgOSsvVh7 7xT4qqmtnUhcXBMrnPAqJrapCmpqDCLJkEZIBxeNmU2kWSkJnukrpLbg/lXlOoGFZnUW hZFmfh9mUs7W4nH2bgYcSu3pf4wCAxS5fWAQ0+cVL2rp9gWt02nzNl9+CboNVLNroBrn 3vGLB9mqfHO3svXWqeZbfD9clJBFA/Z6Ucdg1ChgZRDoLFnA1hR3koz8nP3YtQcAM22T 8kygiIkjlzDYuF3bvgwOSolDA7c347cLkbOvjhsmW6sgg3WFX1DjQO8fRpURMRsOVibK vTdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QaUeLkv+IGLulmWDppONnVvHaXgaUzJE4SuWA4cP95k=; fh=/YqVY/ZV321Y0AWDQ61RZs4AqXhmbtuNUWHSQ6dwkP4=; b=Dl7WKuwwo/gU45CQVmTQwIjysLZjvzdV0AS6zz4nYhj5GJcpi2EgRV8ZNDGHVDWYkV LUFyGDk8Gswzu0IFJhmNMHVPxeMsS5kPKDcaVHd+yD1qwLCRBJBRmeMYNUG1zk7E/Cw2 43ZAd36smSGRFrdhRQE2XZxzn77GXfXGuAzaj959Ic6PxzYHOlF5hTBX2Jd80zLOLcMW jWFEfBF5t/1EXtE/M3nvq2WUEj+WxPVAOAvTTxi8LgetJbOGDYWuGluSz7iMNo5zYzJ2 kH0QPEqCdqe6f0wPhttj4nzIkIUXo29BOl1zTYjzMiUMz297VioYzDu1tRBW2HqlPeCv Iqjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="ZY/LpWNZ"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-194061-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b1b4csi139517491cf.408.2024.05.29.05.11.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 05:11:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194061-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="ZY/LpWNZ"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-194061-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 187E31C23AF7 for ; Wed, 29 May 2024 12:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68FDB180A92; Wed, 29 May 2024 12:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="ZY/LpWNZ" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 0E282169385; Wed, 29 May 2024 12:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716984691; cv=none; b=TsHhUfLwQgS16cX9w+4QCRUnoK35Cz3lxufMrVufUA2tHc+CKWSB2dADUNjqeOjmUwj07HLOG4E+7MeVkC9Lkgs5oSpVJDG8vVXGwfQaUUOPNxWXrCV+oWq7vUtw46FQ0luVKsVHUVEytjjY1b06FipXdlMXpmIcCL5vnaxwSE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716984691; c=relaxed/simple; bh=zHynZzfWyKxvjDFzKY2juRFP0ZSe0Cdjp+o8ve6Txh8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WvUjQpkO2xfI7IhT1XSWJ90t9aYb57JtU+YntUNdjxXef0BEDWh+hb8HTOXa/dkDC/dKltXgU1kOUKe3zxaZLmIRxPjdOZ1S0RGMXoYHR6dj5nuxhVenngpOA9ApbZ6ZaIZFV+JX/TAFrsSZ7D4g5YmBq3HzErCtFua9WVoSExc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=ZY/LpWNZ; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=QaUeLkv+IGLulmWDppONnVvHaXgaUzJE4SuWA4cP95k=; b=ZY /LpWNZtc0Nd5Odm0+b7Y6NfexXjOj0jSW3h2ilRIpUXRst8MYNYCSY30JPufaNgBuUOqozVjCDLQu D0h/l2hD/wxa/iJoIIEorKKF+BMqxnHOFGTulpjlyVLEa86ZXQqfnwaknibLzuvQjtXk82eox9r4U xfqZLc6jvJrNI10=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sCI9M-00GFcX-QD; Wed, 29 May 2024 14:11:24 +0200 Date: Wed, 29 May 2024 14:11:24 +0200 From: Andrew Lunn To: Bartosz Golaszewski Cc: Matthias Schiffer , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Gregor Herburger , linux@ew.tq-group.com Subject: Re: [PATCH 3/8] gpio: tqmx86: change tqmx86_gpio_write() order of arguments to match regmap API Message-ID: References: <56cb8a4f19ac0596318d740ed14091d6904d3f7f.1716967982.git.matthias.schiffer@ew.tq-group.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, May 29, 2024 at 02:03:35PM +0200, Bartosz Golaszewski wrote: > On Wed, May 29, 2024 at 9:46 AM Matthias Schiffer > wrote: > > > > Conversion to actually use regmap does not seem useful for this driver, > > 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 make > > the code clearer. > > > > No functional change intended. > > > > Fixes: b868db94a6a7 ("gpio: tqmx86: Add GPIO from for this IO controller") > > This is not a fix. Agreed. 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? 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? Overall, i'm leaning towards just dropping it. Andrew