From patchwork Tue Oct 5 13:53:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 12536783 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3069C433F5 for ; Tue, 5 Oct 2021 13:56:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AEDA26023D for ; Tue, 5 Oct 2021 13:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236074AbhJEN5w (ORCPT ); Tue, 5 Oct 2021 09:57:52 -0400 Received: from mail-dm3nam07on2066.outbound.protection.outlook.com ([40.107.95.66]:60512 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235306AbhJEN44 (ORCPT ); Tue, 5 Oct 2021 09:56:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UZEzwUpysi3znIcndF3qSsLU2HxmUPEHkE1PagIfnFCsXeTuc8BxCRb/V7e1pUd49FHfn8EQEklXhDEec9QxJbwK8ASA/wVhp6V7IzaWRSqkTn2gqDoBRmiRUPenPo10Pv6K6DIuxVoFgDZiYoC6yTnZcW2WBZUolboV7ts+iqSFE7/CjnujKvXWdNPowUKYJOSGQwiaA29X/kyZ98XBw+c2494bVem49R0M8eSUMZbri42Ya0moemJd3CjfAFUTKpRH+YWGDGrBxn1f9GFf65ZJzRaTfOF8pyngtvC0y166+Oj3BYK1875LysfFU6Ui4pLv9l/30zgQ/IpF8qoR8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LNjFHnj7/iedQ+w5rqTk4AU6AQWwlFSosoP8VtyHfp8=; b=WMwQ/mV73zDXQ+BnM/WwUTB4HxP3D/hrXrTvVNi2Cukwj7FyfEIJWDaRreMzK+2bPewowu/G6ii2gnnICWQD2yIhFMWT9/8rL95F++eP3k3tq5itpPjoYhZyZU2PZHxtS/Y5H8fPnW4LgDn4G6xUwaSOQyeG16GLkoXnPiS6lJgc9iDUD9dIVv0+khdkYqU1yzA6aPQWtkoQmBMlEcCE1NOfQHEj9c5NpD8x2hT8edSIRLPCeszysOG4ZTuejWrGttqnjZovXP7PCHhao0WOEqsR1XU9XUPMboewqD82aYia03/uH56dmLbQSuxmwBeZzmu0oCzQ52kVRZ1UY/X9rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LNjFHnj7/iedQ+w5rqTk4AU6AQWwlFSosoP8VtyHfp8=; b=qJ2TBXW0qqmXZoJkqyfiHXbAdRcz50LgSlwiyDaLE7pPmvCFbSle7Os4Jwc3v8v1WOTWaFzW7QsG5lpG+RUD8ddEGCA8x4I6q12fM4T7tlvrkPDIg1OmHL5Kd8EQDDZOA5dyuGj4Z6LCKob9OMG5RUJeZS+UgTffM+3N0EdBhGs= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by PH0PR11MB5643.namprd11.prod.outlook.com (2603:10b6:510:d5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Tue, 5 Oct 2021 13:54:28 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::31cb:3b13:b0e8:d8f4]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::31cb:3b13:b0e8:d8f4%9]) with mapi id 15.20.4566.022; Tue, 5 Oct 2021 13:54:28 +0000 From: Jerome Pouiller To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Kalle Valo Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "David S . Miller" , devicetree@vger.kernel.org, Rob Herring , linux-mmc@vger.kernel.org, =?utf-8?q?Pali?= =?utf-8?q?_Roh=C3=A1r?= , Ulf Hansson , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH v8 03/24] wfx: add Makefile/Kconfig Date: Tue, 5 Oct 2021 15:53:39 +0200 Message-Id: <20211005135400.788058-4-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211005135400.788058-1-Jerome.Pouiller@silabs.com> References: <20211005135400.788058-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR3P189CA0084.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:b4::29) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 Received: from pc-42.silabs.com (37.71.187.125) by PR3P189CA0084.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:b4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Tue, 5 Oct 2021 13:54:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 521e59b0-65a9-45f1-79d8-08d98807a5fa X-MS-TrafficTypeDiagnostic: PH0PR11MB5643: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ngSit5vvNvStPJF7ATz0/3mBnsGinXM7kzxwl/X2BoY8w3Tk344drOEofSPU7s2b4rjF41g8IxE7TRO5YXta7BhhcwLH79+mVX0RBTZKIAGktVGEdn5X5lBbyEdy/U08E+qhDy1gtZspEpj6vp99TToiQSsiw2cdIHcx5e5OXu5yyi6kM+BNagr/j3xoumXyQRsZkd0VL7u9ARLbDpbmCYKaSiKhmVTW7hNX7SK+p6QGwbSxQAyCcNMhx0aAkkOpKnB6mXvVoMwb657lRVTgMAQQ8ff051g2WTgqL2myvLSCUEfZ/8epEPYNG0NYjcG52Y98r3Aphckx8OFGb7Jp1huumKQYrBd+aXpFo60eYDbH80PE1AE925Flko3/eBSJutXUffq5InKStXKHKOzazRvvJRgLr4GXHoEg8FkMRwnIV1X44B+KY7EFIHbpUNizgDmkpvPV81G2yRVA2ErCtkXh0vU84b0jbboRvsapAho8o5mRe6w00EEYpvz6dnkBZ9u3XrUNl5U/Ebd7K++ZolZbBZw2Tykxby8wiC3iNzqYWgzAzFuULr2h2jdg24GM+8tGcPvW9DjuROlWk61MLguFN95Cw9nbtmmEgYdanfz/kEebMsxRzLmAUrQcDDUFTaLYYa4FhtSK0gCpOn0+mZuNME8+/a9e9+S880Q4WEcLfPqniEtFUJWvDTCZ+ISZwp6dyu+Hs8XzmSvNAgGpZQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(7416002)(2616005)(956004)(54906003)(8936002)(66574015)(36756003)(1076003)(186003)(38100700002)(86362001)(6486002)(6916009)(5660300002)(38350700002)(66946007)(66476007)(66556008)(52116002)(7696005)(508600001)(6666004)(2906002)(316002)(4326008)(26005)(107886003)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PRKAe9IHghz46zhvoenTASq81wQ+?= =?utf-8?q?rL5M9iyQQuhZ+9Pfh57QpcvCLUxHwFK6ih053MTCo48yky0wu/xk58tQHTHopNg1Q?= =?utf-8?q?zVqI9Pr8xm5qYbCF7HWkT98tSUmwODcf5dMs8oSKwoiiNcMQf495v3cOcqPWNmRe+?= =?utf-8?q?kD9F3DlTqhTFS59nlhDTDlZ+UxT+Z2U8PPuMeUTP33TT/ZjDi6lcRPLgOZWE4lt1Z?= =?utf-8?q?CEPswiRgiqwB0kH88QAp59eToVQktCn13urOAJ3205kY8B1olkyCbhPc5fZkkN5nI?= =?utf-8?q?pVG0Tleti/56dqpv3HhFMqvFo72DKN3ngB0WlEBPMweuRm60ilF2kwtcpulcGBgts?= =?utf-8?q?AVioSmIkhI74uuv0/FdIE12Th4bWFdGdojaRqw6oO4pEyabSzLCc0ATxbSkNj0W1W?= =?utf-8?q?ah3sWQen1X0tt2Ndn2yKgMnbeQhdSYAwUb5Js2fPpaEjw12DqwkIab5+c380Nmz8J?= =?utf-8?q?RSp/zmo8uMBc51bF01MFQZJZDDln3FSnFw0IUjR0lKFMamedkr4MfLElNo1gMxK0K?= =?utf-8?q?A1W/+AQJJdlQ8jawDx3ctHNCWGqkINAhD1NVGQsTo/f0NqHlHdWQImuUeStwLmRVB?= =?utf-8?q?GOF9wanYjOW+JFaDVpLez4BWAyteFXc2iwj3mzbUhTQPYxnw+qH1p6H0WP5qQ6ciS?= =?utf-8?q?UnaLxn6xWkPcC67zBeXQJ9Gz9CkcCwPOhTre1oAprcGOeKBaR5z7HTZdNTDU61Kfg?= =?utf-8?q?gG51u+D1NGHdXA/00fSki1x6p7n3br+zbN/VCwhr8p3DBRfAiJ24uqG4DAaulnUYM?= =?utf-8?q?0GTyW5aZd5coj36BvCKkwlcj6GenMzdf0QdHQz3S4qiotK27ttrmyg5jonwrj+93J?= =?utf-8?q?A9Fv2Y6g/0H4YTI3xovEaLZnmqjyDIb+LZrmA+LBNhxBFnbIgWkLtIoesV+ihuEjs?= =?utf-8?q?XzZ/LvgZgMf6u6Dees3cawGv9+c5B13POmFfjjV5NZomEKR+sSm0kRIacyMCPbF99?= =?utf-8?q?Q3JSSdOX/1FD5Qx0+phQf9TEKXxiYlpz4+eVll3ZEq+ZFs2jelO/xWn2KQe/6dClU?= =?utf-8?q?M1Lzk8J6L9+vxCUAS2topJ/qmTkzmiByi+6M9cmkcneEqGW5+XN3vY96om26Wlwpp?= =?utf-8?q?l0+iNxpBoT6um9JSOZ2gzmp1Jul4Otpqb9FCRTlLXTL8sd90wEpdQYbuHNS2bvomt?= =?utf-8?q?Shk7cKq2qeUxw4FL7C7VAt82UIfG4QvfMevDuSFSJ7w50VuSiPGWWsFlzH6UhczP4?= =?utf-8?q?Vgn+aoOcla+XG53JML6Q75RCukvXSn2kt1rHs9vaqDb4GFYWhGsgsp4enuYS4tZf9?= =?utf-8?q?stBrpgmlpaOU8SX1?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 521e59b0-65a9-45f1-79d8-08d98807a5fa X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2021 13:54:28.1664 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zHPdIjihHU4WfrGHZfURV7cuPS+ZpanT0bv56PV2yFjz3iuB8klG2+lxqzdMMs9JVK4jQLbDvkuYVjhxvNv8KA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5643 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/net/wireless/silabs/wfx/Kconfig | 13 ++++++++++++ drivers/net/wireless/silabs/wfx/Makefile | 26 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 drivers/net/wireless/silabs/wfx/Kconfig create mode 100644 drivers/net/wireless/silabs/wfx/Makefile diff --git a/drivers/net/wireless/silabs/wfx/Kconfig b/drivers/net/wireless/silabs/wfx/Kconfig new file mode 100644 index 000000000000..835a855409d8 --- /dev/null +++ b/drivers/net/wireless/silabs/wfx/Kconfig @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0-only +config WFX + tristate "Silicon Labs wireless chips WF200 and further" + depends on MAC80211 + depends on MMC || !MMC # do not allow WFX=y if MMC=m + depends on (SPI || MMC) + help + This is a driver for Silicons Labs WFxxx series (WF200 and further) + chipsets. This chip can be found on SPI or SDIO buses. + + Silabs does not use a reliable SDIO vendor ID. So, to avoid conflicts, + the driver won't probe the device if it is not also declared in the + Device Tree. diff --git a/drivers/net/wireless/silabs/wfx/Makefile b/drivers/net/wireless/silabs/wfx/Makefile new file mode 100644 index 000000000000..ae94c6552d77 --- /dev/null +++ b/drivers/net/wireless/silabs/wfx/Makefile @@ -0,0 +1,26 @@ +# SPDX-License-Identifier: GPL-2.0-only + +# Necessary for CREATE_TRACE_POINTS +CFLAGS_debug.o = -I$(src) + +wfx-y := \ + bh.o \ + hwio.o \ + fwio.o \ + hif_tx_mib.o \ + hif_tx.o \ + hif_rx.o \ + queue.o \ + data_tx.o \ + data_rx.o \ + scan.o \ + sta.o \ + key.o \ + main.o \ + sta.o \ + debug.o +wfx-$(CONFIG_SPI) += bus_spi.o +# When CONFIG_MMC == m, append to 'wfx-y' (and not to 'wfx-m') +wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o + +obj-$(CONFIG_WFX) += wfx.o