Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2620987lqz; Wed, 3 Apr 2024 03:53:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2EcRLh2WXSAJXGi6C6bk/JHK76cZHnw9ktGlwxV69af8HCp4/OQJ+qTeKh+DQMkYiVO59/82IiY1cgtnYDqq8WEwPtyF5xwSh6PYAvg== X-Google-Smtp-Source: AGHT+IEPtn70t6AEplHmyeHq2t+wFhLAqWEaf4/ZIT72P2+oewOPFRBE3WG/3mZ1cjKOpwACq6TZ X-Received: by 2002:a17:903:22c2:b0:1e0:9926:aded with SMTP id y2-20020a17090322c200b001e09926adedmr2620982plg.24.1712141592427; Wed, 03 Apr 2024 03:53:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712141592; cv=pass; d=google.com; s=arc-20160816; b=V2aC0HZkBOHpkC6723mtvtiJGpzUkq0SVaqvKfTc3ri+rOtzHrQbD1tn+5lr0bfD4f XP8LxTq0aOnds34140kQTK3wLGM1HivyjyPO63UMIIH+XgBniu+tuhA95fku+pIV0ymJ +US1SPFCtuxeO8L7RPu/WLYO2CHALL0i8nkHLp9frCeixFeTJRDe0mhUOtjfbc3JWyA3 1ce+yrdxvzKIXMlhN1P8wuooIAH2oMDgqAE1DNJxvSrqqXECEP9gUl6//htOpaWTm6Mo 2AqIFupB36xtYxRoFFVQVMN8FbVB94/fL6kquxgqknJPpjd5W42491hm+tSLj/c7I1CN cErQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=PkGdDKVzAxMIUh6m5BfYHa5tYvyWTCa6SC1zFQMksm8=; fh=qW0phhq3fb3oiohK/Mu9j1KY1zyRNiiioKFc5anvatM=; b=CMGjIFnYKtq+PJBHtmSnqubcz7iopxeRc5IQvkKoIBOwkPDigFHs+sa4bKlzNJq+B2 RIZLrocL+VPmGA//NAknTBuwLMBRw0vXrA771V98I20tLhyW1AymDP28+XtmPwUWf+oK FNqXTUGZvhokT+9rE8NPDN/U8SJ+GOsM2d/unGjFaWSv8TUOejyX/V87GFBZtntygNvp eX2zccKww6Hx79L8kukf3xzV+l2cJhP3f8Da7Feqt63YDVRhxYU+wotoms5VgCi427zV kXat+x7vbfXd3BxIp+gc98vYAuPOAkqMfJVGuFYBD/8X+efmzstaNK+IjoHgZqIYDpoE 7aJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Rynh5nfE; arc=pass (i=1 dkim=pass dkdomain=nbd.name dmarc=pass fromdomain=nbd.name); spf=pass (google.com: domain of linux-wireless+bounces-5799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b19-20020a170902d89300b001da17ce989dsi12524802plz.278.2024.04.03.03.53.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 03:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Rynh5nfE; arc=pass (i=1 dkim=pass dkdomain=nbd.name dmarc=pass fromdomain=nbd.name); spf=pass (google.com: domain of linux-wireless+bounces-5799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DEF2628FAFC for ; Wed, 3 Apr 2024 10:53:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5613E141987; Wed, 3 Apr 2024 10:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="Rynh5nfE" X-Original-To: linux-wireless@vger.kernel.org Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5467D1411FC for ; Wed, 3 Apr 2024 10:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712141574; cv=none; b=WJEF3Oz/IJZUB5cMOu2kIn1viwkeQxT05ZeDaGcjtlKwqc3aMsJBviYUZhUyXc8PbMTeoFQqNENdYdMkj2OySE6UEFMQL8D88yGYDPMchCo+bpq9GymcW/CsrtttdxRUro+MVApc4EzUs8UVlam5oHKm/Ejtgs3Q7NqVkgXkIDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712141574; c=relaxed/simple; bh=3pPu2xFkXtt7BjFh2iifsfATstRYhotjO3FLhgWcLs4=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M9GiCibRqApqyeBA2MopRRReoEUiGZtMy15eOPTu3P2kcGU+JX0lL+NV9lDoOLLEY5DNPNmyDiKMRFax+CmKhxrKsoeSfM+hxjlA4R7ludPMicRJlktStoQhbqAHPyo2wSRhlc8NcniLf3BkSjve0JScCEr4JuPeNqxiqO+KeUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=Rynh5nfE; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PkGdDKVzAxMIUh6m5BfYHa5tYvyWTCa6SC1zFQMksm8=; b=Rynh5nfEwxi4N0TSCHgoJLg9V5 DpG7hrOnb2gGuokhx7z1RBiy3fUz2OaX7y31j/iMCmJsh6LHU/eS2/4rCVPkFiAnXVP/BOXwc4MAl 6g9EDeLxj6JIrV9IJ7JIOrUQkyvSGRoL2/BPpNwQ8H3M2JCdLjzEKno28QD48IygQbx4=; Received: from p54ae9c93.dip0.t-ipconnect.de ([84.174.156.147] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1rrxt3-00CgfA-Qk for linux-wireless@vger.kernel.org; Wed, 03 Apr 2024 12:30:33 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 07/13] wifi: mt76: mt7915: only set MT76_MCU_RESET for the main phy Date: Wed, 3 Apr 2024 12:30:26 +0200 Message-ID: <20240403103032.54823-7-nbd@nbd.name> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240403103032.54823-1-nbd@nbd.name> References: <20240403103032.54823-1-nbd@nbd.name> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bo Jiao The MT76_MCU_RESET flag is only read on the main phy. Signed-off-by: Bo Jiao Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index f350b3f7a0bd..8008ce3fa6c7 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -1345,10 +1345,8 @@ mt7915_mac_restart(struct mt7915_dev *dev) set_bit(MT76_RESET, &dev->mphy.state); set_bit(MT76_MCU_RESET, &dev->mphy.state); wake_up(&dev->mt76.mcu.wait); - if (ext_phy) { + if (ext_phy) set_bit(MT76_RESET, &ext_phy->state); - set_bit(MT76_MCU_RESET, &ext_phy->state); - } /* lock/unlock all queues to ensure that no tx is pending */ mt76_txq_schedule_all(&dev->mphy); -- 2.43.0