From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f170.google.com (mail-dy1-f170.google.com [74.125.82.170]) (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 ADFE0410D02 for ; Wed, 29 Apr 2026 19:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777489946; cv=none; b=Tz4wqD2tkQitl7TB7crZTvh8HfPnpT+j1BIn1u16Sgfif/sX3bDptM17qDVIhewK5tFPbVbyceLZ4x6SaBpRF3iu5/o+ozmivEz5HMwwf4WqixrhcDfHzR6XdRv6USgg5Le9rk0RtYpYn+f6v5jEAlqo10ZHLIlveKRwnVjClIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777489946; c=relaxed/simple; bh=Al3+uVGP0cwL0jSgTqhyYKTpF9qCePy3QWCdBNNN2mY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aPprqNURk7C7VKd3l4YkOcwk+sGP3COznpata6uLzhL/Vy55e8pkyeUNCdT+iVRF+OW/5Tw8HbXJOXga9ZnJxuNWXKJ+qxgHWCF1sMMDA5nc+rx135giUI00FQgMV3RpAzBMQGzgmj1lqdOPlwhbsWXipkEsZOE8wEHSxTsbxf0= 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=MH8+hTF1; arc=none smtp.client-ip=74.125.82.170 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="MH8+hTF1" Received: by mail-dy1-f170.google.com with SMTP id 5a478bee46e88-2c156c4a9efso310268eec.1 for ; Wed, 29 Apr 2026 12:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777489944; x=1778094744; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7HqN8rTwQqxRLQ6CfNS8UL2258OmapYg9VvqzF8o3sU=; b=MH8+hTF1QkIqhX2MbZXA7+G95b22HsDhKnmj9csLI8S+AQ0L7PfN7T5Jyp9MjeVqGa BjPzdYcV7qh8WMiKkGkShbioe/unzCrJLfOMiOHlWkQsaprrPFkvx0JG/fRWwIJ1YvDB r1rVLv3Xzv5592ZOwk9UAOlJr2jizacLSqWniVY9V+sjN6QJiYGTCQT1H/Mc+M3oBfvN mU+Gikzm/ZtL3TBeH7yXFjyvSbxLkVRBt+D1Xt95mk4IjzZBlnm7gLr1P5GwcZ2IX8py j32yyD9QNubsM7O/UfyEPbqP6FQZR7OTNhKIxc6A3bi0EA0mlhmNwpKMP13ksllWd1I0 pKmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777489944; x=1778094744; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7HqN8rTwQqxRLQ6CfNS8UL2258OmapYg9VvqzF8o3sU=; b=EdkSYoJz8dGPfa9vio0ZpOVDq+sil0/SM5dvLf0ZjKRlkJ+ScMbZJ4wyT4emInNcmc xM3Szf2PjS8NUpEa6gU/XXLJN83F3JZA5liOZOCL0Z2AuYpAXoSp4vsuk3ADihC/eqXL 5elnn2gDvXK4s+5IaEBvJjV4GcLzIsFHvgoYAbBw3sSk3HKyhw+qV5Fo6R2JnDeNUeSv AKM0GxcBMTVeXjAx8pEmv8qVdHnxHjyRdd06QP94kBuQof2y6Jdx74AXeMW7gxUOxpxt AQGdcA03J8If5MP2IPgCgSYISCNsbbN1+Rz4DiBBtcPFlcCzmYIE2bJnM8F0PS4NXtV5 WysA== X-Forwarded-Encrypted: i=1; AFNElJ+SoOVHoxWelbe8O8Cji7pWVRMGYPrxpAMvrehcd7sR5KzBFyUwHGfajMAO9lEQ2mwiGEJcg8RLGX+s5gI=@vger.kernel.org X-Gm-Message-State: AOJu0YxiQe2Vis8t2mLnrpJMJIwQENNq9sKI9amAbdB+R9z2Lb/40i6G V/tzEx6SGTr9wo9zKLrkwxwmx1jrRyXJM4YyYCmUWcq4VP5H2UMRMMCv X-Gm-Gg: AeBDietPgSbcuYQK7hfZOyqiLYq+5k9Sl5cqXAyk6gHSnYY8Rz+3RdXOQrZsNj4mvpZ WLMzHcbHi9tRxSEa+ATyPp2jG5NkeikwzppAHZWiKZReop7IkhCQ9m9KroRIxvyvo+GU0ZT9yeV b5fnPLfw6nfBnrU+n2WPchI7xQbK15WHorCZXUkUUPz+QHzBTOLj2YUfkfUSVbfK6G/r+CaO/yQ uszQrhtat156H9xmJaXq/wdo+XXINVRvBXYDTYvKIcvE35ywSbn5kERq7CR9EJPZEsmP7wdbvpv TV1KFamwsygihr5n01iFqT1H7PaEl3AEe4ZSoGcMFvbNuF61XdAifk9C0rvywezyXDUiN7rq75l TG6oMq/kO98vqkbCPlkeBU2PH9WQH9Q1LGrB2plszbF+NARbCuLMycv0OLQ2+qS22H46rgttB42 ft6xojk4Z5p38E1v1O7Lq4XdwZY11GM5L1KcWfxJMc1xJv2i9xvshhkuhAaN2gDIl6mQ+6MBZLS w== X-Received: by 2002:a05:693c:2b01:b0:2dd:8ac2:9f7a with SMTP id 5a478bee46e88-2ed197c14b2mr2561784eec.11.1777489943637; Wed, 29 Apr 2026 12:12:23 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:54e3:5ca2:4f82:c61]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ed1c0991d0sm3377505eec.20.2026.04.29.12.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 12:12:23 -0700 (PDT) Date: Wed, 29 Apr 2026 12:12:19 -0700 From: Dmitry Torokhov To: Arnd Bergmann Cc: Arnd Bergmann , Matti Vaittinen , Lee Jones , Gatien Chevallier , Marco Crivellari , Fabrice GASNIER , Andreas Kemnade , Krzysztof Kozlowski , Charles Keepax , Christophe JAILLET , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] input: gpio-keys: make legacy gpiolib optional Message-ID: References: <20260427143406.3020992-1-arnd@kernel.org> <7f64a929-c879-4839-a7ee-1da2e423b156@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f64a929-c879-4839-a7ee-1da2e423b156@app.fastmail.com> On Tue, Apr 28, 2026 at 08:12:36AM +0200, Arnd Bergmann wrote: > On Tue, Apr 28, 2026, at 06:14, Dmitry Torokhov wrote: > > On Mon, Apr 27, 2026 at 04:33:49PM +0200, Arnd Bergmann wrote: > >> > >> 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/ > >> Signed-off-by: Arnd Bergmann > >> --- > >> v2: skip the fake GPIO number passing from mfd > >> --- > >> drivers/input/keyboard/gpio_keys.c | 7 ++++--- > >> drivers/input/keyboard/gpio_keys_polled.c | 2 ++ > >> drivers/mfd/rohm-bd71828.c | 1 - > >> drivers/mfd/rohm-bd718x7.c | 1 - > > > > Let's see if my patches to rohm drivers will get accepted and then maybe > > we can remove legacy gpio API from gpio-keys altogether. > > I think it would be good to still merge the drivers/input > parts of my patch. Since CONFIG_GPIOLIB_LEGACY is still set > unconditionally at the moment, that should work fine as long > as your patches for the rohm drivers get merged before > we turn off CONFIG_GPIOLIB_LEGACY for modern platforms. > > In linux-next, I see these users of the legacy gpio-keys platform > data remaining: > > arch/arm/mach-mv78xx0/buffalo-wxl-setup.c > arch/arm/mach-orion5x/dns323-setup.c > arch/arm/mach-orion5x/mv2120-setup.c > arch/arm/mach-orion5x/net2big-setup.c > arch/arm/mach-orion5x/ts209-setup.c > arch/arm/mach-orion5x/ts409-setup.c > arch/arm/mach-s3c/mach-crag6410.c > arch/arm/mach-sa1100/assabet.c > arch/arm/mach-sa1100/collie.c > arch/arm/mach-sa1100/h3xxx.c > arch/mips/alchemy/devboards/db1300.c > arch/mips/bcm47xx/buttons.c > arch/sh/boards/mach-rsk/devices-rsk7203.c > arch/sh/boards/mach-x3proto/setup.c > drivers/input/misc/soc_button_array.c > drivers/mfd/ucb1x00-assabet.c > Ah, yes :) I forgot about these... > Do you already have patches for more of these? I would like to > kill off mv78xx0, orion5x and sa1100 board files (including > the ucb1x00-assabet mfd driver) soon, but that still leaves s3c, > alchemy, bcm47xx, rsk and x3proto. These platforms are in > varying states of disrepair, maybe a few more of those > can be removed instead of converted. I know that Mark > Brown is still using the s3c board, and Waldemar Brodkorb > was recently working on restoring bcm47xx into a usable > state. I have a bunch of patches for alchemyi (posted), rsk and x3proto. If we could kill sa1100 and assabet that would be really nice. Thanks. -- Dmitry