Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp34444imj; Fri, 8 Feb 2019 14:24:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IYFVP/kfr3s4y6aYtDBT/f7Xu7jvbYSLdYlT588adCMAwsWBzG/qeGt0zvGCBps52GqzOAQ X-Received: by 2002:a17:902:9a9:: with SMTP id 38mr24880387pln.204.1549664669198; Fri, 08 Feb 2019 14:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549664669; cv=none; d=google.com; s=arc-20160816; b=j40FgkmvkXp/Us6Uzlccb4pABP1mouE87ZKQrnkbattLhfLkYIcUG0dZ9AoQHd72AG Bfiyq0ym9e6rEq9eLNNUGOOcAoFtgK3L+fNYkXrxBE9Wv7F+DsSB/J8CWOLrispLtjMy uJmj3xFUOrvMVX0cQVU3VlYgbzfgv/rQKvKcUv007kehOvWS224Q3FRi25VwWpwj5gUN B0oPJtiYOL1qIKYL8VrGzI8S2KZSk7P6HcHjbnIKR8DOjbA8f378fhaxUAwR0xcxoW/c jiCd9pkBBgPztHOEY8sC764cg9Xhof1E0q6rY5+6KUiTMjxxVDUf4Asec+Yfsz0ABWxJ 4v3w== 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:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:from :subject; bh=MgDwUpwNTaMfHtVaV30gMwymwhyFq/82lKUyvsU+IgU=; b=SY1az2FSJNSmnadI5aVb7GwrtxJRHZ7/r42Zrcyt11nXqXmx8DZf+8eu6CVD9Rmfgi o74aDtVPD4SUa/vMsd2DOAc3Q0F+PGGuSzxMz4PHpHIiKiJco7rgbkclHHcmzC/3Asdc 0d5hTgtguC4JbUDY2XzaMCLq9LKHINUw5tuAOVkp/hNdvOojbQptV6/2h3P/mayxqbBE EkjWm3+Xhpt61+vvbdah2ZkpXOiaXClDW5Mr/1OeoDMlJH7voitTR3wWHrDdM6JjemZU J3+s0UsXY8BS/UwPkA00QuyQo3N0rTLrMSWec2bDBFKGXLNhihaz2BSi20lr6aJnYJfD Q6dw== 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 3si3486371plh.177.2019.02.08.14.24.09; Fri, 08 Feb 2019 14:24:29 -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 S1727151AbfBHWX4 (ORCPT + 99 others); Fri, 8 Feb 2019 17:23:56 -0500 Received: from smtp4-g21.free.fr ([212.27.42.4]:40342 "EHLO smtp4-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfBHWX4 (ORCPT ); Fri, 8 Feb 2019 17:23:56 -0500 Received: from [192.168.1.42] (unknown [77.207.133.132]) (Authenticated sender: marc.w.gonzalez) by smtp4-g21.free.fr (Postfix) with ESMTPSA id EAC4519F58A; Fri, 8 Feb 2019 23:23:18 +0100 (CET) Subject: [PATCH v4 1/7] dt-bindings: ufs: Fix the compatible string definition From: Marc Gonzalez To: MSM , SCSI Cc: Jeffrey Hugo , Bjorn Andersson , Andy Gross , David Brown , Evan Green , Douglas Anderson , Alim Akhtar , Avri Altman , Pedro Sousa , Rob Herring , Kishon Vijay Abraham , Liam Girdwood , Mark Brown , Martin Petersen , LKML References: <09ce9c20-c47b-f936-a8a9-6c8ec8f0f867@free.fr> Message-ID: Date: Fri, 8 Feb 2019 23:11:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <09ce9c20-c47b-f936-a8a9-6c8ec8f0f867@free.fr> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Douglas Anderson 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 Reviewed-by: Vivek Gautam Reviewed-by: Rob Herring --- .../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 8cf59452c675..5111e9130bc3 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 : -- 2.17.1