Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5918607rwb; Mon, 5 Dec 2022 05:58:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7rHWAgnp4H08xlz+Jwa/vELiyL+7G87x0YY09Zr4qyDzhvb/8Zb0P2apo+ATp2HN7LifpL X-Received: by 2002:a17:903:2013:b0:189:ba1f:b16e with SMTP id s19-20020a170903201300b00189ba1fb16emr16083255pla.62.1670248680721; Mon, 05 Dec 2022 05:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670248680; cv=none; d=google.com; s=arc-20160816; b=a5C5SlZFRFPvlQm9F0we5IjjFDfuxaFEokKRKidb5JQIkdwNrLUQU7YuG/6YhToeHm Gn0S2LVJAGy1MHt+zjrj7SN7rdgSmH0iBHmR1AW+rv9fFFqOqDUmm6sa8r8q57E5rz79 tzSWfbs5Q8CmKoS9T/9SIrygQiCsHo0NKg9eJz9lxIBWwWWquN0CJqgEaqHdexbcH2sB XKfHQvvlbgQ0UIh/GdULN4F6kSIsS2ftd5cqAf8IvV2bV6TBHIgn4OaD7CqWeETSNAxu 8Z1025f2i6w547gzP/NwkTv5/CkkdrShWF6ebMc3hUMmKfLTBh5zRhaIBkIbjIM404i+ My9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TxMvyaWywNK2VGV++11XBN7xYt9nyrH/rxyoas9awys=; b=c8YHy/Dq8hLZdp0kaxn5n6w0Qy6/MKfs19nW0oPlLiz0MwaRtR6rXBll5A9qwkZCrj xLRYlBtqKAg4vw2w83NvDprkDNB3iA84uD/6t3W1b2DexgNzBKsfru7NeTdEAolfVbq2 mog1KAJjrviCZNeBUQqnGNuD9Io6/lHrLNSo4Wcgk3UuHY10y1FPMXwyq3aOV9qdmOc2 cS3pWEQZ+49jTrBNse0b29rgtZbMGdVQVoyoLeYR+aC4CLhw/OzZV/Ur2gANRlVNEsck P9NePWRX4YF7T+zlZPSOt174jiLkdEd5v+SmCOTWQgESpOSkL+OifHMZtvKxtqld3f+/ 9XdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cYci+xZ7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a17090a640300b002199ffff83asi6791172pjj.186.2022.12.05.05.57.48; Mon, 05 Dec 2022 05:58:00 -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=pass header.i=@kernel.org header.s=k20201202 header.b=cYci+xZ7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbiLENMt (ORCPT + 81 others); Mon, 5 Dec 2022 08:12:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbiLENMp (ORCPT ); Mon, 5 Dec 2022 08:12:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8D2F003; Mon, 5 Dec 2022 05:12:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 224B761028; Mon, 5 Dec 2022 13:12:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B7CFC433C1; Mon, 5 Dec 2022 13:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670245963; bh=1QbzamV3A2qmrdEpK1J1pOC6A2KL2YT6USyTTfDVch4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cYci+xZ75sEEbuYfddls/Isa7RPZUEXnGzSfTxjupZXlCwi0fK6DKK9d/cVb4K6uQ 89ujVOaZBmtDGDCclvXGV5pvCXQ901jNck95YGRI+ETj1FdRfz8y1pu7p73VONyHGw DYuf1mpnhRsyrBtXPm9GFR1eWQHTyl0b0nlFAjk0+a9CFGSaxUWf3FOvHCeXnSZo+g 1c7aptmt8p7rR1PAc0HPH4+WaLm7uy3MZCI+rMwETSNBeDkHZnYjhIzSJ04vs/aOpg LOd51XKtglMCyuIywKs6+8Rhzyd/lqS7JfGtWWRtoI0J49WOCvVXNxLQPyZG+r23S1 5uGfzc/BQhOdw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p2BH6-0000p6-Gc; Mon, 05 Dec 2022 14:12:48 +0100 Date: Mon, 5 Dec 2022 14:12:48 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: Johan Hovold , Bjorn Andersson , Alim Akhtar , Avri Altman , Andy Gross , Konrad Dybcio , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: ufs: qcom: allow 'dma-coherent' property Message-ID: References: <20221205100837.29212-1-johan+linaro@kernel.org> <20221205100837.29212-2-johan+linaro@kernel.org> <20221205115906.GA20192@thinkpad> <20221205122018.GC20192@thinkpad> <20221205130048.GD20192@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221205130048.GD20192@thinkpad> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Mon, Dec 05, 2022 at 06:30:48PM +0530, Manivannan Sadhasivam wrote: > On Mon, Dec 05, 2022 at 01:27:34PM +0100, Johan Hovold wrote: > > On Mon, Dec 05, 2022 at 05:50:18PM +0530, Manivannan Sadhasivam wrote: > > > On Mon, Dec 05, 2022 at 01:07:16PM +0100, Johan Hovold wrote: > > > > On Mon, Dec 05, 2022 at 05:29:06PM +0530, Manivannan Sadhasivam wrote: > > > > > On Mon, Dec 05, 2022 at 11:08:36AM +0100, Johan Hovold wrote: > > > > > > UFS controllers may be cache coherent and must be marked as such in the > > > > > > devicetree to avoid data corruption. > > > > > > > > > > > > This is specifically needed on recent Qualcomm platforms like SC8280XP. > > > > > > > > > > > > Signed-off-by: Johan Hovold > > > > Yes, it would be a valid, but it will only be added to the DTs of SoCs > > > > that actually require it. No need to re-encode the dtsi in the binding. > > > > > > > > > > But if you make a property valid in the binding then it implies that anyone > > > could add it to DTS which is wrong. You should make this property valid for > > > SoCs that actually support it. > > > > No, it's not wrong. > > > > Note that the binding only requires 'compatible' and 'regs', all other > > properties are optional, and you could, for example, add a > > 'reset' property to a node for a device which does not have a reset > > without the DT validation failing. > > > > Then what is the point of devicetree validation using bindings? You're still making sure that no properties are added that are not documented, number of clocks, names of clocks, etc. > There is also a comment from Krzysztof: https://lkml.org/lkml/2022/11/24/390 Speaking of Krzysztof: https://lore.kernel.org/lkml/20221204094717.74016-5-krzysztof.kozlowski@linaro.org/ Johan