Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6031125ybx; Mon, 11 Nov 2019 02:44:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwz5c2pDdV7VFhI46+kd1LYuiTPycLIJdJm8i1m6dhrU5o4Y/jDPMW8AtgKWOzhJjdB/j4N X-Received: by 2002:a17:906:b25a:: with SMTP id ce26mr7256942ejb.13.1573469055870; Mon, 11 Nov 2019 02:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573469055; cv=none; d=google.com; s=arc-20160816; b=Hz4C72AZjUqVxPqhEHni52TAEKEIMYK6aDcnfZg+2HSjq3mk0kgxvQi2TmeoXliObF QvIgXY4J+5djGGf0sejbtvaUJRgQRda+0mHkzV6q1ckWsdYrx/Ro8cO5/omnHK4jtPWi kpC0J0dWgVLlCT1IxzNq8VTTKMNVFuNlqERfyPtk21aIZmcsjY8vkCufihrx99PVp4ac 2j1Jiipt54f8QwOOtmTaKW6kZaYwt8GcXdbt2+DqXFPeA4zguUx6a3DWVmcMDgMMvkDl X1JGsXa7Jt4h2ZJQSG64h3O/gejMgvvKnsPb/RuOcnzCo3nyaxMQKbNbRC6wZJhwEATV NTgg== 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=5CSkBCDJkdHh/cYNOHw3NIEqq1Jc42zQ+Iw+HK86za4=; b=ckiqrLv11qTitb3ewf8QrD5XHoE3mlwP5o1OtkZzkT5kmROvwcIzZUIOgo7FSnyZ0i SMJcAp1vnPAF8vfivN2Nki4ThuX9gjJ34O2908kVZgw4dHV98urZ+P4Y4RioJcyVDmOo OSb4RSY4Q9c4Wem91qcbYSj+MQd30MfOL1PGGCTUBkH6yy6/qF9YtUgVKCKQzLRegFZ2 fgLhUf8yS7SeB9tLjPORfcpTYGtdpZLSTchzA6+NFS+Du8bpLWyiLEV24HxOJ0yt6sbu 5Pg2X06xn37H3yQfSw/hVwV7i1OhR5BSguKgZzHltQrKglGSBJk46WmqckXFG812p1IB EDTg== 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 c16si4124191ejm.187.2019.11.11.02.43.52; Mon, 11 Nov 2019 02:44:15 -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 S1726845AbfKKKm6 (ORCPT + 99 others); Mon, 11 Nov 2019 05:42:58 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:56967 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfKKKm6 (ORCPT ); Mon, 11 Nov 2019 05:42:58 -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 1iU79p-0002lp-7t; Mon, 11 Nov 2019 11:42:53 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iU79o-0006kG-2i; Mon, 11 Nov 2019 11:42:52 +0100 Date: Mon, 11 Nov 2019 11:42:52 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: "Vaittinen, Matti" 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: <20191111104252.5ixcb2tpnj6n5e6t@pengutronix.de> References: <91a796dd2811b58f4be30875f5ef644f0e43f241.1572945896.git.matti.vaittinen@fi.rohmeurope.com> <20191111072715.GB4117@ws067.eckelmann.group> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 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. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |