Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2883607rwl; Fri, 6 Jan 2023 12:11:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlfwf6QViGngna1HMkE2BKsYQRs25pjZvAe9AwrpZFlOv6KitfOfROVSVWb22cnagH52ON X-Received: by 2002:a17:906:a290:b0:7c1:9eb:845b with SMTP id i16-20020a170906a29000b007c109eb845bmr52216307ejz.16.1673035896092; Fri, 06 Jan 2023 12:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673035896; cv=none; d=google.com; s=arc-20160816; b=WQJ7o+bbBaQRfFupPdxSlGDtgavcMYAxU4vVkWykRZ+RUKVeRUF9JjNhMNFBB17HnE 1KSbnjXFbDMRaGMbRjRxSpwFym8vvg9OPfnZofzCVyDQKsIJ3qqDU9mrbTQRv3STDVHq nn2Ve2aASaP/XIF/Vy5jHM2UD3gAH1kTkd7j3j7Lxw0ai5X36OBE5qFsBbT0slh6MdF4 3D9aLvrw+I2AnlgD4asLAz9Kitql/NVz7aA+qYriycLGzmprVe/wDAXNxsDAfc6rtX2D lLGYW7UzI3HDeQGJrxn25HNZzdrkCrK7U9Ik7E5MdtQquB+LYJ/enruE7BwSL+rfqbeq ChbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+/GD8PRl+jyl3wTiMZAp9rcLOar4g14C13jzDgJg/Mk=; b=Tr1SVc4snD5R57Njt/+O6J3nZjdkwY9iFk/wlQXgy7Z5cSJzAWiZ2m4cum4+MIyVGB 7BQQjB1jcf9ansphORB4VNpbXCPRsydczyrtTR9FMafrhanyCdn3RBBKHItUMvM8NwQj SeUTqh9q4iytNw0XTJVE2Wi3wpbjaCp70jPwo/33b4Y3nMvimbwSTXV1I9k0KC3qv5R5 bWhHMEmk2Ano13JpryhquM2By6RBMpDyTW4NXvbHjnn5ooZwADl3OjUIYoFk5CxBx8MW Bmu7d0smJU+1tfLX0dcMAKUZsayDYceubwUK2VWmF5KQVo9c6vvN3DeVjKA0Mi/8lou9 JXyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=Y08UrcZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs11-20020a1709072d0b00b007c773e7d8dfsi2645318ejc.203.2023.01.06.12.11.22; Fri, 06 Jan 2023 12:11:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=Y08UrcZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235674AbjAFTeM (ORCPT + 54 others); Fri, 6 Jan 2023 14:34:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbjAFTeK (ORCPT ); Fri, 6 Jan 2023 14:34:10 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BFD671897; Fri, 6 Jan 2023 11:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+/GD8PRl+jyl3wTiMZAp9rcLOar4g14C13jzDgJg/Mk=; b=Y08UrcZINgykpAfN/XOYJlNenG 7iRZP0/+vD80IcmcIiFvLMVB4jecfgBFDY/9PpTb1LxhMJ4Amyrq4q9WBl/fuZO7sJmOQ7TjJaoX3 ouYW9IDjciXV0ep2Y/NHv9SzRuPYJXGCt9qRe45M87uounVerUcFM5OdjaEZkg8BXhel6ZEaeBHMB d656BJUCcEh28YYMlgr5JblevdbwE2QcYsd950FLgVccD/YezIF5hx/ArmJ4PDJLSCyRQZJyhDOg8 6hT41t0/5gHoyhzJbbTlXovPj2c1Zat7KwrYQFqO6bD6s+3yvdgZAI4nMzIPfGSWKp3V2RM8vyh5T f48T+wQA==; Received: from p200300ccff08c9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff08:c900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pDsTY-0003X1-2R; Fri, 06 Jan 2023 20:34:00 +0100 Date: Fri, 6 Jan 2023 20:33:58 +0100 From: Andreas Kemnade To: Krzysztof Kozlowski Cc: ulf.hansson@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: mmc: fsl-imx-esdhc: allow more compatible combinations Message-ID: <20230106203358.14878660@aktux> In-Reply-To: References: <20230105213856.1828360-1-andreas@kemnade.info> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Jan 2023 09:41:01 +0100 Krzysztof Kozlowski wrote: > On 05/01/2023 22:38, Andreas Kemnade wrote: > > Currently make dtbs_check shows lots of errors because imx*.dtsi does > > not use single compatibles but combinations of them. > > Allow all the combinations used there. > > > > Patches fixing the dtsi files according to binding documentation were > > submitted multiple times and are commonly rejected, so relax the rules. > > Example: > > https://lore.kernel.org/linux-devicetree/72e1194e10ccb4f87aed96265114f0963e805092.camel@pengutronix.de/ > > > > Reason: compatibility of new dtbs with old kernels or bootloaders. > > > > This will significantly reduce noise on make dtbs_check. > > > > Signed-off-by: Andreas Kemnade > > --- > > .../bindings/mmc/fsl-imx-esdhc.yaml | 24 +++++++++++++++++++ > > 1 file changed, 24 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml > > index dc6256f04b42..118ebb75f136 100644 > > --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml > > +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml > > @@ -37,6 +37,30 @@ properties: > > - fsl,imx8mm-usdhc > > - fsl,imxrt1050-usdhc > > - nxp,s32g2-usdhc > > You must drop the items from enum above. Binding saying: > compatible="A" > or: > compatible="A", "B" > > is not correct. Either A is or is not compatible with B. > hmm, here we have A = B + some additional features or A = B + some additional features and additional quirks required. For the latter we have e.g. A= static const struct esdhc_soc_data usdhc_imx6sx_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 | ESDHC_FLAG_STATE_LOST_IN_LPMODE | ESDHC_FLAG_BROKEN_AUTO_CMD23, }; B= static const struct esdhc_soc_data usdhc_imx6sl_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_ERR004536 | ESDHC_FLAG_HS200 | ESDHC_FLAG_BROKEN_AUTO_CMD23, }; so there is the difference in ESDHC_FLAG_STATE_LOST_IN_LPMODE. That might make no difference in some usage scenario (e.g. some bootloader not doing any LPMODE), but I wonder why we need to *enforce* specifying such half-compatible things. Regards, Andreas