Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3111222pxm; Mon, 28 Feb 2022 12:14:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1pfUQRdBWJgcvVzCup69HEau1oT1yYNVgnBRptGhWPjrIuBb8fIH+fhrFq+Wtmay+MxzJ X-Received: by 2002:a17:902:d484:b0:151:6964:2bd with SMTP id c4-20020a170902d48400b00151696402bdmr6796282plg.108.1646079262820; Mon, 28 Feb 2022 12:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079262; cv=none; d=google.com; s=arc-20160816; b=yUv0eTJUDdYfze9jTdnz23y9JK6WW5JxulgAvHI8qT978MT2P6isP1iz6HHc3deyoO 79uiJi0TN9POZVrgMqhsyPvD4Hk9M9+VZce+vnn/UethOlQaO3ysW6bGYoiX1N7HPEjY biQtDZ3o0OicRRVZBdKGQ7vcyoBowSMLzO7Gi47zpF/aMU3o84d1c0kFntPtGtPcJNHQ Wdbc0MYxcPpzNe1SLPqK9AqwPyhZgzx2L7cNekrDQGdUDA+pXJijPeOQR8wVkXIOG7ta pfC5JaTnNgaOLS9YcL/qFdtitZgMSoPKyl7/UgjwD6oAVzyZE0HHT5APQkEAALLSH4nI arXA== 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=p3UvwanfmitJFiws8hkeLxE/7sib/LjDNvjRqSLvhoM=; b=son3cIk/akyMGbRF/OA2cGSONcR6dTlTBUHGAew4S1YgK+/NdzHyHEcCswUz1b/R8u dOLQfbUN/VBLzV3TFmZY9VHSMYxwMeQbzgAYmuf9jp8kij9rrpsDIhIx0gJr0TDI9n/X x0wRtwE4lNPNfEA2553MX8nc3GR4d4s3ta+xcXwYexE03P39tuMm0nblpXtyWCc3SRee ubxtTqAaS+NnBTYS1nP47df2bfKDs+RU8WY6Tv7ajXxTs0YUI4PMsaxvomOgxXyvUyps HUxKKUWeNj5zEwBIaho7SAmHCi7Cjo1euJWBm6/4XQzvgVreb2b6145Gm/pwCV4B9zGt 49ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rg072FYe; 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 z11-20020a17090a468b00b001bca1ac10c2si419862pjf.6.2022.02.28.12.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:14:22 -0800 (PST) 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=Rg072FYe; 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 5E1241662E0; Mon, 28 Feb 2022 11:36:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235714AbiB1Rid (ORCPT + 99 others); Mon, 28 Feb 2022 12:38:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238280AbiB1Rg0 (ORCPT ); Mon, 28 Feb 2022 12:36:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FFA29681E; Mon, 28 Feb 2022 09:31:43 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 1AAACB815AB; Mon, 28 Feb 2022 17:31:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EA00C340F3; Mon, 28 Feb 2022 17:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646069500; bh=0uozSdYEpm4wPeKQjXI6P7p2CNOcuYuCBw5SCjpmGnI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rg072FYeCZojlFw5guDixWR1d7DexwJ53guKPe24FNLXUQLq3LzQNlrtD/bnt2pAE asZk374rCqfi6xwxnDiqrxi+aMW3qKBqyb0f+yEhSC7UReJ6TLQj5cpxkRwIP+6t2Z iMRH2M7PJ3ELvFfOhiHvCnkNP8t48qaGlmddnE0Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede Subject: [PATCH 5.4 43/53] usb: dwc3: pci: Fix Bay Trail phy GPIO mappings Date: Mon, 28 Feb 2022 18:24:41 +0100 Message-Id: <20220228172251.430271739@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172248.232273337@linuxfoundation.org> References: <20220228172248.232273337@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=-2.4 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: Hans de Goede commit 62e3f0afe246720f7646eb1b034a6897dac34405 upstream. When the Bay Trail phy GPIO mappings where added cs and reset were swapped, this did not cause any issues sofar, because sofar they were always driven high/low at the same time. Note the new mapping has been verified both in /sys/kernel/debug/gpio output on Android factory images on multiple devices, as well as in the schematics for some devices. Fixes: 5741022cbdf3 ("usb: dwc3: pci: Add GPIO lookup table on platforms without ACPI GPIO resources") Cc: stable Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20220213130524.18748-3-hdegoede@redhat.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/dwc3-pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/usb/dwc3/dwc3-pci.c +++ b/drivers/usb/dwc3/dwc3-pci.c @@ -81,8 +81,8 @@ static const struct acpi_gpio_mapping ac static struct gpiod_lookup_table platform_bytcr_gpios = { .dev_id = "0000:00:16.0", .table = { - GPIO_LOOKUP("INT33FC:00", 54, "reset", GPIO_ACTIVE_HIGH), - GPIO_LOOKUP("INT33FC:02", 14, "cs", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("INT33FC:00", 54, "cs", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("INT33FC:02", 14, "reset", GPIO_ACTIVE_HIGH), {} }, };