From patchwork Mon Mar 15 13:24:38 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: 402410 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.8 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, 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 D0B77C433DB for ; Mon, 15 Mar 2021 13:26:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B6BE64EEE for ; Mon, 15 Mar 2021 13:26:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbhCONZl (ORCPT ); Mon, 15 Mar 2021 09:25:41 -0400 Received: from mail-mw2nam10on2055.outbound.protection.outlook.com ([40.107.94.55]:40192 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229681AbhCONZ0 (ORCPT ); Mon, 15 Mar 2021 09:25:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mKCu+4cy4YL9wWR/kuI0gCmc6GlIFpMN8XsjBl3Z4dhlLWXBVr/2O/iBilGT8mScPR5UQ+hEJ6KmF0vT9iGW/XfXFFLPkSMxshSd+UkmSjFEg4d4ooecO7q3HvA6zFk8EM1PVy0PhRvVy14VBCeJ3ZcG7dUypNOWzWgvEC74DOOFQRt4O4E+7UjbK2YHGS6MAQcpZDfB5qQZ8SZwCxpdd3DBXP6bnnEJwK6yNNLEnOki+mV4ajn5RexSbejqjI0ZpJKVEVZztr8NPY2q1Pq2vbtG2+JfFEDOB+j+sylJWw+eAFs3yQuTBN1yt6MAADIAn9Q0MM1YPqzRzypH301Nsw== 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=nV3jltoOon206S1xr98YuiDX9F2vm9+bMCiJ3DHCI7U=; b=Nx4uYr6EWn3G6OLVD+JBEm+oMpWz5qGAUkYPq2oHJVyczajU5+nOpFaspsCL5cY1w0MBugaTV38sdrur+18F/drI2YFEwdsZL9uRWQl5GqHruQqDhEattV8jk+P9jFsZnL7Eh34T/M3KM5Q3AzBbqhyxVVPsxyw2fPrUjYXSOZC2uAffoevjvUaITJPPgX7q/bWMNnwUNJaGBi/lveUcWTJpIeC6jQMxjGtetapMF6vDRqZAL7U3Eo1RRMLpHqKdi9xz+tMgBPB+RnC9LnbcFL5eAjDPPavrdd0Ap623uKJ2M1EygblkDa78Nm4Z2Yyr+/w8YaMylWVYhW6AIiIWHQ== 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=nV3jltoOon206S1xr98YuiDX9F2vm9+bMCiJ3DHCI7U=; b=W1LEzCHa6qtQK214WVhtfnsyAvpcACTeNEdRVQbl/fqJY2K2fRqV74S144elx8QdoGe3UoRjkxW37N/VT6XkMj8YsTFs+JpemzOYjaRJfz0N0c46gSzVkMykyHiLave2MP0XWzTHKnBIVvlxFnThhZJ3Pxn9UievpaoRsv5QHgQ= 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 SA2PR11MB5099.namprd11.prod.outlook.com (2603:10b6:806:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Mon, 15 Mar 2021 13:25:25 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::41bc:5ce:dfa0:9701]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::41bc:5ce:dfa0:9701%7]) with mapi id 15.20.3933.032; Mon, 15 Mar 2021 13:25:25 +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 v5 01/24] mmc: sdio: add SDIO IDs for Silabs WF200 chip Date: Mon, 15 Mar 2021 14:24:38 +0100 Message-Id: <20210315132501.441681-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315132501.441681-1-Jerome.Pouiller@silabs.com> References: <20210315132501.441681-1-Jerome.Pouiller@silabs.com> X-Originating-IP: [2a01:e35:2435:66a0:544b:f17b:7ae8:fb7] X-ClientProxiedBy: SN4PR0801CA0014.namprd08.prod.outlook.com (2603:10b6:803:29::24) 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 (2a01:e35:2435:66a0:544b:f17b:7ae8:fb7) by SN4PR0801CA0014.namprd08.prod.outlook.com (2603:10b6:803:29::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32 via Frontend Transport; Mon, 15 Mar 2021 13:25:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d221047-6ab2-4f7f-78af-08d8e7b5caad X-MS-TrafficTypeDiagnostic: SA2PR11MB5099: 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: vZJegVMugcXRBK0Gvcn0yu/ij3axBUL6JUU1ElUDPFHpzGISNnqyrA3y1znLjueAFrYCgKofWbm7NmW6zSUczRUrWsHcVvBQcJsIQGur6lPjUxR4X/LNhzy5SfpNqQdgJbHQJhwLrJyHOjS1/MBRrMBt5OX9wL7We07j6XQRlkFvfiRBDNi+rp1pxMOvjfvLpos4OvLAr4THrQHWmy5cRUy0V+EGGmeaQAQWDW91N0LclB4nDuPt9WGZJ2ZoZkpdY5v3pvEHwPXwqskqjMT6LDifcc6wPPXo3y72XLu8I3Rlxa81ktRwSCa2dI3JHbdAQNejkJWonnajyuIVKyDo1RfrmC2NkvcU5yO8Vu2YdrxDLwbsDH64IVR7yqD66BztQ+TUY/lgnzxcp2ue+OVKqYnAbMEimXyx4YZvdO3tBIqUcAFHeVCYGiFBVBlwTZSVIpb6VE+zVNNk9PDMqzpzfSmCz0SdzzPGGwzTtmaDIf16kHNoMJo/2FEJqshsiODZAxITnr+2naby/JShhnX+LUtfHHWm99/kt/5I7GHnhJdZWK1pekGLs+RmlAnRGN1i 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:(346002)(136003)(396003)(39850400004)(376002)(366004)(186003)(7416002)(2616005)(107886003)(4326008)(478600001)(16526019)(66476007)(86362001)(66946007)(54906003)(66556008)(4744005)(8936002)(316002)(5660300002)(8676002)(1076003)(52116002)(7696005)(6666004)(36756003)(2906002)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?Pbq+s9aDVuwMnp4j7dPD/gUJStw?= =?utf-8?q?DnX2M8QWHwGWx4dTXTl0DSdAZkLN6vwnf8TvNupW72pZ1ux/KrZdb3Hj?= =?utf-8?q?DKIGu+92BH3AlnSyXqSw5IWuGeonrVlUvchriNhEErHXHW7Q27MFwiLP?= =?utf-8?q?JTdsxkZDLBdzNzLdoVHKXFzzJeO38y1PRmXm4hQCRXTSuiMF1PlnzYVh?= =?utf-8?q?0LroERIptgz9xNGEqe0HfYgD8Gw+YjQ6kBg3EWb548wXOKGdLayQnv33?= =?utf-8?q?TxXBUllgY5adIHrD9S+wm+f/BQHw0mfS5lPGwiTBU/nvTTSTt3ZnkrQ0?= =?utf-8?q?0cEIAlOiTHywqufbwInf8hoIVo7QZCAIQ6x5btdCcr5mopGHCtYdPUG+?= =?utf-8?q?QP/vId0de+PKHu04ZsPZJ9CExGcHcPu9RTL+MgG9ipTrjkd3VEDj3e2a?= =?utf-8?q?1p+jkK8awLj0u34X8+Xh1ljo5bjMMfxB6d4Iv5nZd8iygNNgYyOEbSQz?= =?utf-8?q?cJWHLjnruO4554kmh7QXZo21J/UoyNGC8E45IZrOXX3MfSub4HstrfgQ?= =?utf-8?q?roLxKe4XrhO+ZwfQasEuymW2GuToCiaeDCO/d/HlYWxIhh4kseogckEJ?= =?utf-8?q?GQcH2fE2IbCDQCyd2cNv/ZkGiC7TwOWNchPLy6wV4pLyKmP0puV+PW5p?= =?utf-8?q?Vtcz3rqOf8YmHebOx8FeY/IL8JdDDk50ukm5rDyD7koUYHbwk7EUDwg4?= =?utf-8?q?5d2UjGHMggHn8cjrT/PUGaw4KAjRPMuI9Phr1xYLrZgkA2fT7SEV5HMR?= =?utf-8?q?SNtJVwNO+s87KDkmC9rWHKUZkI/DonC3Fp9qsgW8PcEmXUnf9IWKW5SA?= =?utf-8?q?dIqNMFvmyU7uqvyQ0P5sI5FIYz2TOGk9zauJmixO2ixUjY+bJxyl8wn8?= =?utf-8?q?Z9sR1xk267htItVX/HDM6oFUS5SA3RV3ptT8GyQLdY65pwW/imDXF/Qm?= =?utf-8?q?Vy4YdJmOOxpDamZ6RYDqe7Tp/syFHq1PHA4W2mHaejD4DKphl542CSop?= =?utf-8?q?9zW+sGqoP/zl1nyOfCaP/nbOZ61M9Se6DqhzG15SfHZnshcwYT+ar2BN?= =?utf-8?q?ZuTN0lilewgXA3Qi5jBK7dlxS/vXiWPxsivBjIbEDxpvgGCB5cveAtFz?= =?utf-8?q?FDPaGwgBJPuP1FRkE8Zon14fGjV0Cs0wFfcfCpoJnX2PpsuQyVdhU009?= =?utf-8?q?LAM81WD/suzHghZw1JvwjOmJyHSMCgfsm7yshXsuDippg209fZzHg6St?= =?utf-8?q?9E3DWzWNW2QZVFg/l0tBP8IYK/mpJN8DuCyZZZUjhht9lEAePntl+d8N?= =?utf-8?q?IgA/SLPa1YkMAjjbrnsv6QehtLKk3YnZfn6mD0Q82naSJykXublzeQGc?= =?utf-8?q?6so4u9eolAoyAqb0+25w1iMKAe4TEoJIIe7Wt2Ii2JKpHFYCryChN/XY?= =?utf-8?q?QH4n4MiM/TITe6M/iTEJv7JHCGGHEXzZZfwBC?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d221047-6ab2-4f7f-78af-08d8e7b5caad X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2021 13:25:25.0816 (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: 1/0GnTfVN5P0DoYkYmLWjKQa17QvmxltPr6F471GL1Ckd1A1jYrrLtpUQd7Ct+kv+VoDsVb/ltTWyNV9mowm4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5099 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