Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4521778rwb; Tue, 6 Sep 2022 08:38:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR5HXVOyAuDAE0gdIp8cSsb4w/RS2cg+LGJeqBDFyAWFgZ5cSqADfM3WoWggqT1cTxjghZRM X-Received: by 2002:a17:902:d4c4:b0:170:9fdb:4a2a with SMTP id o4-20020a170902d4c400b001709fdb4a2amr52912350plg.137.1662478706026; Tue, 06 Sep 2022 08:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662478706; cv=none; d=google.com; s=arc-20160816; b=ghcCyVbTGW+hsFepiDLRiefGCcOwyf9y9z1zNK1qYIn6Dd7EUlnQ4z+socM4CZI/Fl Rh18f/vlK9AloBzGgqG5FEfdR3FH8XISs1aH7yQ+M1VTSkYVF2VGaBw4jObLapBb+cuP vCqZhuL+c9ikzG03DsYQGZ56k43J7+ATvjmldjjsEmOrlZhWIwS3XlD1moT2gFjpD3V7 RFWcgdxXPgkhwTDa59zQ9gX83qfUqKptJOtiPSbuHuGPjkhELt24d3kiTIurUrC1UMpN oaQe9JlTg/BUV0iP8lYPenk8PP7WgvFDWJhizQAGC3VXeyiuoQ85Yz4bSOM53QmRT6A9 Goqg== 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=yqShNiSb27N5SPYfPj9CFRnGutV9pWJkqZ9GktJeEkI=; b=mXzQf/kHXK6eewWI57qSFpwDeuXCbN7qIu7XsXW2mZMgQU1bxRVQEGhR78WVQjJzFH WtONBe3QrQz6vwHxYC1qmFmRXvXMi4Gy7tjh71q26tc1qLWfj6eLMN0ahHW/bhg2KUyQ EzQEyycPnmzOJkYbRFskgOK6alKQxSBupa4jUm012C3BDMAfBNe3vi6ck0Rm+ztEnnXX 91pftEPrhZrvxSl4sk5dcNor2Dxn3No3/pUbHUOjQ/kC1EjqbAwME0HFrbJSfSEf80ug 6xH9P4PxerwEk2f9sYUtPhax8c5aYtZdbwKPjAkJQGJPFbLsi5wmA3ok1vymAbHmKxMJ Dqdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oa1F8DiM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020aa79634000000b00535fa14ffaasi12984098pfg.116.2022.09.06.08.38.10; Tue, 06 Sep 2022 08:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oa1F8DiM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242383AbiIFOZk (ORCPT + 99 others); Tue, 6 Sep 2022 10:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242260AbiIFOUF (ORCPT ); Tue, 6 Sep 2022 10:20:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F37EF32D9F; Tue, 6 Sep 2022 06:51:35 -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 870ECB818D6; Tue, 6 Sep 2022 13:45:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D608CC433D6; Tue, 6 Sep 2022 13:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471899; bh=XLZAU+yWVD3tW1KrDP6Eg2rL0DPZXfjWp3mf4DblUoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oa1F8DiMTdLX4bszhB8CbjBMCIQWJTLRLoyjDiwFO59KPj1nl50LFAExJt/JJelpH 06tvHcW8y9leR+n+yLtdbLVf9zqVqK86WVHD8hUPWpYmoQSVzY9DLupzIR1SHTuAPj huB+WcMpY9V9FAX/kDq1H+bUdA5Ckns4dfAK3lQo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Seunghui Lee , Ulf Hansson Subject: [PATCH 5.19 078/155] mmc: core: Fix UHS-I SD 1.8V workaround branch Date: Tue, 6 Sep 2022 15:30:26 +0200 Message-Id: <20220906132832.731829422@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132829.417117002@linuxfoundation.org> References: <20220906132829.417117002@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Adrian Hunter commit 15c56208c79c340686869c31595c209d1431c5e8 upstream. When introduced, upon success, the 1.8V fixup workaround in mmc_sd_init_card() would branch to practically the end of the function, to a label named "done". Unfortunately, perhaps due to the label name, over time new code has been added that really should have come after "done" not before it. Let's fix the problem by moving the label to the correct place and rename it "cont". Fixes: 045d705dc1fb ("mmc: core: Enable the MMC host software queue for the SD card") Signed-off-by: Adrian Hunter Reviewed-by: Seunghui Lee Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220815073321.63382-2-adrian.hunter@intel.com Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/core/sd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -1498,7 +1498,7 @@ retry: mmc_remove_card(card); goto retry; } - goto done; + goto cont; } } @@ -1534,7 +1534,7 @@ retry: mmc_set_bus_width(host, MMC_BUS_WIDTH_4); } } - +cont: if (!oldcard) { /* Read/parse the extension registers. */ err = sd_read_ext_regs(card); @@ -1566,7 +1566,7 @@ retry: err = -EINVAL; goto free_card; } -done: + host->card = card; return 0;