From patchwork Mon Aug 5 01:47:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13753060 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08BB5C3DA64 for ; Mon, 5 Aug 2024 01:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=go9+jMuiKPxIzbSCtVn3aSgkl1rGhZtdM8/wBVYPVDE=; b=01t0BG62mViJe7pmY9NfknbFDk MBkQ8LwB30RpICkZF2qJbl7FCt2qkL9XOR4iu3qDpePs89Pb/hEQ/epWSMc58T3UB7fQSte8ayVF3 Ua1dtddfxZxA/5sz9sukFCgR/Q/PxDOvvOwYBKdePIGJSNsEYe9dcQpj2/ISwqD7GOq0XHVDthymm MZAbdQaE1NmenkiMPP2uEA5B/USR1/X7ipHoX+GUxkxohyFSGwFKVA0TZT6MussLYLy2vDKrr/3uP VFYxdOGCzSvVML44D3a3i7+TW63fycIwwR+K9ZiXfi6oonP6Cuq2d+lwbX+mgab7G+R65oYpx8fZb z2sCWCDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sampT-0000000EKU3-3saX; Mon, 05 Aug 2024 01:48:07 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1samol-0000000EKGo-02Sr for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2024 01:47:24 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1fec34f94abso77364235ad.2 for ; Sun, 04 Aug 2024 18:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722822441; x=1723427241; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=go9+jMuiKPxIzbSCtVn3aSgkl1rGhZtdM8/wBVYPVDE=; b=bBRdy1MXzyH5WohjfP/45zWUmVNmskFrUX2FYJR0K2n5DenbUN+ZWttbSsIcW594tl JVMW7kbwAdEkNGLhC+9rTA2Scywqhbw6qTs4q0CCYzd8kNIgaPi0peKqqn1ye/LRjujW GJlnU9DosAKePg0zED+ccxer8z5sMKocY74l+Sd760srrm4Zagj3HnWHMLp1nMFW/axT 1b+R/QXLmgmml5piCYozLCmyA4utIov/iviDBTpEiEYTlMOrRD17shHhCqfXDYw2fGbc nR5jdpflhqvltLLSNpHajvKsZdiXwiMDeWmTTXyzLOKhBgy4WQ3YjSiTmUigOskVf3s+ 0rMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722822441; x=1723427241; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=go9+jMuiKPxIzbSCtVn3aSgkl1rGhZtdM8/wBVYPVDE=; b=cMquymhjkZSZIsmtjquM0MVkv/QlA+ecP3Gtv29+AHsvpNaTwacsG/WsaWN/Rpc4ON GUTh6NSEdNgEl+8VuUI4sRZGZXWx14/R6pPxS6L/4oV3ECFBXerwJKUb6EKWY0Hqx6EV jYzUzaJpuVwziJqzcn3gsPgM/bIMStPRBVCUPiiRWGxfhQwO2REbzivm2z1zZQjzFMDk olfCyOeL5dFHL5r8DVzV+xu2P1GOttfL8lQUYewSnK1wz7FJmMIApcSEYN7S7/FzYltM yaMu7krC2BoqFjVGEwrmPdbs3bkHBzhNpztIfOzl27aUy/fWevrEC45o+Y08EH9EnnZ/ V6aA== X-Gm-Message-State: AOJu0YxuUZ3RS9o8giBMj6Ufx0teaYNuJ4zr9yuwrbEO5aTV4yYuiUFf 9t7PuHmBG2Rb1LiKaaGapY/nrtTTX9y7feCQMHe4SFOmXvRy/HKnjQjixg== X-Google-Smtp-Source: AGHT+IGrBD7d3KKyvGObAGd8ellCDk7nxxYgIs1u6U2R16dB2zAH+MXNhey9YIhZnLs1wqSsiIarUw== X-Received: by 2002:a17:903:22c1:b0:1fc:5b41:baff with SMTP id d9443c01a7336-1ff5722e988mr106617235ad.3.1722822441341; Sun, 04 Aug 2024 18:47:21 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2620:15c:9d:2:22e4:17a:28a:7497]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff59295790sm55836015ad.261.2024.08.04.18.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 18:47:21 -0700 (PDT) From: Dmitry Torokhov To: Haojian Zhuang , Daniel Mack , Robert Jarzmik , Arnd Bergmann , Linus Walleij , soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH 0/5] Remove support for platform data from matrix keypad driver Date: Sun, 4 Aug 2024 18:47:03 -0700 Message-ID: <20240805014710.1961677-1-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.46.0.rc2.264.g509ed76dc8-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_184723_070613_58600FB6 X-CRM114-Status: GOOD ( 14.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series attempts to remove support for platform data from matrix_keypad driver, and have it use generic device properties only for the keypad configuration. Spitz is the only board [left] that uses platform data. As part of the migration I am also dropping support for "clustered" interrupt mode, as it was only available through platform data and there are no users of it in the mainline kernel. Additionally gpio-keys device used by Spitz converted to use device properties instead of platform data. I would prefer not to have the song and dance of merging first 2 patches through the input tree, waiting, merging the spitz patches through SoC tree, waiting, and finally merging the last patch to matrix keypad through input again, so maybe we could merge it all through SoC? Alternatively, I could merge everything through input. What do you think? Dmitry Torokhov (5): Input: matrix_keypad - remove support for clustered interrupt Input: matrix_keypad - switch to gpiod API and generic device properties ARM: spitz: Use software nodes/properties for the GPIO-driven buttons ARM: spitz: Use software nodes/properties for the matrix keypad Input: matrix_keypad - remove support for platform data arch/arm/mach-pxa/spitz.c | 163 ++++++++---- drivers/input/keyboard/matrix_keypad.c | 334 ++++++++++--------------- include/linux/input/matrix_keypad.h | 48 ---- 3 files changed, 248 insertions(+), 297 deletions(-) Thanks. Reviewed-by: Linus Walleij Acked-by: Arnd Bergmann --- Dmitry