From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21731C54EBD for ; Sun, 8 Jan 2023 14:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3S9TWauksW8HVHDvQ3fHbzYfoBuv+AP7fcKSPjG0JKE=; b=Zozk7rYefgVlvp M6ifOkcxHWrm3aVzyk9+aIiaeqQMppvPKvA5OQ42dRu3zom2eE+GcdujOK8Ub88O1eInP5OCw4ZCX KX1HfigLOdrDJrZJPoY2llRDcCMtHBayu5eBfzDRQkuBcc5xtDki3BlBll7RPDeo/RxvHRuoY6ysI AkWk7cLDe4mcx+uKYOHpM4toRVvue03M9haekgsS402vtdREV763Rw1kk+Y6YUsZn9i9tvEfrUkbe DVw1DSIoyVmJHM+27QR3DJW2QsXmWIwbC+D9Umn8ydsxiP0iPYS762tIYwMG7t4GMCmBeB4JrFm2o gdULXRGXpWabPhuCxzIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEWvq-00E3gZ-9L; Sun, 08 Jan 2023 14:45:54 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEWvm-00E3fP-Gb for linux-arm-kernel@lists.infradead.org; Sun, 08 Jan 2023 14:45:52 +0000 Received: by mail-wm1-x32f.google.com with SMTP id o15so4476640wmr.4 for ; Sun, 08 Jan 2023 06:45:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5Mpmz+UXTscBPJqkv/dsExuqIz2qYdum1EIzJT1D6w8=; b=JgXnBo7vPrw+9v3Sq2TJ04hPA5lgdh+yWMSKE8gs+pK37WAqW3MhLRbdIKE0M+QehT QRQ5bbjgszn5W8nHbUBYwVm5y3m/sHmE9dv2ZBZdtKtNS1m5GIxr0R+H5BlOAAVbzTic exdrXCwZfWeZ+bXiEN0C2e9F2j3lC1xZMmd/rl7bpJ0LmfpD1OaLNRod8m82f9pGRUEU Ua1kCrarKi/dGGDxrgTy5NDH7FNu4IeQsgwR/PPBdGD0PX19i8ao28Bv7nAacXvRRyrZ aDezgpThskETJ0eptiAisTJdWVyf/opqdKuPVn9077odA4L7yvQG4WOYrxVTsUupt9J1 vEIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5Mpmz+UXTscBPJqkv/dsExuqIz2qYdum1EIzJT1D6w8=; b=LktTeTXeCsX4UswBlKCkd3+ImSOZFl5x8qlsq1HWuBsBbcyI2XoHxc7Rd9NEDf9Huv lUBwfq2APJrSrJOkdq+HX77f1ad8DtBX+TgZxUVqTKzzov0r8Sbzl7vuHVmu2fVKBbBF b97xpAHYWebMtSspPLmtYFffgZGIkUc0eDV8SvoGsyUZ1SNJSdxLIb1CpTFuWfpfMv8B kRaB7Tx44KuYB9/XzRvAX0oNYJX3Vs7hdGK+6uhAWpmu5U7PtqyUROtpGdG5k9Y1kQtN P09jpSKgCTM/YiSA33dfcQGN9Xw7E8YWYRz4h0RlnbBwqp46Eb0TQgE2DcLenRKbBIT6 HEGw== X-Gm-Message-State: AFqh2kpnq7NVepl6bIv/gJoj6Qef3DCvEN+k2wcmx+VXWWmypiewrwPO cTguCLyMnk//wpYYomHa3LcIYg== X-Google-Smtp-Source: AMrXdXsl5eYxlz8wqdth9/xC2bBbckKnezMmPEGbx8Vo8cCpKEWLDq4D2k7aN0yE4ZJA6Pw+irCKAQ== X-Received: by 2002:a05:600c:4f54:b0:3d9:f04c:f58f with SMTP id m20-20020a05600c4f5400b003d9f04cf58fmr63157wmq.40.1673189146870; Sun, 08 Jan 2023 06:45:46 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id y7-20020a7bcd87000000b003d997e5e679sm9449765wmj.14.2023.01.08.06.45.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Jan 2023 06:45:46 -0800 (PST) Message-ID: <70474070-404b-2fbe-2575-4810f6fbda91@linaro.org> Date: Sun, 8 Jan 2023 15:45:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] dt-bindings: mmc: fsl-imx-esdhc: allow more compatible combinations Content-Language: en-US To: Andreas Kemnade 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 References: <20230105213856.1828360-1-andreas@kemnade.info> <20230106203358.14878660@aktux> <967cc7b7-f0bb-de37-52b9-7bfab05eadd7@linaro.org> <20230107144336.2ecff4f9@aktux> <123d1a56-8134-dc75-8b2a-b3836e727d4a@linaro.org> <20230107150740.0ba34aa1@aktux> <0ab84fb8-6173-54e0-abad-a0e0e4ba82e7@linaro.org> <20230107160105.66df4136@aktux> <20230107165457.30f4dddf@aktux> From: Krzysztof Kozlowski In-Reply-To: <20230107165457.30f4dddf@aktux> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230108_064550_585800_5DCF774D X-CRM114-Status: GOOD ( 25.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 07/01/2023 16:54, Andreas Kemnade wrote: > On Sat, 7 Jan 2023 16:07:35 +0100 > Krzysztof Kozlowski wrote: > >> On 07/01/2023 16:01, Andreas Kemnade wrote: >>> On Sat, 7 Jan 2023 15:09:24 +0100 >>> Krzysztof Kozlowski wrote: >>> >>>> On 07/01/2023 15:07, Andreas Kemnade wrote: >>>>> On Sat, 7 Jan 2023 15:00:56 +0100 >>>>> Krzysztof Kozlowski wrote: >>>>> >>>>> [...] >>>>>>>> I asked to remove half-compatible. Not to enforce. >>>>>>>> >>>>> so you are saying that allowing >>>>> compatible = "A", "B" >>>>> is not ok, if B is not fully compatible. I agree with that >>>>> one. >>>> >>>> I did not say that. It's not related to this problem. >>>> >>> You said "I asked to remove half-compatible" that means to me >>> remove "B" if not fully compatible with A which sounds sane to me. >>> >>>> Again - you cannot have device which is and is not compatible with >>>> something else. It's not a Schroedinger's cat to be in two states, >>>> unless you explicitly document the cases (there are exception). If this >>>> is such exception, it requires it's own documentation. >>>> >>> so conclusion: >>> If having A and B half-compatible with A: >>> >>> compatible = "A" only: is allowed to specifiy it the binding (status quo), >>> but not allowed to make the actual dtsi match the binding documentation >>> https://lore.kernel.org/linux-devicetree/72e1194e10ccb4f87aed96265114f0963e805092.camel@pengutronix.de/ >>> and >>> https://lore.kernel.org/linux-devicetree/20210924091439.2561931-5-andreas@kemnade.info/ >>> >>> compatible = "A", "B" in the binding definition: is not allowed ("I asked to remove >>> half-compatible" (= removing B)) >> >> No, half compatible is the A in such case. >> > I think that there is some misunderstanding in here. I try once again. > > Define compatible with "X" here: > To me it means: > > device fully works with flags defined in: > > static const struct esdhc_soc_data usdhc_X_data = { ... }; > > with usdhc_X_data referenced in > { .compatible = "X", .data = &usdhc_X_data, }, > > > So if there is only "A" matching with above definition of compatibility > compatible = "A" would sound sane to me. > > And scrutinizing the flags more and not just wanting to achieve error-free > dtbs_check, I think is this in most cases where there is only "A". > > If there is "A" and "B" which match that compatibility definition, you > say that only compatible = "A", "B" is allowed, but not compatible = "A". > In that case I would have no problem with that. > > But if there is only "A" but no "B" matching the above definition, I would expect > that only compatible = "A" is allowed but *not* compatible = "A", "B". Sorry, I don't follow. I also do not understand what "matching" means in these terms (binding driver? of_match?) and also I do not know what is the "above definition". Devicetree spec defines the compatibility - so this is the definition. There will be differences when applying it to different cases. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel