Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp632070ima; Wed, 6 Feb 2019 06:00:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IZlVykTJt8iDAgU63lYjQCk0o2SFX6xhL2jy6JvsgqOvpoX/qKq5PaDRjIYQTh12ZTronhL X-Received: by 2002:a17:902:f082:: with SMTP id go2mr10848369plb.115.1549461646001; Wed, 06 Feb 2019 06:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549461645; cv=none; d=google.com; s=arc-20160816; b=s7zxIhORNK/3Ands5IBaAEQjGs61dgYq0c5OwtdbFjZhapVXrbDkwx8WVhF+/76ljx C+qiJ2cvrrI+LHcUiOR6Jxk4FsB+f4y7oJCHVeNTyG3HRO1uhXRmYSS8xJ7UXNmidsx9 qb1neR7ETJJNBzTBx4Zs93/mtUU9V0xfmillH4/tywda0z+rliALra99O03jEHVLz7qG brCV1qAkGkHWCxqWvyd1eqRGyelxZqkSLcBA1F48Glcw0TITcwbh3Qdk46mXlIN9a9gt LD4zuBLNGYKRM1O0/5CZMRSA7rI9cSSmn8QxPrsFdMsRbWHLGXX+LKkiTKJZTa1T3mq6 D4Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uMAhMFNcJW3Z2A+eOMFt+YwjwLzgb1Am4NjuygBTASQ=; b=mVXNFBkma88W9fbsq7wp9arDqYO36A1TbX8A4sYoI/mGfk6PNroJ7isFoyKrYjCwlw YvFNiTiU1xTNYxR29dQyPodTBXOKrZFcdimY1V3Dzj7qCKTv8TuHRNlri4PyOi+MXxnz goO0tPwRj88/iyUOWSfal2vm89B081wnyy0RXgughJlBE/nQ7dyth6MrS5d45niQT5Ks m/6CILtyVSpUUK4SuGamXzp2oOl+Fqo92iiLyP6w0ymLKwV4EYE/N336BjPdZ2lMjuAK UPeOB2oqKBjtZ8unt4ipFtZ7aWFXwU0dJYsM5ofmZQD6/aBWbMoqmXhn+gDG5CyjvYgG ehwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h35si5864643pgm.536.2019.02.06.06.00.29; Wed, 06 Feb 2019 06:00:45 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730308AbfBFN7o (ORCPT + 99 others); Wed, 6 Feb 2019 08:59:44 -0500 Received: from ns.iliad.fr ([212.27.33.1]:52438 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbfBFN7o (ORCPT ); Wed, 6 Feb 2019 08:59:44 -0500 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 377F221A34; Wed, 6 Feb 2019 14:59:42 +0100 (CET) Received: from [192.168.108.68] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 1622121A1F; Wed, 6 Feb 2019 14:59:42 +0100 (CET) Subject: Re: [PATCH] dt-bindings: ufs: Fix the compatible string definition To: "Martin K . Petersen" Cc: Douglas Anderson , Evan Green , Rob Herring , SCSI , LKML , Alim Akhtar , Avri Altman , Pedro Sousa , Bjorn Andersson , Andy Gross , Jeffrey Hugo , Vivek Gautam References: <20181012213926.253765-1-dianders@chromium.org> From: Marc Gonzalez Message-ID: <1ca83453-89e1-82c1-2720-987407bd9fa8@free.fr> Date: Wed, 6 Feb 2019 14:59:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20181012213926.253765-1-dianders@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Wed Feb 6 14:59:42 2019 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/2018 23:39, Douglas Anderson wrote: > If you look at the bindings for the UFS Host Controller it says: > > - compatible: must contain "jedec,ufs-1.1" or "jedec,ufs-2.0", may > also list one or more of the following: > "qcom,msm8994-ufshc" > "qcom,msm8996-ufshc" > "qcom,ufshc" > > My reading of that is that it's fine to just have either of these: > 1. "qcom,msm8996-ufshc", "jedec,ufs-2.0" > 2. "qcom,ufshc", "jedec,ufs-2.0" > > As far as I can tell neither of the above is actually a good idea. > > For #1 it turns out that the driver currently only keys off the > compatible string "qcom,ufshc" so it won't actually probe. > > For #2 the driver won't probe but it's not a good idea to keep the SoC > name out of the compatible string. > > Let's update the compatible string to make it really explicit. We'll > include a nod to the existing driver and the old binding and say that > we should always include the "qcom,ufshc" string in addition to the > SoC compatible string. > > While we're at it we'll also include another example SoC known to have > UFS: sdm845. > > Fixes: 47555a5c8a11 ("scsi: ufs: make the UFS variant a platform device") > Signed-off-by: Douglas Anderson > --- > > .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > index 2df00524bd21..69a06a1b732e 100644 > --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > +++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > @@ -4,11 +4,14 @@ UFSHC nodes are defined to describe on-chip UFS host controllers. > Each UFS controller instance should have its own node. > > Required properties: > -- compatible : must contain "jedec,ufs-1.1" or "jedec,ufs-2.0", may > - also list one or more of the following: > - "qcom,msm8994-ufshc" > - "qcom,msm8996-ufshc" > - "qcom,ufshc" > +- compatible : must contain "jedec,ufs-1.1" or "jedec,ufs-2.0" > + > + For Qualcomm SoCs must contain, as below, an > + SoC-specific compatible along with "qcom,ufshc" and > + the appropriate jedec string: > + "qcom,msm8994-ufshc", "qcom,ufshc", "jedec,ufs-2.0" > + "qcom,msm8996-ufshc", "qcom,ufshc", "jedec,ufs-2.0" > + "qcom,sdm845-ufshc", "qcom,ufshc", "jedec,ufs-2.0" > - interrupts : > - reg : > Tweaking CC list. Martin, this one's for you, according to Rob ;-) https://lore.kernel.org/patchwork/patch/999046/ FWIW, it has already been: Reviewed-by: Vivek Gautam Reviewed-by: Rob Herring Regards.