Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5904835rwb; Mon, 5 Dec 2022 05:46:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sGlHUBfIpIdChBG+AkG3JBqmY4OAggbdeYhVy3LenXnbK0r3o7LBxlLZtdyQIjLN2jNso X-Received: by 2002:a17:906:2ccb:b0:7ad:9892:921a with SMTP id r11-20020a1709062ccb00b007ad9892921amr67923690ejr.506.1670247965429; Mon, 05 Dec 2022 05:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670247965; cv=none; d=google.com; s=arc-20160816; b=sMxxeW8oOGyKfsYX0JF7zR2Tr3RJKz/g8uVdHuN+Iqo1d1435jmK4X7x/lluc/8nr/ NvEIK9BpQL66x3aliyToY9LeedOhzaeQsf7F5ni8kfeWG1K51dx34pvXZwmmWpKLos2l OeV70dsr1JmNwXbtYlHFm3yyTSiWuWLa4PvjeRN7MXh0RMKA9GC9RDx17qLZZEloeFFQ o6iTZCuD6J6+JXY4qpcjJGkZE1ZZQhkDKvdsgHBiMrZTaByhuBrwhad+SXZpXTQFNDfu yndhYDR00ahnf1DRzPXCwWNtLfh13mS5Z7tIzOUXKRiDVzK7T/hnZGGlbQI5lsXnuTkl 8C4w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7sTPl2CwcyL7NYDti5yrOYtN19f0pJQ8P3lm7QlXrGE=; b=p4ET7+jsbw6j51c9b8uM+ziygZBV7U1NRbEKHdADrqfsnUMzLl/JwzI0SLxBQ7ad2U rnJaiMlcwvgulk2OK28sunCajFwAd86yST/ccAyoXPIkyggW833tcki1fhMuS2C8dO4H YrLd52cNL+Ja+A3X8wWTSiuxoh3Mtn7ax5qv2wHAlp0m9PqH1Nlxjuxv9WzXbZuSd0LO H66peHP6Fkr3EUGKfhRuRrdMRikM6FacWBZBX8sXyFtA8TA4sUTMNjgki7l393raUaby 2lDVkeCT93o2k+zgyvKKODS+1owtDvfXv9aexu3YCOvBB7UKJpI6z/jekvlGk/wrhmQP upHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRYEKZZs; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a26-20020aa7d75a000000b00469d667117csi11199869eds.167.2022.12.05.05.45.44; Mon, 05 Dec 2022 05:46:05 -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=@linaro.org header.s=google header.b=XRYEKZZs; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbiLENhY (ORCPT + 82 others); Mon, 5 Dec 2022 08:37:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232012AbiLENhU (ORCPT ); Mon, 5 Dec 2022 08:37:20 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4491CB35 for ; Mon, 5 Dec 2022 05:37:19 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id 21so11362133pfw.4 for ; Mon, 05 Dec 2022 05:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=7sTPl2CwcyL7NYDti5yrOYtN19f0pJQ8P3lm7QlXrGE=; b=XRYEKZZsMG7OHUWU8pDePIfLrWJeGy6oWYI8/6PzK7kPXNtXWvHrSK+Ym4qDdMa2sB 4u1UEK9xRjIFBJzxEQOR/+GRtlpgPNqkHD8RawO9SxgbjJ0dh8CccomTKM7Hk/sz1ad4 T5aEJbMofGqXyUev5o8n4vzSInYiEk2mhFu9Meh4WI0+qIBRWb29G46KfNGj0j9gY3dD 1JVJJ+uY2UqQBGzUM2bnhnGQrX0ViINfjqDeT8MyzgLFAhMSCbAplzvDDkWThtPE+uea Oz1Kfi6fxbFzyYQ6U75oz+mgmcRbQeV/dLL+5sfxOlO0iMDaAbFWS3RdGEMIHLfy2iLs f45Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7sTPl2CwcyL7NYDti5yrOYtN19f0pJQ8P3lm7QlXrGE=; b=1iA6hNEoKhax11GvorWW5MQ7Xl9llNMo6lV+mvdgp4yI88AV+UDYup73/zqnsZvYwT Flj0IqACa463EJ3Xd+wQjCxGJynGNXyN6qscm4STcgfZuSfCApYy5UuCv6O+VfR6tkf1 0ZmRJzGQDRJR1t6sBW0eK6gawo0AoMFwQr8zNCvcWl2+K5IwSqrrI9nPiAR3bnO4icKb OcNSaHdfLM/PQkWE8dALpB1AIu00V7+NZCqoPyNVWGqrCb0Go+o506Z8JZK4qjNSlUUQ 2OX5xueNaVeLOVZOwPxshZ8sUDJKMLcQeVPPLqcKUdeXvp7rQIn7m9+2BB7Qk9720oon GU2A== X-Gm-Message-State: ANoB5pmb35SkAPb+fgK3fzhGLS2NzdEVp3K+Tz/90GcL1jrcdg32N5mz UTnvBCe/cGW6W3j+aEdN0jyj X-Received: by 2002:a65:4c42:0:b0:477:f872:8b6 with SMTP id l2-20020a654c42000000b00477f87208b6mr39191831pgr.457.1670247439018; Mon, 05 Dec 2022 05:37:19 -0800 (PST) Received: from thinkpad ([59.92.98.136]) by smtp.gmail.com with ESMTPSA id x14-20020a170902a38e00b0017f36638010sm10515163pla.276.2022.12.05.05.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 05:37:18 -0800 (PST) Date: Mon, 5 Dec 2022 19:07:12 +0530 From: Manivannan Sadhasivam To: Johan Hovold 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: <20221205133712.GE20192@thinkpad> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 02:12:48PM +0100, Johan Hovold wrote: > 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/ > Heh... I will wait for him to chime in then. Thanks, Mani > Johan -- மணிவண்ணன் சதாசிவம்