Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2222608iof; Tue, 7 Jun 2022 23:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHblzf1aywh0RqTm49prg2oKWdjShqOtEMgly0qz1KO3nir+57k2a8o/lsEBW1UifFF6U7 X-Received: by 2002:a17:90a:1911:b0:1df:b08a:e252 with SMTP id 17-20020a17090a191100b001dfb08ae252mr70840828pjg.215.1654670472104; Tue, 07 Jun 2022 23:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654670472; cv=none; d=google.com; s=arc-20160816; b=J09cMdEqvPoj45aYbebLX1idGXEpPVwJMUeUpNYbVCzLgDv2gLnoKxdS/dcCIX4ZSY lBW9b+0qqZ3jg/hAVAbMcyKkGdK5kPXiPIHHw3w+w4tmge6KNTa9LZugHHM3TrUv3Y+O Bn8B2GZrOFswSm0FuVeWqKNxHC1PSVW77yIAA19DOftYHfLmGc7Ll6uaBjtb+xsm/csB MIHwOvS5gVjta45I2s2Ompoj3CtGGedwtBsXGgrJQDh4MlAJeRs2/JKnxdllNeeY/GrK Iy3dUgSfQJCUbGANeipDmbRd/hO2A8t/PkhgajnqcwjUJCLm8gVI15RA0OUGJvYKJlEH wDTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ghery5M6yFejtnJxyBDTENWRRYdPLmLZ2Nb8ilak34Y=; b=B1BkzYtDdxSKupfinU/nuWBLE1fAm0kjCy1OKEqm3+TZ0a1sx+ZHkyFc/ICIxgP8rx JYs/pJVYQ7+++1nAfbHPcYrOCic/CpCB0AKoz6XJhOj6QEwd9iziNLngBz3Tru4wgxWM jE+jrpT4o5+No8PXc+PoUrIEYT7NK8AiB4Bn7PUWkxHe0O1oKk6DRCn6V29b3gLfN1xI lOcC86pCkHX3+5RUrTpYBWvhXhrkcJI8nptjtcQM2kMS5Lq29uMT9v4yea8KAE771fol cCXxk59pX4iOdyFCJkVzYzeDrdWWJ9SyolcEzLbDZM8gGApcT7zEyDgRUlbLvxytSEXF nOPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pDfmkdWj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e15-20020a17090301cf00b0016180dd8c33si27852550plh.164.2022.06.07.23.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pDfmkdWj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 94AE5176D50; Tue, 7 Jun 2022 23:01:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235375AbiFHCrb (ORCPT + 99 others); Tue, 7 Jun 2022 22:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447807AbiFHCoG (ORCPT ); Tue, 7 Jun 2022 22:44:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF76927CCC3; Tue, 7 Jun 2022 12:25:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87CE060B09; Tue, 7 Jun 2022 19:25:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9393EC385A2; Tue, 7 Jun 2022 19:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629957; bh=mPewBoiGdgt0ZMOFYhhXllvEH0qMUNb+JQwB77vrY7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pDfmkdWjvmkEUWtueVKHMPEM84ZalxtznEfDRk4CeVqRgXwaZvuHxTlP8nE8LjYsW gBS57xap9urKhALWs9wYGeSLOW6beYEIpRjRcSgvsba5pTsV9yk1h1WIItL0+T/qDr MwLfpQ1xd0eoBnJozr4XvOrJJz0wQkPv4bq0Tiog= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Jarzmik , Linus Walleij , Arnd Bergmann Subject: [PATCH 5.18 851/879] ARM: pxa: maybe fix gpio lookup tables Date: Tue, 7 Jun 2022 19:06:09 +0200 Message-Id: <20220607165027.556327263@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 2672a4bff6c03a20d5ae460a091f67ee782c3eff upstream. >From inspection I found a couple of GPIO lookups that are listed with device "gpio-pxa", but actually have a number from a different gpio controller. Try to rectify that here, with a guess of what the actual device name is. Acked-by: Robert Jarzmik Reviewed-by: Linus Walleij Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-pxa/cm-x300.c | 8 ++++---- arch/arm/mach-pxa/magician.c | 2 +- arch/arm/mach-pxa/tosa.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c @@ -354,13 +354,13 @@ static struct platform_device cm_x300_sp static struct gpiod_lookup_table cm_x300_spi_gpiod_table = { .dev_id = "spi_gpio", .table = { - GPIO_LOOKUP("gpio-pxa", GPIO_LCD_SCL, + GPIO_LOOKUP("pca9555.1", GPIO_LCD_SCL - GPIO_LCD_BASE, "sck", GPIO_ACTIVE_HIGH), - GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DIN, + GPIO_LOOKUP("pca9555.1", GPIO_LCD_DIN - GPIO_LCD_BASE, "mosi", GPIO_ACTIVE_HIGH), - GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DOUT, + GPIO_LOOKUP("pca9555.1", GPIO_LCD_DOUT - GPIO_LCD_BASE, "miso", GPIO_ACTIVE_HIGH), - GPIO_LOOKUP("gpio-pxa", GPIO_LCD_CS, + GPIO_LOOKUP("pca9555.1", GPIO_LCD_CS - GPIO_LCD_BASE, "cs", GPIO_ACTIVE_HIGH), { }, }, --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c @@ -681,7 +681,7 @@ static struct platform_device bq24022 = static struct gpiod_lookup_table bq24022_gpiod_table = { .dev_id = "gpio-regulator", .table = { - GPIO_LOOKUP("gpio-pxa", EGPIO_MAGICIAN_BQ24022_ISET2, + GPIO_LOOKUP("htc-egpio-0", EGPIO_MAGICIAN_BQ24022_ISET2 - MAGICIAN_EGPIO_BASE, NULL, GPIO_ACTIVE_HIGH), GPIO_LOOKUP("gpio-pxa", GPIO30_MAGICIAN_BQ24022_nCHARGE_EN, "enable", GPIO_ACTIVE_LOW), --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c @@ -296,9 +296,9 @@ static struct gpiod_lookup_table tosa_mc .table = { GPIO_LOOKUP("gpio-pxa", TOSA_GPIO_nSD_DETECT, "cd", GPIO_ACTIVE_LOW), - GPIO_LOOKUP("gpio-pxa", TOSA_GPIO_SD_WP, + GPIO_LOOKUP("sharp-scoop.0", TOSA_GPIO_SD_WP - TOSA_SCOOP_GPIO_BASE, "wp", GPIO_ACTIVE_LOW), - GPIO_LOOKUP("gpio-pxa", TOSA_GPIO_PWR_ON, + GPIO_LOOKUP("sharp-scoop.0", TOSA_GPIO_PWR_ON - TOSA_SCOOP_GPIO_BASE, "power", GPIO_ACTIVE_HIGH), { }, },