From patchwork Sat Aug 29 03:38:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 248665 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602370ilg; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6DvBlXSAVtKD+mthNolicCtuUMG0xh6kHgggB1VhU1oJbyH/5WeN5clbGu9fiKHHXAJor X-Received: by 2002:a92:d1c4:: with SMTP id u4mr1492320ilg.295.1598672294582; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672294; cv=none; d=google.com; s=arc-20160816; b=iexuFgnsFjRABFxPT94CCQXYtjyYT4IJc9ffkFHsAAQQsO6VrUAcDupiC9wUAIAm8T ecyMaqyOcn6+zYZYz0qrzeVsB7RNmV3JiJh7nQgBak3uX05mYAPNryQmdlkgPEEsoSZr RA0EomIRxv9iWKCT5pTT1YJ3FSnpQK8zwoJRrMEoEL/Df9EM2QOzPOyXBhlN4Al0MjGX 9nwPtG/Sko75F0bvxe9OyCQcLM5L0Bws4gCk1ypC+U0KOgrLO7Z3xRlswHH/L6hYRyiW UK6noXpdSAlFqFFegxpoxUEQx5VVT8Oznu9nXEC6PZSmG/rwsNngvY5WqGjrQyDrIoVQ HdXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=SQ2XUAxMFrGPR8+4xq5lzwWv+fHjiQ3evIY5exIhg74=; b=OMoG0O0o/RaZgrN4UO/sQ5e9FDjb32fJQrmITI0sE8bUN+9DT5LOJX+DF2fxhWPmao e7+4ds0kx2R54U7yoZ+Ul6OanIGzR2DUW2IoWw6mSIgLGu132XTgNTUuR9z5BsT0uu11 8cTbz7dUlIWJjq8RgBkBqHNgz9LxUpgEblVsVS5Nn+NTchU9OF9Y0qCCSSPxNhYivSjR gB11bQ9jdfOGB9DoGMEvqmxwNW93Fkee4Z0Z0UViuYZVCSxIlADwLabcUZ5ZcXt3s8ij lZKOHTHx0jc0+YeyElv59ua8bBZ6rcvHriiTLYQc2lt9dANybiuFagOplgUsuuNNvt+m br3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=hjyGNaOP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zkoSQL7W; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id b7si732031jag.98.2020.08.28.20.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=hjyGNaOP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zkoSQL7W; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SQ2XUAxMFrGPR8+4xq5lzwWv+fHjiQ3evIY5exIhg74=; b=hjyGNaOPydzDll71pIWrbsocU Gx3/IxTLnVrAuM03mzcBgurdZHaiuiZbBJjZVGPDXgGYYOe8TA0fcJRo3qxEoEyv7GYT83Qs4a2Oj nP40lIgWffKqtIda8Fsg2DZvWU/dL/2aX3+IDC/ISWYBj9WQwTfplU7S0BgYmzED87ztw9UJnQ3uD c0prUgeArqm5gsF1qIueZ0Tb7zW/Xe9mCWuSIuoqW9W/4mmf3PiS5KuBxdbomhzQrqtvVeKAcxY0W ZVM3myX/p8K5BrzjK/bAXOTCDIClVnCQueNlh8VNnUxrgfepUf9ZNqA5RZT5kxIkExWkQidUYUOv1 TMnechqfg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgx-00027m-5d; Sat, 29 Aug 2020 03:38:11 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgt-00025F-CX for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:08 +0000 Received: by mail-wr1-x441.google.com with SMTP id o4so905652wrn.0 for ; Fri, 28 Aug 2020 20:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vXKEi/HoMMsHZxH4yOeDvKa0RuCCtL95AFd9xgH5tmA=; b=zkoSQL7WX9g1fDWQx8gKsqkXSmOkkyl2rUtJC/8+ekwNenOYXPwZWnYqU4b6yRMmaW YSGzXNGuxrbGGv43NWMJkycrNayItjj1aCJtllCOepPVKC8Nkv/ur3DO57l0J2sRPCz7 y1r7AewhrxW5X1QkS/h0hnEb9pyqa+5/DjRp7oelBHRJglhAchi7SOor7qJ86EXENH4V KTJR3rEusaAxO9nWENfhc23pkD6xPijqEmGSQc6KS5+pVyrqWYbwP/h14iL6R5udoJF0 aPwBOCklO79YhsyHY5RoNrTkqjy2U71DYKvW0RAUXARt9ZePDt+sFWDXAqe1IOqDkqGE Pyrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vXKEi/HoMMsHZxH4yOeDvKa0RuCCtL95AFd9xgH5tmA=; b=LXDHL4VM0Na3Isrj287dkSmDvjR+yQa7KY5c/HRPp11kDd+Y/84unu9DFoyL572SSy esG+aUF0yuV7I9KyZozAaSIXIRCN//b5RK8f6mH2XRUXjktB3XQ45a7hk5AxoVgzrgMj owNdIpnz7tQx0jyCEQVp7cP2iiujk5uh3XeU0zwfNYWFjghNq7ENgskXTz0sIxRXZDMT LX8wyAWNj3lwvZLxDWn6gGvexPoLFSLC9AfgbA+bkZrUDPd6Vg41fopjHfJBRGaeH+Rw mxfquoQZHxLgN2UXbQcshc9lLLhMIPKlqoKCSebmJpnn80tOItvx1LatOL84B+OkF9Zq Iuww== X-Gm-Message-State: AOAM532XkfxO8cdUH5FcIOP3wvU1OHgxblbJXfWXWAMH6Sbw3plRm6ZV e+xzs4DYCeNn3FWP/a/Sf6xBQw== X-Received: by 2002:adf:81e1:: with SMTP id 88mr1831849wra.57.1598672285502; Fri, 28 Aug 2020 20:38:05 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:04 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 02/10] wcn36xx: Hook and identify RF_IRIS_WCN3680 Date: Sat, 29 Aug 2020 04:38:38 +0100 Message-Id: <20200829033846.2167619-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233807_475687_FDE55024 X-CRM114-Status: GOOD ( 12.48 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org If DT indicates we are dealing with a WCN3680 mark the rf_id field as RF_IRIS_WCN3680 allowing for further chip-specific logic. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 44b8707d3fe9..eb518bd88870 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1309,6 +1309,8 @@ static int wcn36xx_platform_get_resources(struct wcn36xx *wcn, if (iris_node) { if (of_device_is_compatible(iris_node, "qcom,wcn3620")) wcn->rf_id = RF_IRIS_WCN3620; + if (of_device_is_compatible(iris_node, "qcom,wcn3680")) + wcn->rf_id = RF_IRIS_WCN3680; of_node_put(iris_node); }