From patchwork Tue Jan 11 17:14:03 2022 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: 12710120 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 088BAC433FE for ; Tue, 11 Jan 2022 17:15:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343944AbiAKRO7 (ORCPT ); Tue, 11 Jan 2022 12:14:59 -0500 Received: from mail-mw2nam12on2047.outbound.protection.outlook.com ([40.107.244.47]:43361 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1343898AbiAKROz (ORCPT ); Tue, 11 Jan 2022 12:14:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l1JZLdFHK0Y8MOhY2tb4wLasH8P0ZQ1wH7KAybrBNO0Iddj09IdRDjI6QicUUPhyBw23rDvdSij5JiWPIgdzvRcCSXWOW22Dkr0x2baqtGBoeSPjGiAecTFM3FS4noqAD9K6ziAH4mlvLesem/u1B6QTlFx+TRSSVa6FPGg+WTOJ4iyk++YdaPWmvM0u/PV14uGEgSzvunFcLkVhxjvf2pSwbjKD+SrAGP8nClQyDvH35U9FQB1SINJnE1YphASzjMRY1g9YCZkc3rYxMnvil7o98vJ0K7KDoLJsggZ2/+cT8HvnYTbo8CQ0M+hycXoGV3uud6HnguWOGdhMRX+J0Q== 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=abtaZqULydm75BNQEh2FhQOh7Ybi60+oVFGjOUDT/i0=; b=gMLe40JyrhFD8Xh2fBQNzbBrDOdJwIoYg6Urr+TcwM3UflRzUOMIkatWHC2VPtenrwz/Po6HjV5wA+/ATjTa6sepdbrv79E+yotJ4pC8lGuiRL2xTX5YVCVl+fNi858r+Qyn7H5UWAufKcFv5ooMKewSSo3tnU1flfbFyIhsLU9Jq56lmJdThDXE+5iodIxWczTnC0+TOoD9NByRtHcoNnzA3vdtj2JMQYmxZAA1CGUIK1q+hJoojUjVQd6fIs2Strl8QSwlp3r586lmNtyWpnv1ssS9/wPrP/A9ip2ABhX54h8El6B5vIBj1zK/7rWsbBAoHQR58+XEjI6s3ly4nA== 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=abtaZqULydm75BNQEh2FhQOh7Ybi60+oVFGjOUDT/i0=; b=d4VbUIgpVX+AofZJXz6JY9r8CyM3dfGDCUyOdt0SBjjPnY2dFhXj3CJx7nWKSLTVpcz6uJJGZRGTKiENAAMvW4LbQiF8MYotN0RqnA9PBUx+cfGYBsspGTOONgzhSefg4oCZh8yZ1AMd9xxDgxR5io+zv8N2VGO+Rnq5pRSWAbg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by PH0PR11MB5595.namprd11.prod.outlook.com (2603:10b6:510:e5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.7; Tue, 11 Jan 2022 17:14:54 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4%6]) with mapi id 15.20.4867.012; Tue, 11 Jan 2022 17:14:54 +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 v9 03/24] wfx: add Makefile/Kconfig Date: Tue, 11 Jan 2022 18:14:03 +0100 Message-Id: <20220111171424.862764-4-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220111171424.862764-1-Jerome.Pouiller@silabs.com> References: <20220111171424.862764-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN1PR12CA0099.namprd12.prod.outlook.com (2603:10b6:802:21::34) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 341c80e0-8419-4c5b-47a2-08d9d525e25b X-MS-TrafficTypeDiagnostic: PH0PR11MB5595:EE_ 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: 3vPyISXC2IlhOI7qzN+7sx+PXdnKP7KnHbc9Pz/skDcb34Qqx73y3BjMMlWXqUWUEm60Ldx9OSJb+MIJ2IIisN6JCcL27ftKhmM3XMOstIKj8oP8QlF65SE6cEqD9uI8xVoFyK8nZ/U0xDT1vRdQtLXQvNV1lpzKuYXx2nTT6kEHPieokzaAerE3AlNqurLg4GI2Mq1wVVmUaRtwwizeFt7FlshnqBWK5fa4Im1gQGTRmGhr0q4Sh/VG5ryKzCOrG+9N2DV2ZQSmBxfiRdV/oEYZJSmHswklxYnH4baaWVfq5eV6KR8YRV2Du20JhEiU6zItucQDNXS367ySI/szWbqrBmHvF4Tc/lAU7OsSMWMi8EK/8tAmbwcN3XFcvFCXG12D4RrOKOPh15yY9z5ULsU/SMl49KYBL/OH9bVAyZSkpn/4iabmUnj2t0UsriZY8/uIIn0O74bVPdyiJygv1uiIi7bdvEBzNVHwd9PthQnxhbz8sJBd4gbFZYV+qQvHsjiBWOD0SLKoVmmPp9rPX/GG3U2Gvy+9dG5B7tsEsF6QhCL58Za1KHh2SSnQQoj8eJFReMphiIrpFvsnFNPPC5yUplthFTkMSm8rDQ246w0lS72G+QFi1vcBAuAFLoEBVLXcbu+dacu698BIT8S3yg== 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)(36756003)(66946007)(6512007)(2906002)(107886003)(66574015)(8936002)(2616005)(7416002)(6666004)(38100700002)(6506007)(4326008)(66476007)(8676002)(54906003)(6916009)(316002)(66556008)(52116002)(86362001)(186003)(5660300002)(6486002)(508600001)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?z6Sy6Zrjwc6S4uc2tOtTp8Elo836?= =?utf-8?q?bNVDa3Pl1AsAPjgRpWQxSVEcFcvxZzZJegBd4XjnQiBoxNeBf1QT6YmgAMOcG8B18?= =?utf-8?q?wJYs9gAiTzJPM6MsLgRVir83XINRjb/cBBf2ztn8oVISsaiH/71DqmX5MI2gP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yysRFR7Y?= =?utf-8?q?tlO0mJX7ItdBu0fVGjj/vvjvyfZJ0iVNwR0+9uOP7g0KTgE4Ns+xfRo3GAdICdZtA?= =?utf-8?q?s6tNy6MrA+6sXoFaYjhATD/BJjltzjrqXu5WikqJIrWPRdTf/v619GjEXiUesT54/?= =?utf-8?q?d6LXuKu+2zbhGzfkEzkaYiMtcexbQDCXCh2+ORdggM6fmwZ8+VNgd3WDOnCOxdBRx?= =?utf-8?q?CT2/e4idLuR13HNrJNd7RCYWE6JpkxKw8pIJ+qj4HRCZgNStCUzHbsC2NzoRHpQQy?= =?utf-8?q?3+6DyCygJ5EXB95sOvDMqF3qEubhe/wgDMX8Or10xfXSyUSpBskbE+5Y+yO8dJ9ui?= =?utf-8?q?s7sGn4bomYarQlorNppp1NZ9maX1fOOWIvpd5dgfb9WklaThiJ1LbgzRs+DFSa7Ai?= =?utf-8?q?Zm3xLZEMzKAO+3kUY0TA73OT0weNe8uxEPS7JRk8wWX2CrDALz+VTDyKa5IX4rIDy?= =?utf-8?q?un0yAGR7TSqlqpnDC0Ml7+PPTOrvEXBdmYv1EHGocaviaMTn3sW1qC2sfagZmgwse?= =?utf-8?q?AxJhDFtRAPEfq33WJf1eGmXTijveXg3Krdxsj1rxxXllqYBHb7Y3jNi+gZOhBBw/t?= =?utf-8?q?bmqcKoyxv40vf3JYJ5cyIcWIPZaThYkVFk8SXCp15d8ix6prKqLGXU=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 341c80e0-8419-4c5b-47a2-08d9d525e25b X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2022 17:14:53.9805 (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: 74wuiWRYCo4KJdqeGIr0y99dtiLoTS4RajljVP/Zq8kSinUJEdl4fgHV1KUz2O/sdes2NKYMwR+sMA1pZX0mvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5595 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