Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp282187iog; Mon, 13 Jun 2022 02:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh4e6aV4Nz4aIz2rQn6PeJTQIZdSJ1jptUn6cWRSioXRLabMcjI7wO/R8iPLwTtbF8xewi X-Received: by 2002:a05:6402:50ce:b0:42f:9482:1fa7 with SMTP id h14-20020a05640250ce00b0042f94821fa7mr54638165edb.144.1655112847501; Mon, 13 Jun 2022 02:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655112847; cv=none; d=google.com; s=arc-20160816; b=gZ6xoItVAz9TM+9lKVyFze570icczgFzbNoO6QV0yA/81MZ681Z1oq0tJkl9qru4qe qfde5hqik3jZKAz0DnbpaJklifHmvyLJnopXiaxkmf/R2wRKwckFx3jtNllc6GmgbZC2 udXriq49Kz1s+dtNoHwKz5NvzWMkQPgAlUjBLg72g25iMr0WTpPq1VT6bFWI27bdZJ4V XQqM7d2H6d4WM6KEMIeE5S47OE7qC4PMonC79/uC3P4Z3JPk7JFLZHUFoSaZ0Xs+OgcF r1svdxyqcgNsmVMzWBQ5gJ8K1sy5Tsv1DzIz1gjc+W0KrFDDOB8MKmf9GcdhV3FVOy3N 0dqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s/qui5tshevMDsVl4Bso/OD4AtjnU5TtJ7Gj/M3XN6g=; b=fu9F+CmkKJtVDOiCF7VW09YG7ImEh+UbZ693F+3h2RLQRQdCOI2AcZl69c2VOYCIIW TrMTo2ApcWvXoMTpIb5nSyP0nS0tcBq+y5ErPXFVOWcX6/Q2cWqcAjxN1j2ca2QG4u0S P1yiQuO3dKdKC7V+93Y0zgInSd9pkeSk+mjFrQQrbao3XidkIzjE/W1fUlRxNLEKhE2V x50Wti75QhquKv4iyDMyZUyYLmAcxKUt8jXx6E7cUNHXpoFBBqL4zr+9i/gY/ZeIG7ki bvwJQJsGCDrUxaT6WICfuK5+6kD07grXEjJAyu1+4Z4epmHeZfXJ+8JH7hTEFo+Ns9QM Q8pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSqHDkRM; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a05640226d300b0042dc8598056si8410306edd.208.2022.06.13.02.33.50; Mon, 13 Jun 2022 02:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=gSqHDkRM; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239511AbiFMJcJ (ORCPT + 65 others); Mon, 13 Jun 2022 05:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234865AbiFMJcG (ORCPT ); Mon, 13 Jun 2022 05:32:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11F418E18 for ; Mon, 13 Jun 2022 02:32:05 -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 706DDB80D74 for ; Mon, 13 Jun 2022 09:32:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97EABC341C4; Mon, 13 Jun 2022 09:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655112723; bh=SddoYtToYnd60vSjGq+xaMPEhrFsty5ft9T+UA0njtE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gSqHDkRMztXJ1K9i7c9jfF/kjwwUcOLm/+pUCvqqtDW/5yMzZPamcEsKmwE3vy34e yQRGS+aqwqP+iUI81Yft/cULbLm9rEx+gX+RvpV+UEWcZ08Vt8Dj0vib8zTItDC6FV z5//94arY5H6nVQF8CUpP4LUqyGKNaLJzYe3ShwruNldf58AJTOh+62cmWiY9ymj/F o+G3KAnEm0wox/FGUFfjKv8W42sU3LH24qpnQs4KlPa5WEXx50VwYHbQzMwu2QjVCp e/QZY4CPxu+hvWdtGlQqN7Tlq6xh9uRLAz0Q1BiYhmbYs8m9jefSxhk3MBWUYSzcHx o6IqoEL+4FXBw== Date: Mon, 13 Jun 2022 11:31:59 +0200 From: Lorenzo Bianconi To: Deren Wu Cc: Felix Fietkau , Sean Wang , Soul Huang , YN Chen , Leon Yen , Eric-SY Chang , KM Lin , Robin Chiu , CH Yeh , Posh Sun , Eric Liang , Stella Chang , Evelyn Tsai , Ryder Lee , Shayne Chen , linux-wireless , linux-mediatek Subject: Re: [PATCH] mt76: mt7921s: fix possible sdio deadlock in command fail Message-ID: References: <7122534ce50527e099a23fa198683a0e20c6db38.1654998031.git.deren.wu@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="A5J39+V/GstiCcPe" Content-Disposition: inline In-Reply-To: <7122534ce50527e099a23fa198683a0e20c6db38.1654998031.git.deren.wu@mediatek.com> X-Spam-Status: No, score=-8.3 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-wireless@vger.kernel.org --A5J39+V/GstiCcPe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > From: Deren Wu >=20 > Move sdio_release_host() to final resource handing >=20 Acked-by: Lorenzo Bianconi > Fixes: b12deb5e86fa ("mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl") > Reported-by: YN Chen > Signed-off-by: Deren Wu > --- > drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c b/drive= rs/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c > index 54a5c712a3c3..1856d677fff4 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c > @@ -156,9 +156,9 @@ int mt7921s_mcu_fw_pmctrl(struct mt7921_dev *dev) > =20 > err =3D readx_poll_timeout(mt76s_read_pcr, &dev->mt76, status, > !(status & WHLPCR_IS_DRIVER_OWN), 2000, 1000000); > +err: > sdio_release_host(func); > =20 > -err: > if (err < 0) { > dev_err(dev->mt76.dev, "firmware own failed\n"); > clear_bit(MT76_STATE_PM, &mphy->state); > --=20 > 2.18.0 >=20 --A5J39+V/GstiCcPe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYqcEDwAKCRA6cBh0uS2t rKi5AP9bBre9sLH9PTh+EH3Jr/qpaTrLs7r4oOzOHR1pYRujYwEA110zit1P/R1p V2NpPVVAmKVq5M9jc72S1elD2wL+hws= =1cka -----END PGP SIGNATURE----- --A5J39+V/GstiCcPe--