From patchwork Tue Oct 5 13:53:44 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: 12536817 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 1F00FC43217 for ; Tue, 5 Oct 2021 13:58:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 081EB6126A for ; Tue, 5 Oct 2021 13:58:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236623AbhJEN7r (ORCPT ); Tue, 5 Oct 2021 09:59:47 -0400 Received: from mail-dm3nam07on2072.outbound.protection.outlook.com ([40.107.95.72]:52448 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236483AbhJEN6d (ORCPT ); Tue, 5 Oct 2021 09:58:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aF+GTNUT0TJrv7VRWGz/4O1e8DREFdfljkJGftEu3xGas1CfTf4kGqh8Pzvdwge0Bagdgk3j5RF+CErvjR4UCVx0qoH8dnyTHKNX3Uj3dJXmbr107qwJ4morqNWZgnBt/LKtJW4PLjPrgcdC9qouhM63U/unzQEdpu0jAefDqSsKSzeI5E2Lceh3yCjWjy1Ly4ESBj+SW8m09A2VlwufDgjHTutYomOwhFgTTJYsCbEkYmiYnjYAuZaTUYfACGLEsdic3hf7ZuWNBWg70+kvm586M40yDwXyxuJj9XcYSU/HZA4PPZUBtpve0hJSOZnhtAsjotn4g8b3YsyqrFFm2A== 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=iwSZqDpQit+YKHH2xx3fIcR6QfR470w8Irwg+O7hvkQ=; b=BwidG633rbHdB96F2icEbSvGlBh2uKmKSYWfoV4rJDwHwoWWmk3rbniedCYZnkMU7J/8wRN0Ox+U7vkB5TBB7wyp7KK1I0qGnopcQNVfsiUOO+IecSfGNz2O7RjkqljEo/bdnx+A6ZpcSXTzis00G6YqM4Df0TlkBPGLT/LFsW0oKgtQBCPZ8cHgzpSUIXIdX8tfjuoQtmAMmUrpi8kCND1/nBfe/AXgasjfTGOFZEdNzhzTowjdIaAh5Fnm+aUjsx4pszITss5rcQsQPJY0Pfu1QOMHsx/jJ2RfkCE4stBkwkjomtmJgglLLLa3bWhBiUeSXtci8hfMJeMJlxm+cw== 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=iwSZqDpQit+YKHH2xx3fIcR6QfR470w8Irwg+O7hvkQ=; b=IBWbHxcxmV8LPIBj+VFxMVxNgpaK3ITZRvTiKyRFEZoD4b2/c6O6YIsX++7eqX+icHy8T33u3b0XNFJMrLLSlXzqnxrWLux9HE3WOLtEF3vBo0n4oGsIcRbRjPwk84JV6ShCZ9wwGH40rsWhHIEJKT4Mn3SCYRt9mOCr5OmNh7Q= 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:43 +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:43 +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 08/24] wfx: add bus_sdio.c Date: Tue, 5 Oct 2021 15:53:44 +0200 Message-Id: <20211005135400.788058-9-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:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1509636-94b8-426d-b2e8-08d98807aeae X-MS-TrafficTypeDiagnostic: PH0PR11MB5643: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fBHKIAS6atT8iE268ZK0VCkU3p2nc49jxMgumBMxsAHwj1IEvzHxY1may9sgQGHwZi+4aCSzg9UgB12KTuQt0mYFyyzSmFokxyXRhuKMcKanwgCqFpvQZPaWpxyZDiTmDJz2THA4KOgju0VESQD62+CAiPLJofUg4EraXKxt9D5H5DjDHGNwkenuh2HmWkUJwBN4u5sRsvctCo9atbIk19HIA78GsRT+xujbFgOUlpj6s0LrG0fv12OYZJkHCcCxHBiEt/ELPjbEVwkhGRinMUVy9RS8LCk3AZFgCWW14nFkEvZ0qfVKo83heo1pOGORPuXTBS/kozucU+/ByisNWN6ayqj2XA6ebDX8H1SAjNDahk8/f8O7HZQ88gsj5qgJiUlml/NxDtGAIPlFxvJ+pAn65A7Ad4PjVDpMmQNdfDiFxgkq2IVegSxj0jjCuafNra3uXosGY9akzqWFTWvUx7Eb466DHuoDo7g0vj6K3E20cH0BLI0969bN2WbczB02haXP9fv8h9MX4uK8MV7B6Ls3LzpOJBkXVN9cru1I5gf2qyxfsX3VRKxTgsJqkWTpYOnp07MvBO4F4XXMPgTgoa9zm6MeWlAz9M3+78xJ0F/HJ/zcu4DHDlFOb/NPmytUFfUboTWpcdB9YBJj+U+K3tpMnLigwGAfJB/6h/n4DikTFnap+ZPRdNXsq6b03Ay/wNNlcBR8xoXOWWRAaf1SQw== 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)(83380400001)(6916009)(5660300002)(38350700002)(66946007)(66476007)(66556008)(52116002)(7696005)(508600001)(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?7XU3zwgrTztCv0/REgulPF8G3yTa?= =?utf-8?q?Ai9RZzTDYU+PDucaJ/+P6p38vzDVcUhJ4T/ymdEWXySZ/YMeoXJprotWBFvJAGKR6?= =?utf-8?q?U3mPpV4IzjNvZT3pDIUTfzRQIGTccfYkOt844qvXBpdgz1EJbjTRugX5CJDcr3WqX?= =?utf-8?q?YXmfhTkw+KWNB97uuKIPVxEz8b6D2vPeuGmH/aGYqvdB20U5FApOASZPLHJhoREQY?= =?utf-8?q?X62AlClXrimHih81I0dM3ISeXXZw+ot93oRr9WARc5rqTikA2z7IUBCq2Ic4xm277?= =?utf-8?q?w/A8RkWyRzyYe9BmcQDmK5C2jWx3EUByMWS1dAZ5P/AA9DjdK4Om95mc4u3Dy6diz?= =?utf-8?q?zNSUeK+IL70OoWqbWEmfVEFWAixTZOcIUDZ9QdwmYSXSICnZziXygizWFBgHsxn2z?= =?utf-8?q?9TrlmaGI7FWrhKESZgNKJtJWJsut5I/R1vzWi8KcB1vk4S0zEYiakflq1VXNJXz3/?= =?utf-8?q?FE/0sq/cOuK3qPz4Hcp4hMc5BXsFHUHpaWztq0kEjSGngLTPOqVUY0kztlzxVkouw?= =?utf-8?q?vX0xMdYdJvwyZMOpSMxFWV9pkCm48SXVUJGOdAmPkosiLHNG+4CCeRN3Uc1VQBTlq?= =?utf-8?q?jdevGscFnUWXvFH7JNESUDD93BpHvAmlwi0YoWDWfrkXBRD3+5yH90e9MVbUMmdb+?= =?utf-8?q?NoSKznYmLZI1TTSlYEXRaijobsV38MydVpCmS+n/+8BeGEwP+OYUutlfzk93wg8dL?= =?utf-8?q?I/+DM/U0R4jaBFXk/t0zmkRqJPOh+ngvbSeoCw0baFH8Xj3R0hkMHwRM/E0PkKmNf?= =?utf-8?q?5lCUlKBFw5ulQbGs9Qc5cexzM1ecYg17gMPCdGVhEvvwvewuhBb5jiuNMPhZ9wEcL?= =?utf-8?q?SKtnbTjbS1XHLWYJxs/AYmIvDCDVPBHbKyjzNjV5BRcAtJ/KYrJdtyusxbv5C5fvI?= =?utf-8?q?ec4jsigPTPwkAhb1NxXCLrJJHDHeXCpSvN/JjgDkWNT6vhzDN0HB19Lexg8a7nN3R?= =?utf-8?q?lg2LUAIKuF5ck4ABux2lzET3+kGgyJXnU1NLSJEwGqhJf/747JhenVB0ejvDv6S+7?= =?utf-8?q?+eu15eFIRal8giTmpTyMaLx6VJudkRkzvKBNnUj40X8Sfjfcc/B56/XXfLcjiqk7F?= =?utf-8?q?ZZRNNoTgOnzXXyC3PpfBApnniqHbH38+w4P7st6L490BD1Z84OTPgv7kZF9oD9ZoF?= =?utf-8?q?ojWqvmRpJha0lHltVBFm9EhTautODavTnCxgnzfETWS/mrcu315dAgmjzPhXotr01?= =?utf-8?q?QsTcA9146P3DIc1j8+HPBt3UkprIeHwi3WTuk9SOJt55IfnvCXmOV8VKSfrr2OUHa?= =?utf-8?q?muCHJmiTOPQfTzDN?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1509636-94b8-426d-b2e8-08d98807aeae 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:43.5081 (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: oEYp6IX+jQTLkBhO3wJ7U8L+vOurrEYQe5wriCXpJaIztDzuh/E2w0OTxNi/5ThN2bew8aqQMdMYAZ79myZRWQ== 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/bus_sdio.c | 287 +++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 drivers/net/wireless/silabs/wfx/bus_sdio.c diff --git a/drivers/net/wireless/silabs/wfx/bus_sdio.c b/drivers/net/wireless/silabs/wfx/bus_sdio.c new file mode 100644 index 000000000000..b25c795c98c6 --- /dev/null +++ b/drivers/net/wireless/silabs/wfx/bus_sdio.c @@ -0,0 +1,287 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * SDIO interface. + * + * Copyright (c) 2017-2020, Silicon Laboratories, Inc. + * Copyright (c) 2010, ST-Ericsson + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bus.h" +#include "wfx.h" +#include "hwio.h" +#include "main.h" +#include "bh.h" + +static const struct wfx_platform_data pdata_wf200 = { + .file_fw = "wfm_wf200", + .file_pds = "wf200.pds", +}; + +static const struct wfx_platform_data pdata_brd4001a = { + .file_fw = "wfm_wf200", + .file_pds = "brd4001a.pds", +}; + +static const struct wfx_platform_data pdata_brd8022a = { + .file_fw = "wfm_wf200", + .file_pds = "brd8022a.pds", +}; + +static const struct wfx_platform_data pdata_brd8023a = { + .file_fw = "wfm_wf200", + .file_pds = "brd8023a.pds", +}; + +/* Legacy DT don't use it */ +static const struct wfx_platform_data pdata_wfx_sdio = { + .file_fw = "wfm_wf200", + .file_pds = "wf200.pds", +}; + +struct wfx_sdio_priv { + struct sdio_func *func; + struct wfx_dev *core; + u8 buf_id_tx; + u8 buf_id_rx; + int of_irq; +}; + +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, + void *dst, size_t count) +{ + struct wfx_sdio_priv *bus = priv; + unsigned int sdio_addr = reg_id << 2; + int ret; + + WARN(reg_id > 7, "chip only has 7 registers"); + WARN(!IS_ALIGNED((uintptr_t)dst, 4), "unaligned buffer address"); + WARN(!IS_ALIGNED(count, 4), "unaligned buffer size"); + + /* Use queue mode buffers */ + if (reg_id == WFX_REG_IN_OUT_QUEUE) + sdio_addr |= (bus->buf_id_rx + 1) << 7; + ret = sdio_memcpy_fromio(bus->func, dst, sdio_addr, count); + if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) + bus->buf_id_rx = (bus->buf_id_rx + 1) % 4; + + return ret; +} + +static int wfx_sdio_copy_to_io(void *priv, unsigned int reg_id, + const void *src, size_t count) +{ + struct wfx_sdio_priv *bus = priv; + unsigned int sdio_addr = reg_id << 2; + int ret; + + WARN(reg_id > 7, "chip only has 7 registers"); + WARN(!IS_ALIGNED((uintptr_t)src, 4), "unaligned buffer address"); + WARN(!IS_ALIGNED(count, 4), "unaligned buffer size"); + + /* Use queue mode buffers */ + if (reg_id == WFX_REG_IN_OUT_QUEUE) + sdio_addr |= bus->buf_id_tx << 7; + /* FIXME: discards 'const' qualifier for src */ + ret = sdio_memcpy_toio(bus->func, sdio_addr, (void *)src, count); + if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) + bus->buf_id_tx = (bus->buf_id_tx + 1) % 32; + + return ret; +} + +static void wfx_sdio_lock(void *priv) +{ + struct wfx_sdio_priv *bus = priv; + + sdio_claim_host(bus->func); +} + +static void wfx_sdio_unlock(void *priv) +{ + struct wfx_sdio_priv *bus = priv; + + sdio_release_host(bus->func); +} + +static void wfx_sdio_irq_handler(struct sdio_func *func) +{ + struct wfx_sdio_priv *bus = sdio_get_drvdata(func); + + wfx_bh_request_rx(bus->core); +} + +static irqreturn_t wfx_sdio_irq_handler_ext(int irq, void *priv) +{ + struct wfx_sdio_priv *bus = priv; + + sdio_claim_host(bus->func); + wfx_bh_request_rx(bus->core); + sdio_release_host(bus->func); + return IRQ_HANDLED; +} + +static int wfx_sdio_irq_subscribe(void *priv) +{ + struct wfx_sdio_priv *bus = priv; + u32 flags; + int ret; + u8 cccr; + + if (!bus->of_irq) { + sdio_claim_host(bus->func); + ret = sdio_claim_irq(bus->func, wfx_sdio_irq_handler); + sdio_release_host(bus->func); + return ret; + } + + flags = irq_get_trigger_type(bus->of_irq); + if (!flags) + flags = IRQF_TRIGGER_HIGH; + flags |= IRQF_ONESHOT; + ret = devm_request_threaded_irq(&bus->func->dev, bus->of_irq, NULL, + wfx_sdio_irq_handler_ext, flags, + "wfx", bus); + if (ret) + return ret; + sdio_claim_host(bus->func); + cccr = sdio_f0_readb(bus->func, SDIO_CCCR_IENx, NULL); + cccr |= BIT(0); + cccr |= BIT(bus->func->num); + sdio_f0_writeb(bus->func, cccr, SDIO_CCCR_IENx, NULL); + sdio_release_host(bus->func); + return 0; +} + +static int wfx_sdio_irq_unsubscribe(void *priv) +{ + struct wfx_sdio_priv *bus = priv; + int ret; + + if (bus->of_irq) + devm_free_irq(&bus->func->dev, bus->of_irq, bus); + sdio_claim_host(bus->func); + ret = sdio_release_irq(bus->func); + sdio_release_host(bus->func); + return ret; +} + +static size_t wfx_sdio_align_size(void *priv, size_t size) +{ + struct wfx_sdio_priv *bus = priv; + + return sdio_align_size(bus->func, size); +} + +static const struct wfx_hwbus_ops wfx_sdio_hwbus_ops = { + .copy_from_io = wfx_sdio_copy_from_io, + .copy_to_io = wfx_sdio_copy_to_io, + .irq_subscribe = wfx_sdio_irq_subscribe, + .irq_unsubscribe = wfx_sdio_irq_unsubscribe, + .lock = wfx_sdio_lock, + .unlock = wfx_sdio_unlock, + .align_size = wfx_sdio_align_size, +}; + +static const struct of_device_id wfx_sdio_of_match[] = { + { .compatible = "silabs,wf200", .data = &pdata_wf200 }, + { .compatible = "silabs,brd4001a", .data = &pdata_brd4001a }, + { .compatible = "silabs,brd8022a", .data = &pdata_brd8022a }, + { .compatible = "silabs,brd8023a", .data = &pdata_brd8023a }, + { .compatible = "silabs,wfx-sdio", .data = &pdata_wfx_sdio }, + { }, +}; +MODULE_DEVICE_TABLE(of, wfx_sdio_of_match); + +static int wfx_sdio_probe(struct sdio_func *func, + const struct sdio_device_id *id) +{ + const struct wfx_platform_data *pdata = of_device_get_match_data(&func->dev); + struct device_node *np = func->dev.of_node; + struct wfx_sdio_priv *bus; + int ret; + + if (func->num != 1) { + dev_err(&func->dev, "SDIO function number is %d while it should always be 1 (unsupported chip?)\n", + func->num); + return -ENODEV; + } + + if (!pdata) { + dev_warn(&func->dev, "no compatible device found in DT\n"); + return -ENODEV; + } + + bus = devm_kzalloc(&func->dev, sizeof(*bus), GFP_KERNEL); + if (!bus) + return -ENOMEM; + + bus->func = func; + bus->of_irq = irq_of_parse_and_map(np, 0); + sdio_set_drvdata(func, bus); + func->card->quirks |= MMC_QUIRK_LENIENT_FN0 | + MMC_QUIRK_BLKSZ_FOR_BYTE_MODE | + MMC_QUIRK_BROKEN_BYTE_MODE_512; + + sdio_claim_host(func); + ret = sdio_enable_func(func); + /* Block of 64 bytes is more efficient than 512B for frame sizes < 4k */ + sdio_set_block_size(func, 64); + sdio_release_host(func); + if (ret) + return ret; + + bus->core = wfx_init_common(&func->dev, pdata, &wfx_sdio_hwbus_ops, bus); + if (!bus->core) { + ret = -EIO; + goto sdio_release; + } + + ret = wfx_probe(bus->core); + if (ret) + goto sdio_release; + + return 0; + +sdio_release: + sdio_claim_host(func); + sdio_disable_func(func); + sdio_release_host(func); + return ret; +} + +static void wfx_sdio_remove(struct sdio_func *func) +{ + struct wfx_sdio_priv *bus = sdio_get_drvdata(func); + + wfx_release(bus->core); + sdio_claim_host(func); + sdio_disable_func(func); + sdio_release_host(func); +} + +static const struct sdio_device_id wfx_sdio_ids[] = { + { SDIO_DEVICE(SDIO_VENDOR_ID_SILABS, SDIO_DEVICE_ID_SILABS_WF200) }, + { }, +}; +MODULE_DEVICE_TABLE(sdio, wfx_sdio_ids); + +struct sdio_driver wfx_sdio_driver = { + .name = "wfx-sdio", + .id_table = wfx_sdio_ids, + .probe = wfx_sdio_probe, + .remove = wfx_sdio_remove, + .drv = { + .owner = THIS_MODULE, + .of_match_table = wfx_sdio_of_match, + } +};