Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1880EC38142 for ; Fri, 27 Jan 2023 13:35:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234224AbjA0NfG (ORCPT ); Fri, 27 Jan 2023 08:35:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231671AbjA0NfF (ORCPT ); Fri, 27 Jan 2023 08:35:05 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B67716AE2 for ; Fri, 27 Jan 2023 05:35:04 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id d132so5995070ybb.5 for ; Fri, 27 Jan 2023 05:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cxdDbkfbjax6StuKhKjuEzztvcuIR/QFeGE1cvRqqik=; b=dKziKWKTOTSN3neoeDfIHyuFG/+T+J/G6UhPO9UQsKuMUDXrlYToCd4W+eWtVxOmhX zO1Lza2RbFw+hJTIKFCvaQWbHGk0zW6sWYDFXZIXAZbh4Zfqn9hnXI8kYt0Ea2Wct6ra TlPMZo8DVwjL67y0a534ENw885bxmZAYBQ8Fu/ddfXHKnXPol9Je5zWN5L92DWxS3Wvx BTfIDVwTNczy2aVo1ZwYAqn2TG05mRZRxqIqhDhA+ah7iE1iwldUBHBdr+fWkfCX9LwH qWNxsl4JEP/pUntiNbfU0Nqy1DBZ5fhmS8YTo+MKKjOklPqTVu0BJquJspsUFNelQN0r eHuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cxdDbkfbjax6StuKhKjuEzztvcuIR/QFeGE1cvRqqik=; b=ecZ/ivmoMH87c0Xq2vYKlavzLeamicVcBVKTS5COgIYapOhRaq9DtnxMqf9ymvDWuE ZfawK1D+qfnIV/ejGd8M3x7fDhopZU7ZpNkRrCbBLp5VnjGdTqdyOU8fAATRfXDnHG3X LOi6u/JzoVqXA9YjF3/p9E5/TI6XWnsEX44amPII6icasY935DeQf29rW4W2BrKn+ZzQ hkKZ70wyFT1QdkM+jqLbpZIO9vKkGe3MmOh8cdGOH724tyj+nIwSlmESl9KwdBozBrVx TnS1E/ACLjJ6hrCTPq6Ka1tUk6q1ANR/CiSqQgLONcrarsVJhWOPDxVYTPBt6keX7b8Z Pt/A== X-Gm-Message-State: AFqh2ko5r1OROgEilTw8+y/87+/N3E9HqtbCwbMTjCV2moQFsLd7Ap3o GVWoYvRrJqOw22apoVAZhMyYFhj0p13mh3KtQynQMw== X-Google-Smtp-Source: AMrXdXuLgqxGLLAgDbAiFglEdET6adHL4S0ijAmEHgy4fMq9WszDjnSdjSz46NopHVfnKHaxpoRzzrFAGGle4n2J74c= X-Received: by 2002:a25:9d88:0:b0:7c0:acd2:6300 with SMTP id v8-20020a259d88000000b007c0acd26300mr3768499ybp.520.1674826503269; Fri, 27 Jan 2023 05:35:03 -0800 (PST) MIME-Version: 1.0 References: <20230127101149.3475929-1-arnd@kernel.org> <20230127101149.3475929-3-arnd@kernel.org> In-Reply-To: <20230127101149.3475929-3-arnd@kernel.org> From: Linus Walleij Date: Fri, 27 Jan 2023 14:34:52 +0100 Message-ID: Subject: Re: [PATCH v2 2/7] gpiolib: coldfire: remove custom asm/gpio.h To: Arnd Bergmann Cc: linux-gpio@vger.kernel.org, Arnd Bergmann , Andy Shevchenko , Bartosz Golaszewski , Christophe Leroy , Dmitry Torokhov , linux-kernel@vger.kernel.org, Geert Uytterhoeven , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 27, 2023 at 11:12 AM 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, and according to Geert the only user appears to be the > QSPI chip that is disabled everywhere. > > The custom gpio_request_one() function is even less useful, as it is > guarded by an #ifdef that is never true. > > Reviewed-by: Geert Uytterhoeven > Reviewed-by: Andy Shevchenko > Acked-by: Bartosz Golaszewski > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Yours, Linus Walleij