Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp13772pxb; Mon, 8 Nov 2021 09:01:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMCcCZbgP4lW/PhpkeTGQgmmG67RKqqAFawLRHnYgvLuVhemqCcsQY/PXShhCmGz3Jfs1d X-Received: by 2002:a17:906:7310:: with SMTP id di16mr63118ejc.92.1636390865951; Mon, 08 Nov 2021 09:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636390865; cv=none; d=google.com; s=arc-20160816; b=PMX9ZQgqYhX5Kt3MhM2qFU9zUT+tx+J73K/d8zSBS+FkKN7VVruP06IjbPdCLRcuoR IN8Zj8sF/KGFbaeKQdoEEVktRIDvUL9zeITOAqWmeVylhhs/++qs6g1psW/ZepS1B7ej +ZMeDWpAk/6rzePkS3dQT/xM9G5KKn34B2sjx2mdYE/GQBmVzss/mlucCdRFy67CZBjA FSPlw50xY7RNShuzACyugQGuNJr161UeOgwYFYijVKh+exV/J/ydElKGSJaQWhC7S3YE DfFKrp0DkutIJ4If4FQDxsojf4K8Pe4ZSF2HYsJdzpWz/P8e/SNHd+lQO55v43vJlkua W5UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=6uZLDN1JBCwEfWrbNo/WriYp/ppaY6eVxb7N0Ttwzwg=; b=Avt6kKOX9mxeTrGE8lXSTlbuhhvurcpJY1qS6pupWZJSTWQu39tygrj9wK/FIfKSor dqRjx4WqvNcQe3dGwO4bxHzCy68FZ/bsVWkLwVhHKsunCJ/c/5cnAaIx62DIpQPFoWM8 e/GEAt7KuaEv+3uvWvzn2ZbNIwtrK4rPf6umJaCGos8dOcy3v5hmlRPrVqtA19sGjIl0 /151SCtSQxoGlGr1zen4fuuUNF2htexBICpFcxv0cKwNJmER+8z1YzNzEJ0oNq95q6x/ A8oZGdMObQUqVa9VU+6g3NBXOoNIiqSmZ7BwC4CA7sxnV+sXDkra7O7FjYIpj4Ph6K7h K2gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc26si13228533ejc.455.2021.11.08.09.00.35; Mon, 08 Nov 2021 09:01:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239157AbhKHOYh (ORCPT + 99 others); Mon, 8 Nov 2021 09:24:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:60592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235502AbhKHOYh (ORCPT ); Mon, 8 Nov 2021 09:24:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2971D610E9; Mon, 8 Nov 2021 14:21:49 +0000 (UTC) Subject: Re: [RFC 3/3] gpiolib: coldfire: remove custom asm/gpio.h To: Geert Uytterhoeven , Arnd Bergmann Cc: "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Linus Walleij , linux-m68k , Russell King , Linux ARM , Linux-sh list , Rich Felker , Yoshinori Sato , Arnd Bergmann , Linux Kernel Mailing List References: <20211105130338.241100-1-arnd@kernel.org> <20211105130338.241100-3-arnd@kernel.org> From: Greg Ungerer Message-ID: Date: Tue, 9 Nov 2021 00:21:46 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi arnd, Geert, On 8/11/21 6:24 pm, Geert Uytterhoeven wrote: > Hi Arnd, > > On Fri, Nov 5, 2021 at 2:05 PM Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> Now that coldfire is the only user of a custom asm/gpio.h, it seems >> better to remove this as well, and have the same interface everywhere. >> >> For the gpio_get_value()/gpio_set_value()/gpio_to_irq(), gpio_cansleep() >> functions, the custom version is only a micro-optimization to inline the >> function for constant GPIO numbers. However, in the coldfire defconfigs, >> I was unable to find a single instance where this micro-optimization >> was even used, so to my best knowledge removing this has no downsides. > > The only user seems to be QSPI chip select handling (not bit-banged > data transfer) in arch/m68k/coldfire/device.c, but that indeed depends > on CONFIG_SPI_COLDFIRE_QSPI, which is not set in any of the defconfigs. > That doesn't mean there were/are no real users, though ;-) That is definitely used by some. But the generalization and removal of the special casing seems like a win to me. >> The custom gpio_request_one() function is even less useful, as it is >> guarded by an #ifdef that is never true. >> >> Signed-off-by: Arnd Bergmann > > Reviewed-by: Geert Uytterhoeven Reviewed-by: Greg Ungerer Regards Greg > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds >