Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2207322iof; Tue, 7 Jun 2022 23:13:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnBlXrufV+AkuRLnRlBrPxvYpPhdPZp85+MU8atCkezijK/+IYMhYBCbGCXnUHLeW4uJEr X-Received: by 2002:a05:6a00:1307:b0:50d:b02e:11df with SMTP id j7-20020a056a00130700b0050db02e11dfmr33566185pfu.4.1654668785297; Tue, 07 Jun 2022 23:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668785; cv=none; d=google.com; s=arc-20160816; b=PWVFqRmn1o/QwGoOjcALJvVnhRdL0NlGO5/hWIdCS3BLHQ0aPPz8D3Tc+1ZMN0ghFq UzfC2L8aKCoD07tua0NgvAyx80rNQdkubu89y4V3sACA+GImL7X4IonSIJPm2qjAHyoV RPvqeeiK7wkg+s67q8+/3VDFRMNeIMUn3bMIZp5O81R1bkQHgHauN9e2qQ1i9G+daSNF DLh+/OOuSdFC0Mev7a+aHoA4udZOpO+TLSDoQ/eaRF/f1+xwxFt/wOPpT/UrnfjNMwkg 7bh+mw5qOlaqMWnaIbdi901Hl9u6dfLEVdNM52mQNRDy4kvaO/8KkW4y5kK1drZsdB2h q7yQ== 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=5HM2zD354CtPfxUZ+mYXVz7OPzMDXSTeHk5Ww5lVfjU=; b=a0tkB60QMMPNxBM+egSPOrEM3XC/ublEEc1BVS4c7s1w7SbM52M24MfVM87pn9173x cPbyQmjEPMc/OuRXAEYfZO63Lu4mS4FJhbV0umI5Q+X5M74l6oCLF20Vq9N/JKY4/eX7 Cyp6IT5mNgEIYDDCBIOGW5V1BT92xKiHZgt/GvspSb9uCc9bDCelcJAyRIYxA7yhwOHZ dMY8OoRNCOuvfD2ek5o8boUJ/3Kwirp1J5fc8GoNVHP1x+7aGmepQ++RWkRCOdQ9bb9W KQtqtAQwesqmZLCduhrzgqzU8PxyoeYz87Uc/GUL8C2suBb4J2xxBXlNBxqv692GcMjH k4eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r1BMNRX9; 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 g7-20020a056a001a0700b0050e0a0b03afsi7305913pfv.362.2022.06.07.23.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:13:05 -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=r1BMNRX9; 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 4F5E8356389; Tue, 7 Jun 2022 22:35:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390952AbiFHBv5 (ORCPT + 99 others); Tue, 7 Jun 2022 21:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384148AbiFGVyK (ORCPT ); Tue, 7 Jun 2022 17:54:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64BCCBCEB0; Tue, 7 Jun 2022 12:13:06 -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 ams.source.kernel.org (Postfix) with ESMTPS id F17FAB823B3; Tue, 7 Jun 2022 19:12:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 649AFC385A2; Tue, 7 Jun 2022 19:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629152; bh=3ln96m1f8OR5nh/j4MbOrTCjaT/9W5k0mT1TSWTYUks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r1BMNRX90zxt4jHZk7xUu8RytK6Ub2r9rohnoi1PeTdLVX3WW0jtZqSoqiHrCCOKx ffMGgmqeFWntcJxV5X9eVADSqhmRqdmZw7fQ2Btk7JEwNg3WeLrSgysFBxLgtih241 9s7uQ/1OswR7AQ+dnc/LFSRM/p4g5EP9pv0pbxR8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke , Alexandru M Stan , Stephen Boyd , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.18 548/879] arm64: dts: qcom: sc7280-herobrine: Drop outputs on fpmcu pins Date: Tue, 7 Jun 2022 19:01:06 +0200 Message-Id: <20220607165018.774208795@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: Stephen Boyd [ Upstream commit dbcbeed94f3b6f7f24349a7f335cc603a682e7a7 ] Having these pins with outputs is good on a fresh boot because it puts the boot and reset pins in a known "good" state. Unfortunately, that conflicts with the fingerprint firmware flashing code. The firmware flashing process binds and unbinds the cros-ec and spidev drivers and that reapplies the pin output values after the flashing code has overridden the gpio values. This causes a problem because we try to put the device into bootloader mode, bind the spidev driver and that inadvertently puts it right back into normal boot mode, breaking the flashing process. Fix this by removing the outputs. We'll introduce a binding for fingerprint cros-ec specifically to set the gpios properly via gpio APIs during cros-ec driver probe instead. Cc: Douglas Anderson Cc: Matthias Kaehlcke Cc: Alexandru M Stan Fixes: 116f7cc43d28 ("arm64: dts: qcom: sc7280: Add herobrine-r1") Signed-off-by: Stephen Boyd Reviewed-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220317010640.2498502-2-swboyd@chromium.org Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi index 7b8fe20afcea..488caa48cba3 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -677,7 +677,6 @@ ap_ec_spi: &spi10 { function = "gpio"; bias-disable; drive-strength = <2>; - output-high; }; fp_to_ap_irq_l: fp-to-ap-irq-l { @@ -691,7 +690,6 @@ ap_ec_spi: &spi10 { pins = "gpio68"; function = "gpio"; bias-disable; - output-low; }; gsc_ap_int_odl: gsc-ap-int-odl { -- 2.35.1