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: 10127939 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 3D6246019C for ; Thu, 21 Dec 2017 16:06:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F32629897 for ; Thu, 21 Dec 2017 16:06:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23D0929D38; Thu, 21 Dec 2017 16:06:35 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B653A29897 for ; Thu, 21 Dec 2017 16:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=xgrTQPYERBS1KCXaz+E2F876IqPLGbV0yBBuiM8Utuk=; b=d12NfqIOaVakJ/lXA2e0SkySmt k2cYkdCFNyyEUd4hQ3r83U+Fw8aNQQho0un9ZDWvw9h1eX+U7NSLT0OM5HgM7NZEFvnPiTPdGN224 jvIBy1hc3C4spj9FvtolDqP20+mOQRF0B720AdhR9Fw2Akgs1Fu3U2jEgI5ofrAHHVORG5hleDjpL xQEocIhupLOOVd4aYrv1m8VFd++7cIre9P3V+CB7brm2K214o/QwkcFNUA2XYI8cDdwXnIw/XEmH7 negUoOzc8c0gWjBL32p3mgEVStlPL+2hGPhCMBpzM1VekZIilpW8HNbJDLkQ2GhemH3Fid6uKJAIv VNx99TXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eS3MY-0006QL-UX; Thu, 21 Dec 2017 16:06:26 +0000 Received: from alexa-out.qualcomm.com ([129.46.98.28]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eS3Lr-0005M7-Rl for ath10k@lists.infradead.org; Thu, 21 Dec 2017 16:06:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1513872344; x=1545408344; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ZSNM4zXYCoCvYdtFzA0uJyBhnr3I/5ACRLsQ39MEUJ4=; b=lHfKilMJVvU1TiRqdmN1ssWpK6LFTM5fuK/Q05tctxRHYeEXCAaNiXbY hEWqYzC3EoduKqRb1/kiAMX37Bc0FsDQGay9eBoQrHQb+1e38fQQkoLDF G4sb0wtf2DUQsRj3FaQX29OV1EocoVHNUGkAoKtJchjjpjf5TDn4k8irJ I=; 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171221_080545_020950_E43F9CD6 X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh , linux-wireless@vger.kernel.org, Rakesh Pillai MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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";