From patchwork Wed Nov 4 15:51:44 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: 318468 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=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 2EA66C4741F for ; Wed, 4 Nov 2020 15:52:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD49E20780 for ; Wed, 4 Nov 2020 15:52:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="LZuwBgfr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730887AbgKDPwe (ORCPT ); Wed, 4 Nov 2020 10:52:34 -0500 Received: from mail-eopbgr750080.outbound.protection.outlook.com ([40.107.75.80]:6126 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730682AbgKDPwc (ORCPT ); Wed, 4 Nov 2020 10:52:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0g+lpmtfnW3BYvsDk/02PmIgUpJUqU5c3MvB+TxDP54d8AI/NYcL0YweSvRZw4w3QFjHD/pE4hwsZVRvrNuSlP2wrkPChGWJLzHgebCag5xTe+bHPYDFo3BuRHDd9Y07nV9hjiGIR9Oo8GEUKkeHTkIUnGjESSpK3UQC+tvs01gMcvzDlw8MwybgqpVML0UjUhVXer8gCUuyjV7UmCIKS8KTSved4xYHMEZshtKGybwx7OeHjIJLpoF+N2/br46KoXywrVgFyv+ktxrcDSVh+8GZBsCXzHg3tLebhjtmCZ0+kQyVK2XzABfPxJtpP9eRzzEGu9nins+0/mGhnI3Lg== 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=asTSYqI/0VaupVnUwKr/Op8wQRhoedDfa4ZNrYWJ/VQ=; b=Exre3hKClMUSHxTF0IZWi2tQ3pc8UxmiboOJ0uWhoBl9BGyzdggIqKqGtIt6tjtE9k/PWHhhL7ONKI/KckJznXZVKrFWmAqlh3q+FMdAyqtdLIhyXkwCbNU55m60Hymh6IwpqN6abFsW1mQWK+f2hpOFey7dsbwNFnMTB2G3jtO063NOM0W+4nldcMWFNnHkmsUvLJJeTjz1xlIOGtV3UOzFfXd6f6RPoOWH/2CxwHXDZ4i0xbXpX8uuShEpDjfbwenmbvWzOu7ILgvXIhe9dONGIe7P5XZbSUzTg+XZoefQjh0WzWOxLLdTK/Y9S5sf80YltlJLdV/lFVmYLPtU1A== 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=asTSYqI/0VaupVnUwKr/Op8wQRhoedDfa4ZNrYWJ/VQ=; b=LZuwBgfr9NyBKM4PRRQ60fqra3uAdBAmGYBxN9gbqllIbHurtyse426veNak4zaC4pYARLPrSsHRT9mfZS9GGYgt+1TfpaN1mo8SxcJzaBEbrrzznoM8OKVEALx0atpAYW2rh6JwL26aVBURe9iP2JDgaPNf5ntu8yV138U2Djc= 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 SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.32; Wed, 4 Nov 2020 15:52:24 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::4f5:fbe5:44a7:cb8a]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::4f5:fbe5:44a7:cb8a%5]) with mapi id 15.20.3499.032; Wed, 4 Nov 2020 15:52:24 +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 v3 01/24] mmc: sdio: add SDIO IDs for Silabs WF200 chip Date: Wed, 4 Nov 2020 16:51:44 +0100 Message-Id: <20201104155207.128076-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201104155207.128076-1-Jerome.Pouiller@silabs.com> References: <20201104155207.128076-1-Jerome.Pouiller@silabs.com> X-Originating-IP: [82.67.86.106] X-ClientProxiedBy: SN6PR01CA0032.prod.exchangelabs.com (2603:10b6:805:b6::45) 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 SN6PR01CA0032.prod.exchangelabs.com (2603:10b6:805:b6::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19 via Frontend Transport; Wed, 4 Nov 2020 15:52:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 372cd1df-19fa-4ad1-a09b-08d880d99f0c X-MS-TrafficTypeDiagnostic: SN6PR11MB2718: 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: xIKH9IUVTODFAFgh3oelleksdcqQeKo4xQImAyFvFFOzuqz0TKdqrWLYse6kyHMtKumY0b4WNzakhForf/6c/zDNYRVOD8mb5J+D/AaOfQfLxArqHDH1tPaVKtzIRV4Z1Qcskbo91WPalqlg/8JVUjh30d6w5pNnJ8tAq6tU4BSo0bOUgsLZBafzPAPJFwbr954hWltJ1Kg0ijgsQdgthbP7DUNGa9KnAUC6GbUlxXsrbpEExw6VBk7CG9PjRzsN8s4HsF8Swnufihox3sY61Wssiku2DKhdFc5HsVquszyjviWU5Yf/98ykN2W4mrK+ezd3RtWfxfMBSklq3+4khg== 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:(366004)(346002)(376002)(39850400004)(136003)(396003)(8936002)(478600001)(186003)(16526019)(956004)(2616005)(6486002)(8676002)(66476007)(66556008)(66946007)(316002)(7696005)(6666004)(26005)(54906003)(107886003)(36756003)(52116002)(7416002)(4326008)(5660300002)(4744005)(86362001)(1076003)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: E368F0cy8Bkyq1wkFanX6rfCG6GjzJSkJgQVzlTAOnfFEm1FRJA/YO+7UzjoaC+77unmBReNJfCFiLnMxNHk0tm7AsNIgJQ2Ki0CY2DzZKf9tP/YDT/ML6yjFuw3pEF0j05CNW9P2UVB8kntpGDBMeGHOneE+2eq9gx7bZ3rRYnVBM90QJOlZtga+K1OuTJGqznFLcrRUdPvArJ1xrOAdWy2Fo8TW5Mpi+RzGVLsteeTimoJv5hb9HOkVRlwKNijB9tXPZrWxXjsS6G3jsJprdqpmyYwrSrersnDHevNSrQGTvNOndt1I+2j1cERSVexBbojVzAy1YKKn4hWYlCv9u5W93xUsbqGs7s9NZu7JZSmTym9wzwo3WEaAN4yLpEiysTtmBFJegsOy3UJd93NSMVR3N/4zn+vBu5O2ivn3RJ34t0UqFyAahdwW7e6sCt/WWHuqcwX+b2+uMi44oS8jJwbL8wvXJgLwMWmVp2dJ6PwE5TpzB6PI2HtNOopbhgutndNxQnUOU/Ybtt0d510/WPfpHiDXju2d0PNqTY1PwoDVlRqLUifDbqs9+do414vLIcP4VrsqVmh8kFNje2xpzmc+EFaHjdB99g/D4bmmXwBi3xm80QSj/N2th0Ux6ltWueqGBBrlu/7daFUOz49qA== X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 372cd1df-19fa-4ad1-a09b-08d880d99f0c X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2020 15:52:24.0197 (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: sFp/cKO4kuIa6cE7twNI/cHeg4DfOT01kkx1XP/h4SsSWdrxUaW9MNw2JRjVu1loGDTLfxQHrIC7G32NogKuOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2718 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/mmc/sdio_ids.h b/include/linux/mmc/sdio_ids.h index 12036619346c..20a48162f7fc 100644 --- a/include/linux/mmc/sdio_ids.h +++ b/include/linux/mmc/sdio_ids.h @@ -25,6 +25,11 @@ * 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