From patchwork Mon Sep 20 16:11:13 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: 12505855 X-Patchwork-Delegate: kuba@kernel.org 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, 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 1B577C4332F for ; Mon, 20 Sep 2021 16:12:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA5EC60F70 for ; Mon, 20 Sep 2021 16:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242391AbhITQN2 (ORCPT ); Mon, 20 Sep 2021 12:13:28 -0400 Received: from mail-dm6nam12on2084.outbound.protection.outlook.com ([40.107.243.84]:20373 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237445AbhITQNX (ORCPT ); Mon, 20 Sep 2021 12:13:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J33kfZ+1cW1fTLNeDsQFyYqwFp53racN2ILzyrKGYY8VNi+b9TzNfRKf914pbzpB8W2nGYb/oIS8viGaaE79sRajCjoaV5BuiNG4a7WG7zqEDajajQHnt+NNUGu5THHP8G5DvUXefaBEuW1DJrOBxICXUHla9MTb9eKgEyYPXN2hHOOhAD1x2PGmw2eo9DpfmUBrj8sBDAEFy6g2Vr5RABLk0eVLPJAnhwcgbYK9eSE4G1KyS9LUbqMQ0roPYBgW3r2b57qQyzmrUaGTi5kciczrsbJFMZ/2VB5J5YikGZx4fM/bL0a22tRgvrSSGXIM/Uagh8KDkgQ5zjnjEFxTpQ== 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=H6LQPMENJRstnuhFaL5UwyN+NFYrrMlO84WBfTsTsI19PVyrcuyDJHfjJ4ToOe4ucJWuZzi9dKC74mzqT4BaakzydCLOci2gXX0PxL9xyES3RsTWiNKE865mLD8TvZpR+wwocSTH/+92my52FiWeA5CMaGVMK5Xw7AmmpQ70G5v81q65bVhyHJr6pBDsnjkSoSAuRWnP+QfDfYfoCeJJzWHwPTk0LhvpYB2lU2Sf/qXN2NDYqzwY6YZP38NWjkk8ykfg+l6A0JLKtQO15FvlQ5c1u488jrJeYb10AYaGN9PErBh85aLpGo6wPrZGwRj88Y+oLcEqt5zIDXKM0eOAJw== 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=TDtrY0dNYq7bkF+lPXoOhd5ExgfKWw54dGzdeHaop02dMijr+/Yfw4aBl4ZWHkjqohJ+VUd0ZTv4ly7Je7brSPzMfFejNbcLAL9aWNf7YpS4l39hW4OADGm7olRYIxL57a4hsSxcR3TGHggUwo2x9lA5Oq17OKfrfBBS9fI76C0= 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 SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Mon, 20 Sep 2021 16:11:55 +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.4523.018; Mon, 20 Sep 2021 16:11:55 +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 v7 01/24] mmc: sdio: add SDIO IDs for Silabs WF200 chip Date: Mon, 20 Sep 2021 18:11:13 +0200 Message-Id: <20210920161136.2398632-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920161136.2398632-1-Jerome.Pouiller@silabs.com> References: <20210920161136.2398632-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SA0PR11CA0064.namprd11.prod.outlook.com (2603:10b6:806:d2::9) 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 SA0PR11CA0064.namprd11.prod.outlook.com (2603:10b6:806:d2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Mon, 20 Sep 2021 16:11:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3ca91d95-524d-4989-b469-08d97c515daa X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: 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: nvENJ9D9ITvMcToeSe9b5DmBOSwqPaZ1G/bJOiT8PUUvl/GHbdNDAnC/43uxZJHIBOzfk3pFVx7qgiZGWIu48xvpyxVi5x8ltoK+AkqwQ5/Y3VKvmDBGDcP9VjE3rozdjxoSIV6jLdKqDo/6Pp+aWc5+tfbnk2pqZ8j2mBqOR7cPDehz24rZiPBMr6k3TlaAlXel4p+mCwUvnqHbkwqbeuAX55gIhJZ37vTJn0NxgiJa+Nmcj+r4RnaO7YHTKm14Jq+EfMprZgFAMu+DozauVnHj3QQ87DEZIU/xYIVUNPmBdHRTw20JKpoCq5XIEfbDEHAU3lkhiEpH5iqi7nElwibvGOhOe5f5L9QxexawTMX+2yKE+orfoIsnHpCMCz2y3u5YBSvx5BG2ZfWixmyUO2k4IDGBXsgU1KQVwKfyyQKjGLoFoXolmKnMJTBT1DtBUtQdan+OA+w+IW3tv+K2wQeWLmNA7oXTRwmfk82NIyYx7EnmSUJVVpBCeWjkEvZ1lNffMgl1VZchlA/eFMymEBF6kkb6bD6D8SK7dMB9UQFcjfCTGvBxLIPWXTjvdCIdMchfyDxLWqbdBj5y5u7ZW9jJnLoxOaIMudVf3g5F/K0LSri14FZB5oopHlj+np35i6f78N95k0QtewJ4Oa3J/Q== 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)(66476007)(36756003)(2616005)(66556008)(107886003)(186003)(54906003)(5660300002)(6486002)(66946007)(52116002)(38100700002)(7696005)(6916009)(2906002)(1076003)(4326008)(4744005)(8936002)(316002)(8676002)(508600001)(86362001)(6666004)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rVRdA4PGHp8ciu6e+wzmlLqK3MUgAwafnMquSP8mSZdoloc7vn4DcHXKacgvoHjwIoPj2GTcSed9rq0IM5LaqwKB6DJbYlrUlGKzvWoA0R88XJiEJsiG9O1jAXABh7hIR2CErLyMUkm15TiWi+LRDTfF5bfzqjOT9HsWVY4HrzB86g6qq0GvmNPIVwhNqkWvWlmAJX1cdXcp1GbUm5yoYXnYEVG3hRpBvrdgKMa6gzUocEEzRqj/r1zI+kpPIDg0RudrbqmOJEE/B3eWLikAMlnlaHxvkfgruDMShFrNfGg+yEhwyyEivK32rqh1YHrOzxA/18qmmyKR9HkC4y+imI+LR+J7ecAkFzVbndY7qOkBpX4Zn0HVFAhZVw9Yt0JivVziFcZsg/BT8lXxPN4zr/S+feiIc+kFsEqCIrphqFi9tPa/9OP9cpaFWzjeB+sCVQlok1cW3ksvVRzvenfscxLC8bVJtW35t55tvyDm8MGQT9asbMALMr+68bSQ6KhxpjHL3n6359y3bbnhU7VxK7Q7Qyf9qTagEe24rkLjgt87aH0jqJgdxgSzYE66XC0t/H/ajID7mBQL0w40/noMj2un/ozrSiF9LC48nwsbGtLiMo6INfWbJ8KBOAQMXhYnardYWPHJC53JymyiPf8nwM8Pp8Np88QDZaq8vcWxLy0VXrKTCwtHv64hTXU5r3YheIN8UuWMQyZPX2FfotI3IoqsBYicYMrkUSkEmo12APZBWG18s8XwWHDKFinbaiDn+cpwTbmcAQEhJQAqZRfOjRawPvG9/9RCMj4pHiZrxzNvh585e6PdDjB2/P0G+tsU X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ca91d95-524d-4989-b469-08d97c515daa X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2021 16:11:55.7817 (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: H6YfIPJHVawO+7zHDUAwS93ZiuIECV8lD1BSzU0VInpJi0AImPUn7KzOJNUH6rPx+uvLVXISDezixyXDHDmBPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 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