Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1306440imm; Wed, 17 Oct 2018 17:43:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV61yWMnrSjMdwREnkmdR3N6t8zgF7U2kWlxMV+bVUpoZIEBz3hORKYlt/5KvLVqyqT1iPfS+ X-Received: by 2002:a62:6041:: with SMTP id u62-v6mr19716444pfb.110.1539823396605; Wed, 17 Oct 2018 17:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539823396; cv=none; d=google.com; s=arc-20160816; b=e/rFbb1aHSseAk3bH9Sf5bVUAdiOCiZfYSwl1c9qN1cwZX32zphK3dkWZ7vHZk0eU2 yUt69f02s5WwwMH7ZLOHpx9q/S/naXzQ/h6+uoFgLlGOzZtOUcSMI0B1vahR0agzORbF 2euJJ7hNH7fU4ZWAlLm8yZdSRtc3rLY0tUd5As8M+uv29p2b0q/z3rA/livgwOrzmU6I T+ePxrjql+FxEk1IFsn7F8rbQGUtoywH9qIZgabarknydS5Vl4/nZtyC1NLCKSMPAVXW DOb7GPIMvwxKqE7Bwbwkowf+zBu8Ml3gCu6ctpwhMpWH5b2QuSnSKLudlrD6F6vkKmEn TSzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YPSWkYi4Yn6BF9jSje7icF8G7gqvw0roJ+UMVgRDUJk=; b=DRllWfAH0YWirX9awIQPVi2OPDoGxvZlMCCCCbMJACuhnXbOFD84bKTQzJUSpR4rk0 pvNDbMiAY1o6QXw6xUap8KhfMr+V+xNehHulOM9IceV/Qw3cn0F0+4ThzzO1B8cFst93 UA4pL6Q1PVIFXhbcgivgAfUANLZW7nuX0+TGiYnhzHVYVD0T4MXlEEB+O7rfFiff62Hh KGwzt87ZeSZAzoGf4JNHzTYiTygsisW0XVNy1A5YzVGJx/7ik4FueL1ihA7hR2vQu6p6 f9zNJJQR0j5naTEludOHYF/yCgpyVOoXERjv1EHKL7IG4+sHtcNjAq8bWk5PRQYzka03 Abtg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6-v6si19212183pgf.303.2018.10.17.17.43.00; Wed, 17 Oct 2018 17:43:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727392AbeJRIkd (ORCPT + 99 others); Thu, 18 Oct 2018 04:40:33 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46999 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726644AbeJRIkd (ORCPT ); Thu, 18 Oct 2018 04:40:33 -0400 Received: by mail-ot1-f68.google.com with SMTP id o21so28078605otb.13; Wed, 17 Oct 2018 17:42:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YPSWkYi4Yn6BF9jSje7icF8G7gqvw0roJ+UMVgRDUJk=; b=tk7l5Q4J6VNTQgGNXBYH10jVyi419lTndCIHOztL30fue/UWZA98DuL1Hw67eXCsCF yKSyPmgCb0veHjL6+EZMjkpwf234ZbFxUtobOfD/sQNHVfJ1uYt2MpQd4VwD+uTHd/fo 2ZdhjP7iwzmf1jZb1gzDlZWNbj454yEe1VeLXa/YNtTJTenmZH280GP6PXuvpIRbfXFX dkpltoTq/4bWzpFBPtfbygZHFKJze17G52r9Zw2RA7LQfrfbV6WETIXXFhrB/5IgNBL6 CrV8T88WqCVmBKUASV4aUDKIMdnLcpjg9RsyEKW/SD3V6eHVxyGLixbLyNIiO+kDnc7P KXdQ== X-Gm-Message-State: ABuFfojubhS7b1u/g+e6caSXejHpPF5LXfCgisKIFxQpBDzPfhoZXnK+ VUrjXeH0A4ZEVW/ZZTgCUg== X-Received: by 2002:a9d:4c0b:: with SMTP id l11mr17570057otf.355.1539823335632; Wed, 17 Oct 2018 17:42:15 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l10sm5893764otc.64.2018.10.17.17.42.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Oct 2018 17:42:15 -0700 (PDT) Date: Wed, 17 Oct 2018 19:42:14 -0500 From: Rob Herring To: Douglas Anderson Cc: "Martin K . Petersen" , Can Guo , evgreen@chromium.org, Vivek Gautam , linux-arm-msm@vger.kernel.org, sayalil@codeaurora.org, asutoshd@codeaurora.org, Douglas Anderson , devicetree@vger.kernel.org, liwei , linux-kernel@vger.kernel.org, Mathieu Malaterre , Mark Rutland Subject: Re: [PATCH] dt-bindings: ufs: Fix the compatible string definition Message-ID: <20181018004214.GA5937@bogus> References: <20181012213926.253765-1-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181012213926.253765-1-dianders@chromium.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Oct 2018 14:39:26 -0700, 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(-) > Reviewed-by: Rob Herring