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 185FFC54EBD for ; Mon, 9 Jan 2023 09:15:21 +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=xJ0a2ci5mtApM1rYV+44+1NvVWcLzQhsloC1A+b7c80=; b=jG1SlaNhU0HW9X mCv4rMzqwbMS5nqhQWhdyiRqJPCfI5KBNeCxRaYDcQg3BaAMwwOsg8CGhhEVhvHy9RA+1WqUb/7XF EvgQ5hI5FffGjYzuqBD9PuPwakD7pRB1EjPAzzS6a3sAsMXXwdc4ier77U8BWudD8uGi2mT26Q7E6 Ns2P23f5ghYXAJJQW8VOvZF40H86/Df91hVqRj9ReIf5mdBQcCRExaYwAyejae4tDr+e5UjEHJWlv TDamXXodwyNwmxvXt6N6TeTFX2DHqu4dlnfTtzPktRxNHHkzhLA5twT5yJsPnjYcdHu9krSBw93/U TsJVuxVI6nP8KUp4v3mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEoER-000YNx-Rb; Mon, 09 Jan 2023 09:14:16 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEoEM-000YLr-Bi for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 09:14:13 +0000 Received: by mail-wr1-x42f.google.com with SMTP id j7so2449434wrn.9 for ; Mon, 09 Jan 2023 01:14:08 -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=HlixzkzqValLsSGt/YddnrJastCEZJ5Ucobceh+rKl4=; b=MG1vI+rwgFcGbrK7mXwF62ZyHrexAKwldb9ir0SczjotVq/ePou+OuJNODzoCUHlda 2HYJaAwKYPj3CTcX7U6QCe+eGAfmy5l4SmaDwXYbp2yGU+OgauTfV1T52jCjCwNxqdm1 27HwuDnbsNTCP7QZdn1OxKrhsJ+yTu8H0jHSUQCQgL03vf7G5u2b3Tt45jglpMe4tCS5 85/2Me+TLmnluhZ3SWDaLNuFdTLiZAfEVMCaBIaHQz2jvhFcLeJHjT/oL3cNhBuQBPSs 3I4381X+2lFsQUgLFjtczMc1GMXzDYfsW2otcFaDJAjNYPfsivJuESWJtGkUBGwqBaF1 JbiQ== 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=HlixzkzqValLsSGt/YddnrJastCEZJ5Ucobceh+rKl4=; b=EwF22TFW+m33AV+GKRvPJW5NlcC8sCnh6iHVJ7x5yzldiUpd/8Cliw86FpdXu0gYKw dz6PiFNZHGATRH2vUKlSzqSdOOoP0RE+jITzHVSCCLyd021SWNjI+rhMXnusocihHQjr rC8xrqS2kIqZJz5VCGKSV1LqVD8ERaspuMb6MdgKNp8uKhGjwQKSPeiOcKL8wqO/CB4C ln9ESjsHOm6mgq/XHQczNMKUSb955UZnoKg3ZQlyKLhCoqL0qXQytClw3ODrz15lwJx3 xZPvjI1XhRXaBd/0ueZJhA1YKB6lJef6GvCKc2VCBOQyU8pLojtqCoAF977UWSOZHf3l EMlQ== X-Gm-Message-State: AFqh2koleWPK+kzoSHFxxm3KLSPFhRAhW69rb0xCedkHfyw3UmzB2IxS psNR32p5J7c8O9QIRcNegva1vw== X-Google-Smtp-Source: AMrXdXskykw7MrPU0fzOfCuWIR+MxaI3X/Nt7l+Cf8qE1kFjUipKm+VPSXLtzR3XByRKyNXHg/aSbw== X-Received: by 2002:adf:f482:0:b0:2bb:f4bf:e758 with SMTP id l2-20020adff482000000b002bbf4bfe758mr1853263wro.48.1673255647637; Mon, 09 Jan 2023 01:14:07 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id j17-20020adff011000000b002a64e575b4esm8116461wro.47.2023.01.09.01.14.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 01:14:07 -0800 (PST) Message-ID: <8d22cd2c-a0d1-757d-0723-cd96f582f408@linaro.org> Date: Mon, 9 Jan 2023 10:14:05 +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> <70474070-404b-2fbe-2575-4810f6fbda91@linaro.org> <20230108182049.679de9f9@aktux> From: Krzysztof Kozlowski In-Reply-To: <20230108182049.679de9f9@aktux> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_011410_452975_AC79E632 X-CRM114-Status: GOOD ( 23.29 ) 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 08/01/2023 18:20, Andreas Kemnade wrote: >>>> >>>> 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. >> > Ok, lets stop talking about A and B, lets be more specific. > Hmm, I try to insert the missing bits here: > > I am not convinced anymore that my patch is correct > - for dtb compatible formality > - for pure technical reasons > > I am not convinced that your proposal is correct either. > - for pure technical reasons (for same resan as you state) > > Especially this part I consider faulty: > + - items: > + - const: fsl,imx6sx-usdhc > + - const: fsl,imx6sl-usdhc > > Keyword: ESDHC_FLAG_STATE_LOST_IN_LPMODE (detailed that in > an earlier mail). I am not discussing here real compatibility for your hardware, as I don't know whether 6SX is or is not compatible with 6SL. I am saying that it either is or is not. Cannot be both at the same time. Now for the question about 6SX+6SL. Rob responded here detailing when compatibility of SX and SL is valid. If your hardware fits this case, then remove the alone SX from enum and add SX+SL list like in this patch. If your hardware does not fit, so there is no single 6SX client which can use 6SL compatible and work somehow (e.g. half-speed, reduced capabilities but still work correctly), then please bring back the DTS patches. I am not sure if other people who commented on DTS, are following our discussion here... Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel