From patchwork Wed Dec 23 15:39:02 2020 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: 351790 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 DB831C4332B for ; Wed, 23 Dec 2020 15:41:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A520B233FB for ; Wed, 23 Dec 2020 15:41:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728456AbgLWPkt (ORCPT ); Wed, 23 Dec 2020 10:40:49 -0500 Received: from mail-mw2nam12on2063.outbound.protection.outlook.com ([40.107.244.63]:15105 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727207AbgLWPks (ORCPT ); Wed, 23 Dec 2020 10:40:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b+ZwTyMFWZLWqthHv6z5KCfCASo6ZqlAYgQvem0PEZquvWgsO2LfHOiGsbNOvfElsp5j5vKjkLm2nKwUaGZQJ71x1z46KFLbK8qc6T4pWSP6BJU9t0hiozDxtqOgrjVUctNfoCnaaTS1noNqBke9BZqPkEOjRR3r5uMVMFDRhdCt+fwHFb86fV9GD2aWDrb/EdTRoTRoKdRO8q6ZpXX8rwSdI1v+YeLuJ0jOiQqT6miFZobpkfvMIFyTWgBE6f/CYGWPepJVyoKMcxbVSDoBUR7zE6KU3EhbJ1acXcsBEI9fmS7dLjQKuDuMia6W9zektnQnciv+w+S8QxZahJIS/Q== 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-SenderADCheck; bh=+PQnugVFQUogr3RQecwba27lQbNH5Z1PJCDZzJID6Ws=; b=hKEZNbL60t51N0f/Pe3nfAqo//FWcys6uk9VUKH2ssSuT3gEg8O4NdcNXDDuVnZPnUBI0p+/B6d41kxg9RVBVPiiJDqR6s/Q9Fg09vDKumpjKVx6nYpIg9rfCrPwXaXG6CMTVzHwkbYNVsfo6FB0eL0F+2fDPv6mzkYub0RkQ7PKIC1Y/nJIvvSC42lWvoz2GX2pQb8pGT/Es6uFCX0C694+ihvtla3dBN7CDI/z+Ixv/NVYf1wMEukq4BqBBnWYh6FVSxSgSJMBXhNj7Jb9XS780QSSwsBGGosXd8FFyl9jqHHqvZ9bjSucNmrDrPShUgThUDnemIFVUKy8FNdlKw== 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=+PQnugVFQUogr3RQecwba27lQbNH5Z1PJCDZzJID6Ws=; b=T+DxsLlIDrF5U4tex3LfqLmQFHnixwDf/pAZKZ2fGJgMoWj8PuJHhaK70yvkMjbiEdtkhm3tXVZs9f1syiNb34IDgRIMKA1hQJHCblw3XjjsGsi892YWBDXKACLZsuQ1YBSBRAQADjRtr6EL7Cu/Lw3AqKQ5/R502SHZ7oEEQ7k= 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 SN6PR11MB2815.namprd11.prod.outlook.com (2603:10b6:805:62::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Wed, 23 Dec 2020 15:39:45 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::a989:f850:6736:97ca]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::a989:f850:6736:97ca%5]) with mapi id 15.20.3700.026; Wed, 23 Dec 2020 15:39:45 +0000 From: Jerome Pouiller To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , devicetree@vger.kernel.org, Rob Herring , linux-mmc@vger.kernel.org, =?utf-8?q?Pali_Roh=C3=A1r?= , Ulf Hansson , =?utf-8?b?SsOpcsO0bWUg?= =?utf-8?q?Pouiller?= Subject: [PATCH v4 01/24] mmc: sdio: add SDIO IDs for Silabs WF200 chip Date: Wed, 23 Dec 2020 16:39:02 +0100 Message-Id: <20201223153925.73742-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201223153925.73742-1-Jerome.Pouiller@silabs.com> References: <20201223153925.73742-1-Jerome.Pouiller@silabs.com> X-Originating-IP: [82.67.86.106] X-ClientProxiedBy: SA0PR12CA0024.namprd12.prod.outlook.com (2603:10b6:806:6f::29) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.silabs.com (82.67.86.106) by SA0PR12CA0024.namprd12.prod.outlook.com (2603:10b6:806:6f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Wed, 23 Dec 2020 15:39:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75e6b8b4-bf23-474f-342b-08d8a758f95d X-MS-TrafficTypeDiagnostic: SN6PR11MB2815: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H1mUk9tGQANv7e/PlFfXsZJeeFSaR5Dq4S5MpMzBkbJq//QzdTuCvOoEWPs7uGqOX++H0e+cBIsVdhVjZ/0CKGOx49l5e8+U81SY6FQN2ZC2K3TmkV5tj0vElNN/E0aMiPcoflYQPWJxsTpiuz35DTSEUFQDG+korBr9CWmvI0gy1pZCexzNouOdQRcqthmTrQ5AxjY/Ilr6wP4vuMSVx+dcTb8oFMz/Y3d8U8c3cNEvopg6CdViwMDI3jBxY2rJbpmi8ickUmaFg5u7yN1gOU+DT66bqTPTaamAxj2K7yunMHl0+P5kImY/HQolavG/AEiYVbNFKV05hIMupR0iUn0ucHK5Y7ltOlbEAN2dqCTALMIIBIJUXarmOmZumqq/kT7issfBzJ5xROnIn4vw0w== 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:(396003)(136003)(366004)(376002)(39850400004)(346002)(478600001)(8676002)(186003)(2906002)(8936002)(26005)(52116002)(107886003)(16526019)(7696005)(66946007)(7416002)(6486002)(956004)(4744005)(2616005)(54906003)(66476007)(316002)(4326008)(6666004)(36756003)(5660300002)(1076003)(86362001)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-Ant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C/EDiDgxpwdva6n4GIeu/SooHPInL2yanLBVkD60ebie5Cu43rvk?= =?utf-8?q?+oHbvPPI5bS5XxNiUz2Fr62WmwPBKWVyMhvcMCCCY3b3wQeg7JwaRyPC?= =?utf-8?q?gIme23/65k27gZwM39g8D6E4=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2020 15:39:45.4791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-Network-Message-Id: 75e6b8b4-bf23-474f-342b-08d8a758f95d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: smy9MAM9FgxBTva3QLKdtxgj5OogGtPayKSDrngpeqQ/eeR3oHit8VIsrfhhPOGkjxGzH+0Rf37lID8481mWRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2815 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 12036619346c..734918fbf164 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