From patchwork Fri Sep 17 15:13:37 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: 12502483 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 X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AED3C433F5 for ; Fri, 17 Sep 2021 15:14:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 128EA61244 for ; Fri, 17 Sep 2021 15:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240664AbhIQPPq (ORCPT ); Fri, 17 Sep 2021 11:15:46 -0400 Received: from mail-bn7nam10on2080.outbound.protection.outlook.com ([40.107.92.80]:7236 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239752AbhIQPPn (ORCPT ); Fri, 17 Sep 2021 11:15:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A3HI8gj3jpWHUn/23jZRP/8Dl7QaYyaw2qX75h4gkkCR5OHlD/Kva2oIYR1i+iQnbfyfpW+cWgFCWomHfzo4oqpZ7TAm2kH/qO1VOpop8PTNg4qmJWBtTWCL9BkAShjUSRiueuRZyA6CnSUreT9gHHjAyWC/YC4bWdso40sxHWgeRa3dYv5d44V+2qSdsL1VL+KD1pBaEbZ1UIe/Li0/ZGpm9oogx6HgpguE4fiSsjXcXrHj4E+HrI1IDLPNInsLK1So30I3yoTsTTt1yfvLErm3iKlsW0zmcrBRFTusUFvddR/bftH3ZqYoS7euLAQMMVejE1J8vPWI0vF+KfvJbQ== 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; bh=IyY90r6QMFMHTI+VFb7nrT6DVJW15/DHuG0/svc2nKU=; b=oa5yX/JTR6Rd3SUru1cljjqcRKDzvttKAVDfvRE5VcZlgTAz4Nz7t9jRx3WuOq1qiltIXpKHyCUH9OASx2tPqutQ6wS8v24ThJCOnhn/5j56TVB8JRzkahZI5Dhoi6XGCxID+kzKM1BfXObZU4KUCM1XXuMzu35m/TuzQMcptqNUb+Bj4AXNry+NfDCya36lx7F+d04KvyruCZAIq+xPV+wsj1lXyYVll9xx6Ew8Z62fzIkHAPcNe5gdPRgy4hbzx8xU1KBDPuoNVueGoSwO/Z0ET+k+W+dnmkXPclaewIKzH2gFKcAV54Eflmrl8scgTx3KEpwAS7nCiH5W3uHyWg== 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=IyY90r6QMFMHTI+VFb7nrT6DVJW15/DHuG0/svc2nKU=; b=C1Ns9MYywu2jIrBM6k+YEfRynt2tcTdZ/65TEMpC+e+/qhlUrW4W+ycOhY59wtNxnYJBtxFs1oib+xcIZgkLbLGbuFjLWct9YUHv+YTQxR5yglyuvGeIOfuEy3yUkmS87JGxitQpACw/Mgs6P77Y0XMdW89NQNqjQfdNcVnacws= 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 SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4574.namprd11.prod.outlook.com (2603:10b6:806:71::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Fri, 17 Sep 2021 15:14:20 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 17 Sep 2021 15:14:20 +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 v6 01/24] mmc: sdio: add SDIO IDs for Silabs WF200 chip Date: Fri, 17 Sep 2021 17:13:37 +0200 Message-Id: <20210917151401.2274772-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210917151401.2274772-1-Jerome.Pouiller@silabs.com> References: <20210917151401.2274772-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SA9PR03CA0029.namprd03.prod.outlook.com (2603:10b6:806:20::34) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SA9PR03CA0029.namprd03.prod.outlook.com (2603:10b6:806:20::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 15:14:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d36e416b-c293-4736-b508-08d979edd2d7 X-MS-TrafficTypeDiagnostic: SA0PR11MB4574: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OAqXbcb+ojDT6ibvTKQdiZYhKkig7AaTxfGuDKeJihBD2//9zW/FAf5HZQmPM1KIoOps/zs4xRx9sJdQ/3GjcBCgxp5liYPJ/2qOBOTRDrixzFcnYVu3jZy+h9wk+h195QkjjeNq07SJv2nVHJZ6M8bg9tnzAidamDGc87vVDAcBMdTKM29wHiz07aNtNMd0I3LNQ1Dl6NJVFpBq0fzxqHWlbGJjowA3HCRCnCcODa+325PWkFTbK9Lr96ioyd3GMPJJdKv4hOQaEwi+3eWJ4UedNL2F7qdaPhxv/RDG/dZ3TDC/Moisp6rYSfeIDG2bxoCccKRaHovqeoiDwj1wirVcC1LCLGbXj+qs0/NibAN8ej+eTwT5cn++VrMl/EcNXYQ55LRJndbwNq4pPRNpWzDBoi1IwtDutdu8e6tiTiQD0/DGH6UL4vGXTVB20uw20ziZg2MsWioB8BCY+7HGW+PSPAvwszhKgrbGdGKlsMc3nAOe9xKxpEIPzROA/42Us0jS4B3mgfDT3cmN9ocDFnqDSZVzucFMZ1HiTetwIoqgYPC1S6GUo6fPXOolrG/tGSIgUMKwgjITFf4cdREF65A9sKy/CsttUcVfT28ySn2imi9vIna6uPEq94WKVD6VclOD9Udj7hfaOde+S1ZnFQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(346002)(376002)(39850400004)(396003)(366004)(52116002)(6666004)(38100700002)(8936002)(7696005)(478600001)(6486002)(186003)(7416002)(86362001)(5660300002)(54906003)(66556008)(66476007)(4326008)(1076003)(66946007)(4744005)(2616005)(107886003)(6916009)(316002)(36756003)(8676002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Chhwi+VZttdDfmsNKwOskoVMwvNm?= =?utf-8?q?PYEejFtCf5OxXTb2bNSjE9eqc5WNZyKh6oV7ACIdVQhSPL+4Qf4SS1Jxx7qWUA8Nt?= =?utf-8?q?U9p1c2CCICVX03Ub43hant4XEWhhXkhklCJjA9pBY03fCY6BpRhvlzj3u1WRFzoV9?= =?utf-8?q?lzgJ3/5AH6oaMPdORQmniXHj/hYkqd7NAK39VWr+E1haZW3LwN6evSUimcuEVT+vi?= =?utf-8?q?phymEzRbeA33i4UnvjWKt7cWaMiOMtnLcECb7ueGCdOKRoH7f4d8G6eSlD8SlFuOb?= =?utf-8?q?qbqXCbHjTwc7+pokRurHrflbC3qzOSLR2KLPnE3qdgTDmnXIeJxw4egqYlCh3LldH?= =?utf-8?q?oJxwQWH5Ancrg7eGCbdzIZLaSf28j9YQ6i9K2rZqCsIKE0gnI5GAPOdHZPHSRBeMz?= =?utf-8?q?3U+kbgL049hlytmwlZHrSZ+yIUPKcw+buwMz42AvnWyHzeRhWXx69OIHXfsWFvUkQ?= =?utf-8?q?giIspVelOGPZoBqlGx1PtfI5gCNgVzTVU8ZPXnveDBd0ox6A1YhlL+3ZH37T63KjA?= =?utf-8?q?MURUmKGkj5ynFyUApcjPXnIGgeztqlxsuN7G2dt8fEbcQ6JpofgEcKT4vTdOBLYLi?= =?utf-8?q?bnx+O7j2TQOdY7LG9YfSCDOel7RRQlsPnulDmu/gUyoTyBfYovpfWNMExZoc+aH+W?= =?utf-8?q?ANzOqX5NeWZ647Vd2J3V3zpKEjx+ij0zd7pGQ9sT8vJYU29BXwJa6szcwkjGO4mN/?= =?utf-8?q?yjF4YhSCAAPmqNnReuTmFUB3sCkhj+piMIHwPKI5p47h6/oGEFkbmanEPHimEG918?= =?utf-8?q?b3zNfqywzhFLn3WM7LLOHTzIYojRAMVHjKUK7ZPK9Lr6XNSeGJNHMUKIAxz8rLwdk?= =?utf-8?q?Y0JhYmLaQ+CmdfdgKQA+eTbZvHsc2rc15GvdAdKMPkCwSg8WmPURCpIwkpALZVUYx?= =?utf-8?q?s4Ic8HvZjOUi0a2BAtac9HVSKENY8Cn0P+gJxyXqvEhm1u6n0Xuqjz9wIQnZd/req?= =?utf-8?q?2ATuzLV/NgAu/lxoIph9io0MHZvazxfa9VExphccVLss5fDPZgosRzgDRtN3U4m5y?= =?utf-8?q?gPYbqQYfDvQTuP6wHh+5VxE0EMnIEUmtMrBE+IxJah/+ILqrHOJn5o5w/FkzLM0Uo?= =?utf-8?q?WejDf+HXoxr0gRUfapOYiKZwjU69lMoZpISMu/0ief9my/Bb3MOVO/llZ/YieV0ka?= =?utf-8?q?RSQ9mFDtWYOxzYiCyrsI/2vZsL8/eGEEuRFrePk3jAYpOFF5tIcdlEu+0uEDma7rp?= =?utf-8?q?FRrbkKQrgb7qDDgYEwHj8ED1TgWMDtZHXgsbXILURpkthyN28n/bdhlgLR2JHeA2/?= =?utf-8?q?mZ14v+3FLa9+E5eP/tZ/ZBCZYkrnt+lB5exMVHysB1ax3depskcMj1nGsPe4EShAz?= =?utf-8?q?Ky0/pITehkCh9Xk?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d36e416b-c293-4736-b508-08d979edd2d7 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 15:14:20.4405 (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: InzAz1yELfrw2LlXFXv8TtKszzB7/i5rbm5ye3yA5DTbFaBLvJa+xXU9JEN6SffdNHnvEPTREMC6LyCgmBDTlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4574 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Add Silabs SDIO ID to sdio_ids.h. Note that the values used by Silabs are uncommon. A driver cannot fully rely on the SDIO PnP. It should also check if the device is declared in the DT. Signed-off-by: Jérôme Pouiller --- include/linux/mmc/sdio_ids.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/mmc/sdio_ids.h b/include/linux/mmc/sdio_ids.h index a85c9f0bd470..483692f3002a 100644 --- a/include/linux/mmc/sdio_ids.h +++ b/include/linux/mmc/sdio_ids.h @@ -25,6 +25,13 @@ * Vendors and devices. Sort key: vendor first, device next. */ +/* + * Silabs does not use a reliable vendor ID. To avoid conflicts, the driver + * won't probe the device if it is not also declared in the DT. + */ +#define SDIO_VENDOR_ID_SILABS 0x0000 +#define SDIO_DEVICE_ID_SILABS_WF200 0x1000 + #define SDIO_VENDOR_ID_STE 0x0020 #define SDIO_DEVICE_ID_STE_CW1200 0x2280