Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp815124ybv; Fri, 7 Feb 2020 09:01:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwMq+H0RjMKYOMHTedZjzA8d1fjvonkCebI3q/8wF4lcYFreXGazI6tsOV0P0iNeQizqZ7d X-Received: by 2002:a9d:7a56:: with SMTP id z22mr211141otm.201.1581094912441; Fri, 07 Feb 2020 09:01:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581094912; cv=none; d=google.com; s=arc-20160816; b=iOoCZCGFz/WKB2PkDlUl0To12LGYoPiseTF8z315zBZhQAorUtVMhHLaG1yynXSYn1 gPC6eavHfaDB0b0heeuqmVAMRWLpeKSE4A+8+PPc2a1zk6ijneEyvp1CpEpp4H/V4yAx lJBJ/78ovPoyPAUzOHyE5g9D6oIa/7nWn6DLmWLw9dCgFECtecvCe/a2W4ei22B9EHnp dwE6/dhYz5jSMts3FGNrUiPEwzFc4Xlz40pQKPzjNtwxkB92wOpNQ4c3l0L1FUxxE9L/ 9xIdbIJxX6pV8Rj5Efg4oY6q38srKZw+PJlfxFVAG/ksRcG0PurMycrMwtyVOFIwts1W NqNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Tsh9ByKW072RViyLCL6ki6nXhwjY7qENKuC7cJhBxcM=; b=Nw5rmgC8PUTWt/n3NKaHNP6w4mQkUzkxE9ZD/6tkyISj056+DGnxnvb2vwJ7t5xAIw 6J4Bidd9Rz+Avy74AZCPQWdDL9X5gdYnce/kriYeH1CEy926DFekFlsMtId7uWDSC7W4 2QMFznkEpliROxigqtSZXqehrBVvZAfHfoxmcJgdqqaLCNQiwgBzNYH6O3aQWRmjoxXw gCUDOzR/1NjSML39chYVFoUz6yBrwDLJGHXII9PPwUMiNpFZb7w7vCxUD1k60Qlc0GuV 4omNhTiVbhsXJFCcDtFSBtY4vUg6QC0LG0LXi9b1+5MCA0aT7wrD/c2REDpWbEDIpD3d g8ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=FmScKsWS; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c144si4326737oig.263.2020.02.07.09.01.39; Fri, 07 Feb 2020 09:01:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=FmScKsWS; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbgBGRAK (ORCPT + 99 others); Fri, 7 Feb 2020 12:00:10 -0500 Received: from nbd.name ([46.4.11.11]:58248 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgBGRAK (ORCPT ); Fri, 7 Feb 2020 12:00:10 -0500 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=Tsh9ByKW072RViyLCL6ki6nXhwjY7qENKuC7cJhBxcM=; b=FmScKsWSahKc/hMbSsHShJdnvx RH2afbanUhdDIvQhzds/2DQc+hB9MdY01SO2Wke8PWD17XBArXUKh/MWXiSpqpS0hvUmkYQQXdC39 uRZh3RT3qSiB8ztCp/G0GCn0qUpmygo14g6xe7O86R2/6dy746D77WHDXNwp5ZZtzmck=; Received: from [80.255.10.202] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j06zB-0000Wi-03 for linux-wireless@vger.kernel.org; Fri, 07 Feb 2020 18:00:09 +0100 Received: by maeck.local (Postfix, from userid 501) id 844597B99ACE; Fri, 7 Feb 2020 18:00:03 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 2/2] mt76: mt76x2: avoid starting the MAC too early Date: Fri, 7 Feb 2020 18:00:03 +0100 Message-Id: <20200207170003.35765-2-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200207170003.35765-1-nbd@nbd.name> References: <20200207170003.35765-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Do not set the tx/rx start bits in MT_MAC_SYS_CTRL from within initvals. The driver sets these later when the hardware is ready Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76x2/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/init.c b/drivers/net/wireless/mediatek/mt76/mt76x2/init.c index 79e583eb066b..a92a479aebaa 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/init.c @@ -82,7 +82,7 @@ void mt76_write_mac_initvals(struct mt76x02_dev *dev) { MT_PBF_SYS_CTRL, 0x00080c00 }, { MT_PBF_CFG, 0x1efebcff }, { MT_FCE_PSE_CTRL, 0x00000001 }, - { MT_MAC_SYS_CTRL, 0x0000000c }, + { MT_MAC_SYS_CTRL, 0x00000000 }, { MT_MAX_LEN_CFG, 0x003e3f00 }, { MT_AMPDU_MAX_LEN_20M1S, 0xaaa99887 }, { MT_AMPDU_MAX_LEN_20M2S, 0x000000aa }, -- 2.24.0