Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1222707rbb; Mon, 26 Feb 2024 02:44:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXenGSoVMlaskhC29/DlhIXUjazYUi4gf6lbFAKcWgs3TTbfJUTkWsUH42t34a61oLe359pvZjKSvsV7S63YhWNRyWN4K6YDEHcppAWLA== X-Google-Smtp-Source: AGHT+IGQwv1V8pPxuVQcL5TPi+1xzndcjOP7oz5e+Ubnhh69ZobLH9pYNDh+4Codzj+lruMBkXeo X-Received: by 2002:a9d:560e:0:b0:6e4:94a5:980f with SMTP id e14-20020a9d560e000000b006e494a5980fmr5168038oti.23.1708944275934; Mon, 26 Feb 2024 02:44:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708944275; cv=pass; d=google.com; s=arc-20160816; b=hVSCGHkr5/uSv6jzK7yMfQ6jt54DgFLz25UJGvncaqY/Ehcr4cVMyLNnfvCXTtQhEG xtrvSFeq45HAn4vjxEY2jrWQs2ObAvrx/IjnNY0i1YDGrGZ4yq6hAF+QAymVJljkU+49 vHYJoZuWh2u0ybDgL6YfqOEJpf8MLdI/+Jgljg+VTfQD9GNUhVpvblLgt/enyPcYeP2Y Ns3BXR6pW1kuZK4+scsCGzDDEAba+jnnZaNE57AQY/wiJRlVs6U74TNLd3/jgQwB2S6I 5Fq84q7vL2gVE3HzCHvMieMhpENWEFFhrU6yJkIDpO0yggacF52uyExfz7hhzL3X27r5 a1IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:to:cc :date:from:dkim-signature:message-id; bh=R6Hd910zBDwMKMkCExB6cSnOb7afaDRXQ2kI/+IQx2M=; fh=nTKKgWwhOkxteIxf7WQbR5POc82cho89nH78v03M8/4=; b=UHQt71UavJ3G0Y+BMV5YBfGbCVCHxdHiKBl1qBXrohxG+xKVKZmydafZMuBVUOmfa/ 3RQmQ6hgLc3D31rLuTJya3wmpSOAVobnxUVPjPPnjADx6S+htp3wxtKZaqHisPksYpgk dzIFiMA10iSmYWof12ay4y5VT7FmHiUcV3/NGcoUgE9XH2FPyjXjezOynjA3x2NoO5ry /733u9U2SjF8xuXx56w7t7gGEMuGXwsyRHvJBc5O8LDxIK+kbd8XLOhhwiplFPHDgP7k e4bvlez8w7r54Va2OCDLHt5JjuUaqI0k0kB227/+1EyPVkyVcsxLSmnSa87muW3AN+8G StfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=gORStT6L; arc=pass (i=1 spf=pass spfdomain=yandex.ru dkim=pass dkdomain=yandex.ru dmarc=pass fromdomain=yandex.ru); spf=pass (google.com: domain of linux-wireless+bounces-4003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m4-20020a05620a24c400b00787cad5dce3si3465267qkn.328.2024.02.26.02.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:44:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=gORStT6L; arc=pass (i=1 spf=pass spfdomain=yandex.ru dkim=pass dkdomain=yandex.ru dmarc=pass fromdomain=yandex.ru); spf=pass (google.com: domain of linux-wireless+bounces-4003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AA2AC1C28192 for ; Mon, 26 Feb 2024 10:44:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FC1C13AC5; Mon, 26 Feb 2024 10:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.b="gORStT6L" X-Original-To: linux-wireless@vger.kernel.org Received: from forward103b.mail.yandex.net (forward103b.mail.yandex.net [178.154.239.150]) (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 26E9B101C4 for ; Mon, 26 Feb 2024 10:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708944095; cv=none; b=OLApQbmGJIkhV+tYK0I9yMrvtFHRQ1BdG7WQ10r18ZsVroOTKRD+87elSZ4XZ+ff/SNdfAjgVgx/QA/oo4BRWeEOncvke5F2Vqc3UMCJC2MRX0RWJnCIz9QSObeY3dKZLx448xcY441XX+9QYAdhZ29xSL2A0WfHcvaXb7nF1qg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708944095; c=relaxed/simple; bh=+cTUOHb2xpPzLdsUcDEU8GaXmkqKrlz3w1CfWfW4AIc=; h=Message-Id:From:Date:Cc:To:Subject; b=Pe3Uqu7qtpSz0z7ZYmfAX9zRxv4PDhTKWJDafRWrTO/3kxHMGhtOJCLm6ZuH1pg/jptScE0dMIDdeoWKe1ax4QaSEUqaLzftvhPuTD0cYl/paSw6HpA5tD1dvjfuncENribhwID7Oavt8Y7p8m1QPzJYtaAESdO1rEvD8Rru5ME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yandex.ru; spf=pass smtp.mailfrom=yandex.ru; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.b=gORStT6L; arc=none smtp.client-ip=178.154.239.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:d315:0:640:bb64:0]) by forward103b.mail.yandex.net (Yandex) with ESMTPS id B0D3C60AFC for ; Mon, 26 Feb 2024 13:41:22 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id KfUK6CqvTmI0-QVsvMrVn; Mon, 26 Feb 2024 13:41:21 +0300 Message-Id: <20240226134122.QVsvMrVn@mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net> X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1708944082; bh=R6Hd910zBDwMKMkCExB6cSnOb7afaDRXQ2kI/+IQx2M=; h=Subject:To:From:Cc:Date; b=gORStT6L8AnxujsdSM5SGkxbYt8QB8RczKI5qEJKz6uRc4euxjedxs953SPHtuQUM 3URCGz4F8BB3Dhi9KLQDGVhscpHB7NgLAyA9JpZ97X+VLMPtKCp94ZdDa9IexHDX+b Tw5IyLbNmvyJbQe7vTHwFky4+t6CRLsnIlsOXr2E= Authentication-Results: mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by localhost (sSMTP sendmail emulation); Mon, 26 Feb 2024 17:41:20 +0700 From: "Serge Vasilugin" Date: Mon, 26 Feb 2024 17:41:20 +0700 Cc: Stanislaw Gruszka To: linux-wireless@vger.kernel.org Subject: [PATCH v2] wifi: rt2x00: don't overwrite SoC specific bbp init Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: SoCs rt305x have the same MAC version but SoC specific bbp init function called above already. So don't overwrite SoC specific bbp init results. When changing SoC bbp init I break my head before undestanding why results were overwritten. Signed-off-by: Serge Vasilugin --- v2 more complete explain in message --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -7257,7 +7257,8 @@ static void rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) case RT2860: case RT2872: case RT2883: - rt2800_init_bbp_28xx(rt2x00dev); + if (!rt2800_is_305x_soc(rt2x00dev)) + rt2800_init_bbp_28xx(rt2x00dev); break; case RT3070: case RT3071: --