Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1602699ybc; Wed, 13 Nov 2019 01:10:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyecoNg8qG7zcpdvsenecX/QQ4jkiKgT0oGN0JpQa5uzei1nTRkdI7UhDWmHGO9XkYjac7j X-Received: by 2002:aa7:cc18:: with SMTP id q24mr2343098edt.150.1573636249754; Wed, 13 Nov 2019 01:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573636249; cv=none; d=google.com; s=arc-20160816; b=kB8gPpxvULArmhFHjtziDZx11gRyz5xm5w/vZ5/nBzbSunk/iTmFza91tWvxXiWq/I p/McwEw2ArJbU5W0icEezrJCdOMTUFHoaXqJGCvN/kxeYe+4njQq2icaT8x4zZ5IRCcA odqNFXLVdQYg7bi078NrNZbXMZI+zR1NAB8YMJicKsHnrdDEWgEJhIqqWVRgPZQodqZk /rQ0c/ojOHBsvlgrwfJZmG4Cb/s0CeNETdFrfq/SkmK98ockWMaMlCFWiHIVAtaBKCA6 DvCDAJjiHDzDLdn1QELIrtaFeT907E/LfV6ZNfRk0/rzDHJW5Xa0HSczZTPW4nDJGn4z ZFQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=eCMBtR45Az1r9W8pPLGPpBKCd4dt2DeMHJe6LegHSoM=; b=moEpnVc9qv/PgcjJ/yjw6m+nwWJbNTVH+hN1FSA2s+G+qGmJwnrw/YZfKtOdA6JWDF w8OH6y2kl/fDS2fCJFC7q9qSgnLCN9k5Ri12n7cDrLYhQJT849DsSJHqRm5fX17rjyyx nRer0lSkjPQG3V27BZjRgd79zNyLLKbneIJSDIcRbDFKHD7ucBq7dfBG6IC+r6uHpaQM /ZY/b29GbK9R4QIvOi2tsGEGOPXymg2a/Tn/Q7iDrNynZLo4DBIcycJslPH8QvzCc5bA zT21HBbP85U54Vq20AUSawSLqoOmZUEWM/GxqmmAKDw+4RB7aLwlK0JfdFfSVJESpt6o 6KMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s35si936844edd.261.2019.11.13.01.10.25; Wed, 13 Nov 2019 01:10:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727221AbfKMJJG (ORCPT + 99 others); Wed, 13 Nov 2019 04:09:06 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:43685 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727176AbfKMJJF (ORCPT ); Wed, 13 Nov 2019 04:09:05 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iUoe7-0000TC-92; Wed, 13 Nov 2019 10:09:03 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iUoe6-0002mQ-73; Wed, 13 Nov 2019 10:09:02 +0100 Date: Wed, 13 Nov 2019 10:09:02 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Matti Vaittinen Cc: "thorsten.scherer@eckelmann.de" , "linux-gpio@vger.kernel.org" , "linus.walleij@linaro.org" , "mazziesaccount@gmail.com" , "linux-kernel@vger.kernel.org" , "bgolaszewski@baylibre.com" , "kernel@pengutronix.de" Subject: Re: [PATCH 40/62] gpio: gpio-siox: Use new GPIO_LINE_DIRECTION Message-ID: <20191113090902.dev6yxyxvbf6bupm@pengutronix.de> References: <91a796dd2811b58f4be30875f5ef644f0e43f241.1572945896.git.matti.vaittinen@fi.rohmeurope.com> <20191111072715.GB4117@ws067.eckelmann.group> <20191111104252.5ixcb2tpnj6n5e6t@pengutronix.de> <20191113084637.GA23872@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191113084637.GA23872@localhost.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 10:46:37AM +0200, Matti Vaittinen wrote: > On Mon, Nov 11, 2019 at 11:42:52AM +0100, Uwe Kleine-K?nig wrote: > > Hello Matti, > > > > On Mon, Nov 11, 2019 at 07:43:50AM +0000, Vaittinen, Matti wrote: > > > On Mon, 2019-11-11 at 08:27 +0100, Thorsten Scherer wrote: > > > > Hello, > > > > > > > > On Tue, Nov 05, 2019 at 12:30:58PM +0200, Matti Vaittinen wrote: > > > > > It's hard for occasional GPIO code reader/writer to know if values > > > > > 0/1 > > > > > equal to IN or OUT. Use defined GPIO_LINE_DIRECTION_IN and > > > > > GPIO_LINE_DIRECTION_OUT to help them out. > > > > > > > > > > Signed-off-by: Matti Vaittinen > > > > > > > > for SIOX gpio: > > > > > > > > Acked-by: Thorsten Scherer > > > > > > > > > Patches are compile-tested only. I have no HW to really test > > > > > them. Thus > > > > > I'd appreciate carefull review. This work is mainly about > > > > > converting > > > > > zeros and ones to the new defines but it wouldn't be first time I > > > > > get it wrong in one of the patches > > > > > :) > > > > > > > > Applied the patch(es) and tested them with SIOX device > > > > > > > > Tested-by: Thorsten Scherer > > > > > > Big thanks! It's _really_ nice that someone takes the time to do the > > > testing! Highly appreciated! :] > > > > without wanting to devalue Thorsten's testing, I think testing your > > series can be trivially done without a runtime check as your patches > > won't change the compiled result. So just compile once without the patch > > and once with and compare the results. If they are bit-by-bit identical > > everything is fine. > > Right again Uwe. This is correct for most of the modules - assuming > there's no __LINE__ or time related macros used. Few of the modules did > get actual changes though. So as you did this research, I think it's worth pointing this out in the commit log. Either something like: There are no changes in the compile result. or This results in changes to the compiled module because ... (and probably ... is worth fixing). Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |