From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 624F0357D10 for ; Fri, 22 May 2026 04:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779425728; cv=none; b=JEqgOytG7t2DZRt8KFNCPDlj9sJddo3x97+25y8SKQKLSlE6HRzp0T1JS5kLA8cAM872F/b+Aszr1kKbwr069ypUDqcd1Me+IPQLyjmy3DP7ZI9aCpxcZgVw2n7IrEAFBa8/HPxjS+sxhz6heC3znvAs64HD+8TKmaobkrPwfNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779425728; c=relaxed/simple; bh=B9CAhNAdGTp5Zt5LCmbUDLKXezoz9dQvKZMGvVbfxrs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=A1pnZ8PlAo7aVo2i8Scf8FVitJP/q3fSQg+tOr15cNNSJke86WM3Mx/d+0WgnbxbpWAhcYkVMTzygXDFlovdLGAfYBmc9G2ggt0vGGqKItqUt/MBe4GGPWnqMVbhWaM68XLbEYEN65MzOAhAN7gfDcmXsBW4sdiTJRks6LXVXQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GbeIv5MT; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GbeIv5MT" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-5a8891febd2so9480497e87.1 for ; Thu, 21 May 2026 21:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779425724; x=1780030524; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=2uaBSQpnXDZ0Lr2vqL2X8w5SaBUCpNSkuNqugybr2/A=; b=GbeIv5MTw2u/PaO2jrKBK2QR0+f6vbEfqatUpYeF/bCRKRhpq6G8Yn6bHVqyKbI1nO 6aflGJoaJ4FzfLZN2vCoCXevRZkYXwZ0ohRvtIJXvxt2FB4+k9M4FpvxB9W3y197bLcX jzZOqcdFQ6HV/axNzl0q6d65TSOGZM1FYwEzSzmHuAQfon6HxozChLLd9/L69PZ6wO+o BkUjjOuiW5GpBTuadz6fKqNuP3bZ2aGwkn2/iHq1LfFsfqp/JKOnGWjKayLekJ9Bk1L2 iKO/ICx3ULCTvLSVIqiJXbMEUeDgTJ6tlBe24etov6zbxICSiBCXgQ+LB7PjnK3fwgt5 V9lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779425724; x=1780030524; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2uaBSQpnXDZ0Lr2vqL2X8w5SaBUCpNSkuNqugybr2/A=; b=nO6ozpRHAaymKnDZmubXYKv+7Wx6tZGbUoUaWBEya6nCP1sxexMfhccfSzYuBihbat GNL1sj9MRHNjnn5wbQ0hJbI/kN0U/HhVwK1DNdxEDe1aViKX5eCOkpbaeO7YPv0RT4ti IK1B0xSaHTrPA1FDWpLha89+kChG8GTb3dCCVkM87EA7SBm0jfIq4Br54hQV+s5+/Yab UdH/Rf0sQTAOxwUzSGA7+nSOMIvmyjQTrHnJvt17rU6YbQk5B9KiEdgfL2UVpLfUr6YY n388K872CXPc/e/axX0ZFk+xJxdgD1GNervYzSLVaetiszBEv5KFVlfv46ANDmXrK+8d xPiQ== X-Gm-Message-State: AOJu0YyYgwgGB6PgJRqobloL3cBsA1Kn2ZFRjAmGSzjY2LqWUbjGnp1B dat56tw8ZyW/5t9S2lJ/PhQN2p+aLC7KDbvzP2jIqUU179gFcjWxdDkB X-Gm-Gg: Acq92OEEFxjBg7OboY5kJTil9U6iFM2kw/avg1LJVpqq0HaLj5JcSab9Ib0JCeI6x+Y KcGwUlP386+EfnBJHt1Vqr4+vvnwAfUj4HRyI/Uf12jtJlNu1IX86ej4bAg9L4TDDO61gFrnH/r 78eNNpRJy87WVMA5zfTdvZFT30hK3CLA1d+uciyPGnMipPTD6bPs2vdx8JP+RLM9cIGhDbLrBWS fJYdV5db4FPopyPTtJk1r0BxJEmBkr8aeBfmbhEx7qgEbEZr6DXseGtWqCGwkl5rxJpiNY5vFhR 8XhgatjZJc+dfx+85zZ3SB5Sq5bos6MjxMK4ZoO0rZkJjtB20ZlYR7ZQY6Md7Eza6YssdauHS5H cDLf+Gk1vvDvfaBizgcTDpMWAj+EPGC9+YjpMKJXqyMGVEG2cZXi2eUInKW2CZ/Eqa3O4dS/1xU 5hrRv2t+39LtUQ9ORVBOftIq4G/b31tZc2zZMHQUqdJKRtVeI1gUYiSGutalVJV3tFSSh6hNyOb /SMta0iF/xx1XySPjU= X-Received: by 2002:a05:6512:2552:b0:5a8:9988:f1d5 with SMTP id 2adb3069b0e04-5aa323bc03emr387730e87.24.1779425723236; Thu, 21 May 2026 21:55:23 -0700 (PDT) Received: from ?IPV6:2a10:a5c0:800d:dd00:8fdf:935a:2c85:d703? ([2a10:a5c0:800d:dd00:8fdf:935a:2c85:d703]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5aa32cb36d2sm144533e87.13.2026.05.21.21.55.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2026 21:55:22 -0700 (PDT) Message-ID: Date: Fri, 22 May 2026 07:55:19 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/10] [v3] input: gpio-keys: make legacy gpiolib optional To: Arnd Bergmann , linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Christian Lamparter , Johannes Berg , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Thomas Bogendoerfer , John Paul Adrian Glaubitz , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Linus Walleij , Bartosz Golaszewski , Dmitry Torokhov , Lee Jones , Pavel Machek , Florian Fainelli , Jonas Gorski , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-sh@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, netdev@vger.kernel.org References: <20260520183815.2510387-1-arnd@kernel.org> <20260520183815.2510387-3-arnd@kernel.org> Content-Language: en-US, en-AU, en-GB, en-BW From: Matti Vaittinen In-Reply-To: <20260520183815.2510387-3-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 20/05/2026 21:38, Arnd Bergmann wrote: > From: Arnd Bergmann > > Most users of gpio-keys and gpio-keys-polled use modern gpiolib > interfaces, but there are still number of ancient sh, arm32 and x86 > machines that have never been converted. > > Add an #ifdef block for the parts of the driver that are only used on > those legacy machines. > > The two Rohm PMIC drivers use a gpio-keys device without an actual GPIO, > passing an IRQ number instead. In order to keep this working both with > and with CONFIG_GPIOLIB_LEGACY, change the gpio-keys driver to ignore > the gpio number if an IRQ is passed. > > Link: https://lore.kernel.org/all/b3c94552-c104-42e3-be15-7e8362e8039e@gmail.com/ > Link: https://lore.kernel.org/all/afJXG4_rtaj3l2Dk@google.com/ > Signed-off-by: Arnd Bergmann > --- > v3: resend > v2: skip the fake GPIO number passing from mfd > > The removal of the arm platforms using this is not yet going to happen > for 7.2, and Dmitry's changes for the Rohm drivers have not yet > made it into linux-next as of 2026-05-20, so for the moment I > would still like to see this patch get merged, even if we are > closing in on completely removing the legacy gpio support in > the gpio_keys driver, so we can make CONFIG_GPIOLIB_LEGACY > default-disabled sooner. I am (still) all fine with this, even though I like Dmitry's set. I suppose you already have a plan for merging this, but I still have to ask - why the MFD changes aren't in own patch? I feel it would have simplified merging, backporting, reviewing and reverting if needed. Well, other than that: Reviewed-by: Matti Vaittinen Yours, -- Matti --- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~