Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp618443pxh; Tue, 9 Nov 2021 16:16:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcCL4mKODcPtu7sOGoe/8LT7EUsA+d3bajqLK71HrlGubNLldpx/p/jk471p5hPHO1zvq5 X-Received: by 2002:a92:c241:: with SMTP id k1mr8026060ilo.207.1636503385048; Tue, 09 Nov 2021 16:16:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503385; cv=none; d=google.com; s=arc-20160816; b=z7+c1CFkYz0kNYi+6CNcwsLH/TB+V83Ui4SYW/BGeK9ixNDuZGjv4m+nRkLxR+OR47 miO1XqjOCpdStJzccUQnb8tIliFTXKZn/1SK5a0W8YOHORfX3/ry25CuiAmnA30HtGcz 33PAuKHtJ3R8HFvfjdLHx/a7qcPhbfgYnXSUCeaPv6lJ3MzfIeMh/uNI3ivvQJJSFCYD ECe/xqDAS8CSGRaD80dEisKCvKRSvcV2YGdxzycopBKJXd3X6jEIT7Zo5rCB9xe+FXKa xiqL3KKBpWFDuVNWaMuwJ4CR7ou9qtHkQnTD9/tbBmwwvCPVgn8aUt6mueM4E02b9Npz njhg== 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:dkim-signature; bh=jay4bvn1CHVbECfZlQ8rRUGomUTSbkN+CtKVdn6fLuw=; b=W3piz6HhyWji3c377bSFAKMNJFhv97XUYM337IOuhRHs65B+I2GkEUlGBEsE+OLwBn jnI3MzudycZdEqyYLjYH/plfFlSM/F6Kq1usxHBUK2isRlJpu+/h0mm2wd1OEW+WzbP0 iBhywe5syCNOxOPrfFdThmRk7eR0uknPSn2LmHnyUwH4VoLLTO8i6gg82dvnG/+ZJOm+ emE7zirgA9PkmiAIDJXoJisCkn9GyaEcBFzEs45z1Jq03US1W47JOf6pSyfYLnUkqcxd XHtNUgYcsTrCVVmWKyIq14vwzhYnygjvbjqynaDD4x1f3tx/aO9PPkT1q0Cq6rzeixMK 83PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UjmZ16Xd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si49016749iow.101.2021.11.09.16.16.12; Tue, 09 Nov 2021 16:16:25 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UjmZ16Xd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244154AbhKIUKn (ORCPT + 97 others); Tue, 9 Nov 2021 15:10:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244155AbhKIUKm (ORCPT ); Tue, 9 Nov 2021 15:10:42 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909A3C061766 for ; Tue, 9 Nov 2021 12:07:56 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id q33-20020a056830442100b0055abeab1e9aso404192otv.7 for ; Tue, 09 Nov 2021 12:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jay4bvn1CHVbECfZlQ8rRUGomUTSbkN+CtKVdn6fLuw=; b=UjmZ16XdSJmMTk1B1Q+5+jygX0AQnxVwiZ8nHytzix8JWJdKkHA1DfCyxpMIn+LvEH 8oizt36qlO9lPjxYa3z2hdYSazQstIsTha8sWrMq1ruzMdEPbGL3u5PuxcO4nDQuLaUq pyPzmwEP8ypf51mZzOYgHlTUGmWAcNvmbj4GcHgW1Le9W2SMDQpIoZkZurFoTaWpkMxJ KQz5SeJ7AjGA+PDdbqbJvFDXxQh0CLR4VQuTMWpxCcQ3rpPXPUIZctwdhI5NK9/3E07a B+zKCrYOIohAOeNfqN7g2oTnYVPNaqsaqUv23gFcCRUKzyRNzVLCPBqc2W48WHrcvU7O WOGw== 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=jay4bvn1CHVbECfZlQ8rRUGomUTSbkN+CtKVdn6fLuw=; b=KAbQSWWUPKWa+eZrH9/trGlFAx5g19uRsT+erIFkfcMe1/ZgWtRIpCXWiqp2QMjNaw My5YL3vnwxdcnRDtJ+H0h4JugFje2GUIEFPjey5TuZydNZqxQocM/OF+MMAYaqHf8Im0 /W2eXOZtuJ6FbpebwY9L/UV2zkzgM5y7lZpqWjZtCHtEmZutzJ4HV5zQko+0auZ/Xi/Q pyeV6Fer4w3TgU+V3PE8Mt6kd9IjxZuP408D4Vh8mNoBRdqTkBRoefsrCID3Z3zTgAch vFAGWOkNc0hp+uhMHOIvCnl8tS8pUnm7zMzoUEDkTyhFH3EDXbrZRAAbzgQ0I+mv3Jv0 Cz2Q== X-Gm-Message-State: AOAM532jg7pA3XXNLOl8X7mKmM8ZjgmDHzZdo7mze03QIfHY1fBDeM+K psspXZTs16K/dbVgtoosQjH4KFrSld09Yx17xyEiCKYkJdc= X-Received: by 2002:a9d:6348:: with SMTP id y8mr8389289otk.179.1636488475884; Tue, 09 Nov 2021 12:07:55 -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: Linus Walleij Date: Tue, 9 Nov 2021 21:07:44 +0100 Message-ID: Subject: Re: [RFC 3/3] gpiolib: coldfire: remove custom asm/gpio.h To: Arnd Bergmann Cc: linux-gpio@vger.kernel.org, Bartosz Golaszewski , linux-m68k@lists.linux-m68k.org, geert@linux-m68k.org, gerg@linux-m68k.org, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, dalias@libc.org, ysato@users.sourceforge.jp, Arnd Bergmann , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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: Linus Walleij Yours, Linus Walleij