From patchwork Thu Dec 21 16:05:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pillai X-Patchwork-Id: 10127929 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4911B6019C for ; Thu, 21 Dec 2017 16:05:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C45129897 for ; Thu, 21 Dec 2017 16:05:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30FCD29C33; Thu, 21 Dec 2017 16:05:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D621429897 for ; Thu, 21 Dec 2017 16:05:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755303AbdLUQFh (ORCPT ); Thu, 21 Dec 2017 11:05:37 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:43185 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbdLUQFc (ORCPT ); Thu, 21 Dec 2017 11:05:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1513872332; x=1545408332; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ZSNM4zXYCoCvYdtFzA0uJyBhnr3I/5ACRLsQ39MEUJ4=; b=x5JhsXeJwSpkhKsJLjZdh7GTaUdD0G6hg/pLq8lmkBNJmnzQd+pgqeYn mxGWm2bshTJLDkXwJh4cSMZEijh9K9VHg1fDu9ckkvVKiYBRv3Grul5Yh 5PaHDnx3yhcLKxo3/xcyZEl/uaIZMh2M6nwqo6fSDTB8axreDifIAz4S7 w=; Received: from ironmsg02-sd.qualcomm.com ([10.53.140.142]) by alexa-out.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Dec 2017 08:05:31 -0800 X-MGA-submission: =?us-ascii?q?MDGpQnMsPRzpss4xi0lWRq01Jpho69lRR22uGm?= =?us-ascii?q?sgnkFIMyGoM6EMlnEwOGo4hQ/31lv4DJdQDayY0u0hIH0wzoP5t3DqWa?= =?us-ascii?q?7Wmc8GGcgMayCmP6Cvn3zA5nzXVojxdOXr1EaXlgY12p8Fz4/5OOpZsx?= =?us-ascii?q?5O?= Received: from pillair-linux.qualcomm.com ([10.204.116.193]) by ironmsg02-sd.qualcomm.com with ESMTP; 21 Dec 2017 08:05:28 -0800 Received: by pillair-linux.qualcomm.com (Postfix, from userid 452944) id 59D8D1CB8; Thu, 21 Dec 2017 21:35:27 +0530 (IST) From: Rakesh Pillai To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Govind Singh , Rakesh Pillai Subject: [PATCH v2 1/3] ath10k: Add SNOC bus type for WCN3990 target Date: Thu, 21 Dec 2017 21:35:20 +0530 Message-Id: <1513872322-26636-2-git-send-email-pillair@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513872322-26636-1-git-send-email-pillair@qti.qualcomm.com> References: <1513872322-26636-1-git-send-email-pillair@qti.qualcomm.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Govind Singh WCN3990 is integrated chipset which uses system NOC. Add SNOC bus type and related definitions. Signed-off-by: Govind Singh Signed-off-by: Rakesh Pillai --- drivers/net/wireless/ath/ath10k/core.c | 1 + drivers/net/wireless/ath/ath10k/core.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 042175a5653f..b6d5bad6f5ec 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -1551,6 +1551,7 @@ static void ath10k_core_get_fw_name(struct ath10k *ar, char *fw_name, break; case ATH10K_BUS_PCI: case ATH10K_BUS_AHB: + case ATH10K_BUS_SNOC: scnprintf(fw_name, fw_name_len, "%s-%d.bin", ATH10K_FW_FILE_BASE, fw_api); break; diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index 398cd3c57139..81285ab30a7d 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h @@ -92,6 +92,7 @@ enum ath10k_bus { ATH10K_BUS_AHB, ATH10K_BUS_SDIO, ATH10K_BUS_USB, + ATH10K_BUS_SNOC, }; static inline const char *ath10k_bus_str(enum ath10k_bus bus) @@ -105,6 +106,8 @@ static inline const char *ath10k_bus_str(enum ath10k_bus bus) return "sdio"; case ATH10K_BUS_USB: return "usb"; + case ATH10K_BUS_SNOC: + return "snoc"; } return "unknown";