From patchwork Mon Aug 3 03:10:57 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: 247306 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp860406ilo; Sun, 2 Aug 2020 20:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIVNSsZOqIM6NoaLH5wBesQuhzVb5P6ZGMMu7aB1FFKJpeMG1neLErhVrGGNhRfj+/eHJK X-Received: by 2002:a50:d75e:: with SMTP id i30mr14404865edj.246.1596424251581; Sun, 02 Aug 2020 20:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424251; cv=none; d=google.com; s=arc-20160816; b=U779hY0qc5+dmAd+kMDK4SozF/ypOLny8L2Cm+puFIan8jp0Ll+rao3cd4A3B52Dpt l8JZhkAf0umRhcCWCNTOnoKtqUBMXwOmVOyFtgm90zbuJy0JUy0tw2LcVtIr2IQLWNZV OSxIDR8/est9FOW1OetyMuT4g+2QXdH1sXvd32j9rVbILqU0Nc0H0wrvy9PdrxwSOBYX 0KOPaIdB4NVAHWITgWTPeDrEzK2MXNAncWg/ypJu1GGQPZA63i4obPxlFGLl/wTskiXc p7WZokHm9KZ4S37FGBSc0sD0q9VWK3h1QrNCwskxUBBRwejSWIH7W+vbCHYsEiBpYI34 La6Q== 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:cc:to:from :dkim-signature; bh=7sW+j/XKYMsqDf8PANCMztexlMqz8lIFr2FXWlhrblQ=; b=hFvzvNTfahVVWslxjHYD7ujmVnbJNACInooZWFcN19WSts6I10w4pdReFs+97P+x6P z+d7iMy4T2b7I0vYoDqbnd82Klnkb9EbZjAoKPxJ9HcRlm7RFew3dtXt7vVFcbdZMXTc 38rlP0y6OZeF5lHFTn3v7cBfxmLxpwUzomAHF9QBkvBiWqc5RpxtQ8jLDfSPwvTG664J BDgKGtkbFAEYSb5u/6SQrD6Usms8M3Ut67u5lHPT4ayWKemTk5Z5VtDIbrER1K/qUGQF 6zsg9y7bD7C5pC7KCAt77P7UUqj07mvv8fkQp6wVJWmyLLXZhsnIWBpnUCQT1euxY5d1 llEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SRIYC5YP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si10235393ejb.34.2020.08.02.20.10.51; Sun, 02 Aug 2020 20:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SRIYC5YP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgHCDKu (ORCPT + 2 others); Sun, 2 Aug 2020 23:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgHCDKt (ORCPT ); Sun, 2 Aug 2020 23:10:49 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47C9FC061756 for ; Sun, 2 Aug 2020 20:10:49 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id k8so14104551wma.2 for ; Sun, 02 Aug 2020 20:10:49 -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=7sW+j/XKYMsqDf8PANCMztexlMqz8lIFr2FXWlhrblQ=; b=SRIYC5YPQwH5A0WChBwU4DDJiNlPaS9OqnQduz6N14oYn0aPPzSy+Ec54lMITV4WWU gAkF+RzJK9135qQz7Wd9o8Xu20TXdm1UxtjOKvOvD5GiqbdOAzqqh+GO9+gFoDEmbaDS cX/luOGJ+jmQvmfXf3Rad+66Wi7b3Gw98ryZ8wHy1/sht7OLXfodh3zVUcFtqGan5Bjt Y0JCUgVJN61dOuTPBMQCc9pgAmaBQjTsk5E4vXh+1d26U/Gc2rZfveANyXOw6mpw0azm 4ldtldVqM9Lq5pHKQwhuIGeH/gCjfJwCojZ3wm6rBI2xMJc12C1Il7+w2z8CJIl29XXD jp9A== 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=7sW+j/XKYMsqDf8PANCMztexlMqz8lIFr2FXWlhrblQ=; b=IIYFWwprdf7EWijRjnrg0YaS+3ZQrmMSmEEeLY8A2zXWCORA12wSdMgyBnMP8fKIgE 5m5vOSKHESIDYVP4oGHVEOEyX7g/XvueGkOORZuvaCZTuOgvoVx5t3dONOOgj3WEYmyY XhsA0qdud3Fhf3lyQjaWoB3z/J9qT9iWTq4lRsrJq5fZkY1nPuq9HDl14PbfbWtRMHvm DANx6rjrs1kKLrDWziytksP77bkmW811fPevoSeHiyP0Q1bFV6k39df80s/ZXTCVBi2f v2cajA19B//ulpi2XfHk42lOTt9flInV4e7Ofy+XuKmk1OroizeVh/xO2zuxiNlhCt6J tlLw== X-Gm-Message-State: AOAM531zFBS5u9m8BCHIA5P9xPFup/OsW0qbTnlMYYTg7yKr1nv7tZ14 K8cfhKSfst957pWAKjhK91r+vg== X-Received: by 2002:a1c:9d53:: with SMTP id g80mr13691413wme.70.1596424247984; Sun, 02 Aug 2020 20:10:47 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:10:47 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org, shawn.guo@linaro.org Subject: [PATCH 01/36] wcn36xx: Add ability to identify WCN3680 Date: Mon, 3 Aug 2020 04:10:57 +0100 Message-Id: <20200803031132.1427063-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> References: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The WCN3680 has some specific behaviours that we want to capture to distinguish it from the WCN3620 and WCN3660 respectively. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 3 insertions(+) -- 2.27.0 diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index f389cd4676e3..73ba30a4d727 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1298,6 +1298,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); } diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 3221fed15620..821c4ce61afd 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -92,6 +92,7 @@ enum wcn36xx_ampdu_state { #define RF_UNKNOWN 0x0000 #define RF_IRIS_WCN3620 0x3620 +#define RF_IRIS_WCN3680 0x3680 static inline void buff_to_be(u32 *buf, size_t len) {