Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1140705imm; Sat, 22 Sep 2018 20:45:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV600lLHISrEHQt1eB2/pjN95fSc9TfRnustmryaV5G9ttzlECG9uQlZjXJEvConc3kMvwlDO X-Received: by 2002:a63:f206:: with SMTP id v6-v6mr4226531pgh.319.1537674322519; Sat, 22 Sep 2018 20:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537674322; cv=none; d=google.com; s=arc-20160816; b=lNLtZ26aLocaAtHGpWTMKukpTsAz3FVoPHWxIiNTwsVZ28mq+e95Wv0BiYgTDiCX3q 9+wsqXpZdmRPrvh3rJ139lLmwsO7v2Lj8g8R/JKUMsghkszO/KBRKgo5VRzWH2bnebLu SbqzV4q8I9NN4I+HN8MRrv8/b7WcfNMelrZbHFW0SdEU45psyRjHzUvETV+h6WsoQXoU VcJuZf7t2GNGP6EjElQalwlzstuEGLC4aCIKmrNlxTgIdCkCOs4Mh9Z3ekDlEB6jef6n DP4SWsTSFDMqOx1E8bWt05vbzO4sAk0mz2VY+7k1TlPrNLy9F8d0jwR2EATQdNgRkMIf zkNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=a8W8QpalLehtIpNxyJxBvUYytgQYATfpGtMk9JBjP4I=; b=h/xWzwK9eKtPAQS3BQ8p7IQ6T21ShoMyyJinzVC001/7XM5d9z9pC4dI1oo2J5l0ld 0us7pZ0l+bs4JtHWJclsSJ35ASzGUjZSGA8OSpEGJ/1l2PYFXLPHRhOth2NDidup+gvv pls/nnkI7F1okZfhUMBVinyXgQE7xOQGbztyJb39KHw2/j2pQI+1s8xE5t/wCV7I8Ub6 upaNNlO7joRbMLtyemnTT4W/EsUyfN4NYaz2lBown1av95gree87NIFsi5zWYTdvbQPZ ttNBWWBP0HgpG7h6i53QNIzxSW/AmiEFbGLke6tQowl2vTeW9/pFY9AMMKMjRgR/gfmc jC9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=We3IhKWy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si31586595plp.279.2018.09.22.20.45.06; Sat, 22 Sep 2018 20:45:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=We3IhKWy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726029AbeIWJk7 (ORCPT + 99 others); Sun, 23 Sep 2018 05:40:59 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46252 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbeIWJk6 (ORCPT ); Sun, 23 Sep 2018 05:40:58 -0400 Received: by mail-pl1-f196.google.com with SMTP id t20-v6so4204870ply.13 for ; Sat, 22 Sep 2018 20:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=a8W8QpalLehtIpNxyJxBvUYytgQYATfpGtMk9JBjP4I=; b=We3IhKWyQsOMBGMLZdKLwgZb/3ximD7DcKUniEiCrIZmcvQSgQRRZk5t7qzsr63+FX YgCPy81PlZAJQq0xJPxmo8ENxoPIB2gqlT3gEasA0AYP5/+qKFoDgUVBKqexMDZ9CeF7 vJ/rdv6kbBXkGPghJ04GzZ98E3AqDULNlq/9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=a8W8QpalLehtIpNxyJxBvUYytgQYATfpGtMk9JBjP4I=; b=TynNhkm6wiVUmI60IVrTRj2bUvACqEofM3CMQlkCo8AjJlxfoTQHeVJ8a7SLMYUZ4G /7nvqHidtBorrgBTTeqLpGa3cGSdS7GCCXhTN7EgRpRzP9eMaOrfcIPB+7jiZtr2Vt+e fPJWg0hW1cSU1HtcePxSczrnBIPOFNNAAsxOMaoGD9xVxNkYQU0XPROQkvPBpRGc3abw 2zoiMZPpZjfse7WRkb4bgtfgDPfCgB2KlPNA+KmCwP4YwSzWJXscWHP5JT2mv4cSy30G HT5RkEXyUacAHD93/bcsNxL4UbcPVBxhBT6yfoRAvREWzQ83vbug3lRPKUAVLLfPhXW/ LDxA== X-Gm-Message-State: ABuFfojbzjgJtJIPU8pGqAi6E+5CK23rA3sPSoGgzZh7HbHi/pp4b0H4 MDi30vSZIMjgQzY6fu38yOnQbKjkZMk= X-Received: by 2002:a17:902:8542:: with SMTP id d2-v6mr4790785plo.285.1537674301443; Sat, 22 Sep 2018 20:45:01 -0700 (PDT) Received: from localhost ([2620:15c:202:201:7e28:b9f3:6afc:5326]) by smtp.gmail.com with ESMTPSA id 5-v6sm69897pgt.83.2018.09.22.20.45.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Sep 2018 20:45:00 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Mark Brown , Rob Herring From: Stephen Boyd In-Reply-To: <20180921185106.GJ20825@sirena.org.uk> Cc: Doug Anderson , ryandcase@chromium.org, boris.brezillon@bootlin.com, linux-arm-msm , Girish Mahadevan , devicetree@vger.kernel.org, LKML , linux-spi , Mark Rutland References: <20180920224055.164856-1-ryandcase@chromium.org> <153755105782.119890.8484594239463905156@swboyd.mtv.corp.google.com> <153755522409.119890.5471037050114193@swboyd.mtv.corp.google.com> <20180921185106.GJ20825@sirena.org.uk> Message-ID: <153767430006.119890.17210317555572798122@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v2 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation Date: Sat, 22 Sep 2018 20:45:00 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Mark Brown (2018-09-21 11:51:06) > On Fri, Sep 21, 2018 at 11:40:24AM -0700, Stephen Boyd wrote: > = > > It seems that everybody has misunderstood my email. Let me try to > > clarify. > = > > I'm not saying to replace the sdm845 qspi compatible with a generic one. > > I'm recommending that a generic one is added in addition to the SoC > > specific one. That way, we get to put the generic compatible string in > > the driver and not need to update the driver compatible string array > > each time a new SoC comes out with a new compatible string. > = > > If it turns out later that we need to handle some bug in that specific > > SoC compatible string then we're good to go and we can handle it by > > matching the more specific SoC version compatible. > = > Right, the policy is generally not to have these strings at all. IIRC > the argument is that they tend to either become unclear as the marketing > and technology changes. Where is this policy documented? Is it on the list somewhere or written in Documentation/devicetree/? From my read of Rob's comment in the previous version of this patch, all that was asked was to add another compatible string for the specific SoC. I find the approach of picking the first SoC that the driver works on to be obtuse. I don't want to be reading some SoC DTS and see another SoC marketing number in the compatible string because it makes it confusing to explain to someone that yes these different SoCs are related to each other, but no, that SoC isn't this SoC. Sure it all works and everything is technically fine, but my aesthetically pleasing alarms go off and I don't see any particular downside to having two compatibles. The upside is that things aren't confusing and drivers don't get continual SoC churn updates because the compatible describes the SoC (qcom,sdm845-qspi) and the programming model (qcom,qspi-v1).