From patchwork Tue Oct 5 13:53: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: 12536855 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 6D5E7C433FE for ; Tue, 5 Oct 2021 13:55:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 552B0604D1 for ; Tue, 5 Oct 2021 13:55:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235902AbhJEN5A (ORCPT ); Tue, 5 Oct 2021 09:57:00 -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 S235485AbhJEN4O (ORCPT ); Tue, 5 Oct 2021 09:56:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LLeJt8XUQvqSlON1Hma5rGFztaV+zbK/kxKdP6r+rj/GntsObRX9AUobl9FUsPRmJNee5W1Rst8jl3aHwYj9gIULpig3UGba3JOewCMrHmT32t73fjGy5urp6ud327kmQKoJkw61vV/fEzKQrBLfvsp2U35RkJnazRfudKSTa+YB9PCr9dyp4FkB5K542NUdG97zbYmzXc69AnVcKPSsl8SO2fFi7Pqsxs4sNl8hZJZOqLzQ8T5bhxXDxa8EbCFaNIoK46yL1E+TQEwaF5Y7ym4JlLV3WVjSpr+fQMg5cCtsFoyvUdU3zQ9Yp9iFDqFY0O4k3adhcMUF2LqGGX535Q== 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=IyY90r6QMFMHTI+VFb7nrT6DVJW15/DHuG0/svc2nKU=; b=BAPJlNLTNe5IMm8FSHnRyttP04KnM4jCwtYFJC31rsyivf8IAUFztIznU3BleHepyyfANX0wIY21wl4ZYBJTGHvd3hj+8245wLaRkKN2zZoOmcQJ8C6pLlkqIqZCnDfINFFM38bKY0a6QyymqArLtoL50xcajL6nMmw3x06D3ivERlGqyiKlG/Y93GV044pQ5xTX2+xAQmHYAVhwB9LHAWzP2LJQlWEaJs18mmbStpN/p2yvDgLMVIiJpvWnbIsWHNNcnUykuAC1GZp1zH5Uw6jmDvX0BZgvSwB8tbgaepQwnFFBdjTWCWw+LJtqtO5fawNxwPGsrTNOCbQnnpb/Dw== 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=R01P38XZSBLcVY/65QW1JX2dsN6HPvrXLy5yrCe0agSivILUfrG/IB27W3sV6SpRz1eaRrtho2tbLWQvQpmcOKmrQOB85zDKmCsahdw+sajae1yjvw/ugFaVmhjQWyOdv+wDnQkv/nFRuKkV2yH2eWWW7x8+SQpc9+SuXiNjHk0= 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:22 +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:22 +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 01/24] mmc: sdio: add SDIO IDs for Silabs WF200 chip Date: Tue, 5 Oct 2021 15:53:37 +0200 Message-Id: <20211005135400.788058-2-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:19 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfc93fb3-a266-4aa2-225f-08d98807a23e X-MS-TrafficTypeDiagnostic: PH0PR11MB5643: 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: kiMVW1NA41GtfWmADX55QOmxS9nyRnDiW1F7K8S5lvYtsOl8QU3glTDu5G4Se7G0Spb0lgzELtDzYToGtJ0B4CoxhgEqfy6ht/f/LGUmtP/1Pldhbro3a1IWWvw2tV0eyIAP6482pLLvDOvpBABai0943LfBqy4AcGsLVtw6sVpLqQv6Cu7kuYvbwHXcb5nmvDTF85vKJQ2LAAC+LqLq+6Z336QS661ThRasxvUWD5o/+/1BGqiZ2gCq+MqIQTNKLX7MCAwhZa4C595Nn6p6w7WSd4TkSWKwJRdxF4peqB4VuGaNGgnds8RwJlYVlxjkhT6SlYgKA4Xvf+8THx2hS9my3gGJkSj/1Xc7q5xpohKigGOFsDlrTIcZUISk7FgOhbsfLjqqVGxoGxQyfq/+eZOopz90mjrnbn9lo+LK3HbEXNPrsMMDQj9m9Q0PX7krS/Xa50V9Uf26dPOjsahJyEjWfIAU33j15atie6nHxdrx0BB7/5rVqmdMjuevsYXKBq//0qKP0WFfJUXihbzenhG9iEbbfpgcXVVQxnZ5NKmix7NMxIl7yfXoM0kl5KYNXUkd7r90paXA2FcMCLpBFDcZjV8yYwl+l/i9++B6a7RXj7q65pePVFuZekl90cjKm4IG3wiZzAZ+A8RqmpGRwLyAZsLUII9kilOmA1FoRXGoqQsVnq1mjc5xUkDQXUovaujJDqHKoZ6BV3RC11B3hQ== 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)(4744005)(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?Lo8LvBeVFC+0NuAhT4kiifYa8Pav?= =?utf-8?q?zVrB8AcKvJ1blyKU9tkAgWDQIYHLyR7AbBtNxetAR9lz3Dm6Hs4d9AlWQGHMYnUnY?= =?utf-8?q?MVN+H+bWiydCPZbkyIvK4BAd1K82fwSb2HkYF8HAc1jxA4FShQ0aXB8rj/1ps//cn?= =?utf-8?q?JUlctqu1XFHngKGSjQpXL9+pmcO0EIMgwDtDH+x1cqUKVHPXvT6dSWr4Cxh/kyTXZ?= =?utf-8?q?JGyIWibr+rFl9BMvRPQZctWf/vyiTMDauvAzw8Pe4TrJzRKVw0RhDrBdDS0NIWm2A?= =?utf-8?q?zGW3Eri6DfKqHZ77S56ra7tbn1llGSzlDcq6Sy1vGhjuKvfPNDuSHi7Wa4kQK6XqJ?= =?utf-8?q?Z0vvGYYUigL6i3bDo1xJqz0umRpwoDTNs89RXaX6rHzTtrh7YjVnnhEzMs7TGosey?= =?utf-8?q?ZeeiajGhD0a6qs8MsLBagYxQcS6nzptqniUQyJGFGhnie2yBSjm4rPuubEGp1heEf?= =?utf-8?q?wzX+Vkjdyfw1pxbL70mmCf/LGh7iL4pDJf/2QEFuu/vIQQ3dh+8IsAifBEgn8aTVJ?= =?utf-8?q?eRzbOWAHO/ZjMuYWegVYc5vBRaVlfV5mVJzMqOOJGgkHy4AkT93bH+M0iowdcA3aB?= =?utf-8?q?RdafKNnQjG9r45mUFbswZ2k6+WWzDblVgzFSgfAcZJjp6u1Zxa7Ak5GFfg1aQc2h+?= =?utf-8?q?gQOaz30bGEV+yeDKloFvHw73/Igk7mhm/t+h2gB7tZ8bqvRtivIOYZ9KFu4ZLW3Ek?= =?utf-8?q?+CyMRO71pdNy+jV5Ha643LVJvZ3gT5znthZK3fkF71E6ue5KIwOEFTMdc1OnWqeR3?= =?utf-8?q?6kiBgP5yXCvJAemVNQgc77AMI07tTbjaR0/pW63bHK6rPL7ZX/eI8j+G//7dXqGlq?= =?utf-8?q?74WlTXbLxRpAfPO8Xa91M9gEdRZexujXB/txZJj3xi+EVHzuFHPvcEv5q1J03NC+p?= =?utf-8?q?VGSYBVwVz2XhjCr9yasUfn7QNnReLxODrgVvl97u/nM9M0Uuds1hWr3Ycyc05aVeE?= =?utf-8?q?g9yydfQLRo8J36QS8o5dCBAeFGZHE6Cmsh6Bm/zrklpzqlw4E17vWY5aRy7C6CPBS?= =?utf-8?q?gnWmtrsCChz+MoaDgRGnjyY9g5LllL3k4OboeKBG6ejKjYYodAII+TfLN4TmDtBH3?= =?utf-8?q?OhrB40O8mE40SHH/ENiSPnGSQJmDagm9/Nhs0etYFMAE3M7UHkP4e4FbbSOmkPP0+?= =?utf-8?q?eWiy2iYuqUD9x5Ad8yjQSkRdaO/5Ib7R0pD6imL0Utnr64Ms8GWt0tJT/6Jtr0MUd?= =?utf-8?q?zq/ivG2iHC100fzc3apJ/NXIVg2TeDJyYkz1nTXPXqAn2+eg8i7YZ9LhaRWab5WVd?= =?utf-8?q?W4VZJjisXFR+4+7J?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfc93fb3-a266-4aa2-225f-08d98807a23e 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:22.0553 (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: Wt19S5bBwQYK+loR/03QnJT+FemsDJodLINigxbDjl/nhGBU6i4L61K1R6KYEBb+qHnkg/IaCRQdT0OSaREA4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5643 Precedence: bulk List-ID: X-Mailing-List: netdev@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