From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 5C3B73101A6 for ; Fri, 22 May 2026 04:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779425727; cv=none; b=BSTvJUvvOy4cu3Cewlrq5gGxXoUeNGELlj3olYMVxjHD3nzNvDFFKQjd1jps/sCa3TJuO3ph7bZiYyBil1FuiHxPnZKR8hrIBFypzTjyye5HZyikD8sLV1ordDcsJsAb9ih5oSm0+6QNRVIdm5LcM92dEhLDOWck2mNzh7xozZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779425727; c=relaxed/simple; bh=B9CAhNAdGTp5Zt5LCmbUDLKXezoz9dQvKZMGvVbfxrs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=V9+gCVj4IoPXGGKmhNTXcSI9mQSHhoVm54Rd4TQuHpE2sT+01IouSh4gDBjXkET8B4afYhAs2jlOEXHxazUf3yxdclCc7kraeRGUOuykgP0sCYNfFnfa7ViXsP9C3PvuctTBtacOyC/bvLa7GDWc77AmlMdLplIUYRL/Lyh+oQg= 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.43 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-f43.google.com with SMTP id 2adb3069b0e04-5aa2d5a1d51so1060199e87.3 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=RioHsKRe+rGCj4GdelTkiSAOQJ/5qSPr3VxAbqNDONvgoM2gDxBRx7n4J0vwLjuoAS EXK4895Q4akCSK7PzBKHihaCotJS+2/MDFGuksICPreHQwCAac2zpWNkHkheLXEdtsd1 2fVci9+Z4+WfIRy7iDbGbFBqC+BhH13geOwucaW4OOfQfwQEsALmg/t+CNBoxoSeSaMB h6X2Wt8WIf4KUOAfcrdksX5QENT4meoa1J2kGGlZ57OshBXZbyoTmIimbeyE/UG9MpoV SvSUfdKpUXZmf3ab/5qevkQ+WsxlLAJsP+/9gIwbzVVTlRAn5dgQGRI2H3K8u789sRqu Ckrg== X-Forwarded-Encrypted: i=1; AFNElJ8AG2cK3JWDpGBH5VdolBwZHGzdMSTMmEDEVhsodR/l+Ft0y++0LUvxn7AlPi4aqRQg0+++OgAfbQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yy9jpfYywM6eduC0zGp/2AvUuMQrD8Rrjh6rMRnuwk3QgOo1m54 5/bJ6bGQSVjBmvKzSapC8S2VVkVgl9G2ouFcOwzb07WwphskSxXbn/JV X-Gm-Gg: Acq92OHXDpj35qbYw3O6FjtLhXohYWwHxu9Ls6r1JXTKZOHBV1DMDUQIxzLcuc5Ogek Pym6M0Dw8BNVJT/sLkDyHYRmt5z0Ir/LME3NfSznfx6DLxnTQncPK2BE3jIs0hPpG3nksQATlfV 9qtvRIpxWSSJuLBS0wYVN44Vg6q6vJDmJp0oRPcvdsc76NDzpNID0r28ckMyDPIoATCtYTH+7Ca uWgeI+aifxlmHP7T98sdWFpSO1H6VUoFdH9xgtDl+CTteGelOUXySGp2ad+SoeCrpFOpHnyuEhu /18ejHbK5RZMcQnIlZeeEiz7KEFVPUJ6YegdatKsaa9XbP0kYW8PfMeg7G8ci/SPNTYugY6IonC mxb+mh0uosUZCFNVdVm2yOSGs3y9lbH8wTEKUYWPGvIgYtivxjlhdNRnKO7Rg/pD2Inuwr3aq8f 9NzP+8787VNrjXV0nCn4XhvA9JxSQWruoDCAyGWVqkzwy9Io4aYELN+7yCzmz+37wvt1YvHORDT zN4tn2CtwZIZ6gjVhQ= 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-sh@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! ~~