Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6128824pxb; Mon, 8 Nov 2021 03:43:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSTfrR3MNa/FgcssinkOMoKOzdc7xHkmJ5BF6wEUVEQmGdoRHkMEQmmExSkTHHyhEUp7AD X-Received: by 2002:a05:6638:22c2:: with SMTP id j2mr7122840jat.105.1636371809582; Mon, 08 Nov 2021 03:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636371809; cv=none; d=google.com; s=arc-20160816; b=0BVptw6VXHFfRfIYaH6g3wIl+AJiVSKl/TYbfZ7ZS4cna9HuNlJOu/5cAfgRVInzwb FbtacnokWsFAOY6ol9UEPTbuCuUqJpGJFdtGlbddEYkWqd33BIBpNh8VXLD14+I13e5i zNWiTJglaTeGTPlC9JDxJWq1LZnixg1F162BHKuedfnhjgUtgVqXQC9N7pAIAkedta+K e+5vZ19D7s27kJKCOhf0aIHnAC3RJplwJiJ8riLc7J2aBgQudZIo8vENkhb/tFlGWMdy 5WexPJQu+x2PC08uTZCjsvgW01vJtIP6lugAvZSHgdkItxjnZepR7VFtTTXadqfa0EGO 78pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=w9sUPN7cAUF5xiuU1BT+J3vFbVAyYdqsKrT0vTW8DYQ=; b=EMl4BlclDPcHtxgTBRwflxfnjR4suCyhhQ5sPDdPPk9WHsV9JBBfGjRZO9Jk0muF95 VBOsu7YyxuoVZywDSAnJIgsRf5cme5E388UuwEX68O4ZLNGQKhkrvxqxuWDqF5aZdZOj vTUHGyfdvFJA0isroZYp+xcolVM+5hIt80UV/L/cJf+uhadoNrsZxnEJyfLAQxEzDL9s s7ej5AmMu4ABTDxhn4ezoZiTTNnY6eoXwqhWCcHAw9mWmidVHhRQcJuH2lt1oCwc+wqC S5eTDrdasHSeHj97KtOrmjgPZjHo6qrDBKF1FqH3VtxBxUsqD71co20yA5z6Pw59v6df WvdQ== 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 k15si31602323ilo.180.2021.11.08.03.43.15; Mon, 08 Nov 2021 03:43:29 -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 S231401AbhKHI1W (ORCPT + 99 others); Mon, 8 Nov 2021 03:27:22 -0500 Received: from mail-ua1-f51.google.com ([209.85.222.51]:39585 "EHLO mail-ua1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231292AbhKHI1V (ORCPT ); Mon, 8 Nov 2021 03:27:21 -0500 Received: by mail-ua1-f51.google.com with SMTP id i6so29850951uae.6; Mon, 08 Nov 2021 00:24:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w9sUPN7cAUF5xiuU1BT+J3vFbVAyYdqsKrT0vTW8DYQ=; b=uZqLMOjQrLUJGbG3IMqPkSxems3Ik37chOGEpo1QwvJRYZIplxF4INVk83wrfibMPA AMkQuvyAyRGlrf8YdS8F59y+YhfSk9+iqpEgRN5SB6Sei/aNmsnIwZhmvT2grDpHeuF+ 1+bZ8Hjn+OSE8GFhT94QzY39ob1g2DhY/+G2a5Enm11U+5gBxspLYToDICuKo6Ydi/GS jJ3XxnDd+pM6AN6RQHbhH+gHR/besGXSNtxHK9g7dyLCo6PVcPPtpIEBt1xqxB/qocyV oT38+RwluhxGVWO47VoakFZof/Z9T88t57F2CSsVK+FLtA3d21ndQlk15teXCz6whE8J SalQ== X-Gm-Message-State: AOAM5314NkmXRonQT02UYzV1G8A39NC/nzW/LTObYrKPCy6u+kZMN/M1 8zj+4/69ASTd3NRYFcpUljAtT6vfQ5cXuw== X-Received: by 2002:a05:6102:2910:: with SMTP id cz16mr35829503vsb.9.1636359876423; Mon, 08 Nov 2021 00:24:36 -0800 (PST) Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com. [209.85.222.49]) by smtp.gmail.com with ESMTPSA id k185sm3010770vsc.21.2021.11.08.00.24.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 00:24:36 -0800 (PST) Received: by mail-ua1-f49.google.com with SMTP id b3so29940201uam.1; Mon, 08 Nov 2021 00:24:35 -0800 (PST) X-Received: by 2002:a67:c38f:: with SMTP id s15mr38275693vsj.50.1636359875569; Mon, 08 Nov 2021 00:24:35 -0800 (PST) MIME-Version: 1.0 References: <20211105130338.241100-1-arnd@kernel.org> <20211105130338.241100-3-arnd@kernel.org> In-Reply-To: <20211105130338.241100-3-arnd@kernel.org> From: Geert Uytterhoeven Date: Mon, 8 Nov 2021 09:24:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 3/3] gpiolib: coldfire: remove custom asm/gpio.h To: Arnd Bergmann Cc: "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Linus Walleij , linux-m68k , Greg Ungerer , Russell King , Linux ARM , Linux-sh list , Rich Felker , Yoshinori Sato , Arnd Bergmann , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ;-) > 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 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