Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1215676imm; Wed, 15 Aug 2018 13:32:39 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx7pdoHDGG/3tGjDN+mkhNYoXvu3nch1j9NZ9S7WhU6BsS6wra8oikHrEkuXkPm1Srr9Sk0 X-Received: by 2002:a63:cb04:: with SMTP id p4-v6mr25723026pgg.197.1534365159153; Wed, 15 Aug 2018 13:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534365159; cv=none; d=google.com; s=arc-20160816; b=ubfhY82Fpw61AuXv3ZG1/KYkMIRxzMO06cwQ/ZwjtjEQmDh47h0DQO+Mehi9s/8+mC hyeqIQd2cvkyAgdfQ6mpssoUFRatXL1iETKkOi4J2Kl6n8nx/sLozLroe+oE8dN/Ia5g oOntT1IYcQG+dFRiUpmF8KCdDxjRk+8uFDLXwv5WwARDMl5IGcZtDMYD1xxyC1B1wuB8 N6yKz6KorhDPAEMNAzIIyUP8X9rbswqoLZLJlWqpInjaQd7DABsL1Lf8HjAm/LVKu1FM wZWQv8rpH6fbUh8c201mEmxNUMq86veutf5FeIq5HOyRCniYVkg8iH/ZaWxVIoOzqpgb /iKQ== 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:arc-authentication-results; bh=qOjUH4qYQvjYzgys/8mbbGuFO2quu1RbPGcFQbEsagM=; b=y6yZ95bFCFgUtwaY+UaSBhQEuo7QHfAHIyUSXVtKwczAfsQGrFfPFZPxxhMqn/GC5N ajOrMniH++qRskF9W+B4X0iIu4L7bYTgvwth/BMjLJ6ArWxfaBjLcTlKPiGi4zMD0YE2 HonG7YwaLR7A8eH2WI9OT6vxQOL/+3Rvc5J4dIufOcoKHtwK5Rc2wpr6zhYo3cXvtdhq bVXanvEGjZEjRTbizo1jVwSy9Wavv6tDq5juwORb0uO2OpYGQOlRJN8ttx0+9iM9jdF/ jHTOjnGuKcV/XoIcN7lJ4wx2zlVV3GHVVU1lDLTfUSRQpxhkVzi/UsF8j1hU8HtDVqiu vCBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=default header.b=iVSUqAKI; 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 be5-v6si20308568plb.67.2018.08.15.13.32.23; Wed, 15 Aug 2018 13:32:39 -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=fail header.i=@kernel.org header.s=default header.b=iVSUqAKI; 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 S1727505AbeHOXZJ (ORCPT + 99 others); Wed, 15 Aug 2018 19:25:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:57314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbeHOXZJ (ORCPT ); Wed, 15 Aug 2018 19:25:09 -0400 Received: from localhost (unknown [104.132.0.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0ECEA21534; Wed, 15 Aug 2018 20:31:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534365088; bh=b/EHUDJOKwklroxxSlgkptrKKb1wlkF/HaA36CzKDf4=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=iVSUqAKIH4NZIo5wFwAJSdRr20NaILx3SXGUIyY5W6H95DlDB628uiMqk0IbrfElh u5PtulpeLbsQOhCegzkPD6STJA6NOasDHfbxa/GlpBDOnIG9xJCbsJHK0dGPDJL99p gVLeKDtn6eI+ajhw/ODYbpEAZe0ib3asCgJO5Las= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Craig Tatlor From: Stephen Boyd In-Reply-To: <20180811162453.10930-1-ctatlor97@gmail.com> Cc: ctatlor97@gmail.com, linux-arm-msm@vger.kernel.org, Rob Herring , Mark Rutland , Andy Gross , David Brown , Bjorn Andersson , Sricharan R , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org References: <20180811162453.10930-1-ctatlor97@gmail.com> Message-ID: <153436508626.28926.521245329376033797@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH] firmware: qcom: scm: Add sdm660 soc compatible Date: Wed, 15 Aug 2018 13:31:26 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Craig Tatlor (2018-08-11 09:24:50) > Add the compatible for SDM660. > This does not need clocks to do scm calls > = > Signed-off-by: Craig Tatlor > --- > Documentation/devicetree/bindings/firmware/qcom,scm.txt | 1 + > drivers/firmware/qcom_scm.c | 3 +++ > 2 files changed, 4 insertions(+) > = > diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Do= cumentation/devicetree/bindings/firmware/qcom,scm.txt > index fcf6979c0b6d..499608fcc864 100644 > --- a/Documentation/devicetree/bindings/firmware/qcom,scm.txt > +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.txt > @@ -11,6 +11,7 @@ Required properties: > * "qcom,scm-msm8660" for MSM8660 platforms > * "qcom,scm-msm8690" for MSM8690 platforms > * "qcom,scm-msm8996" for MSM8996 platforms > + * "qcom,scm-sdm660" for SDM660 platforms > * "qcom,scm-ipq4019" for IPQ4019 platforms > * "qcom,scm" for later processors (MSM8916, APQ8084, MSM8974, etc) > - clocks: One to three clocks may be required based on compatible. > diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c > index e778af766fae..ee113ceb5d41 100644 > --- a/drivers/firmware/qcom_scm.c > +++ b/drivers/firmware/qcom_scm.c > @@ -603,6 +603,9 @@ static const struct of_device_id qcom_scm_dt_match[] = =3D { > { .compatible =3D "qcom,scm-msm8996", > .data =3D NULL, /* no clocks */ > }, > + { .compatible =3D "qcom,scm-sdm660", > + .data =3D NULL, /* no clocks */ > + }, Do you need to update the driver? It looks like the scm driver should be changed to just try and get all the clks it can and treat them as optional clks, i.e. don't fail if they aren't actually listed in DT. Then we can just have one qcom,scm compatible string in this driver but we're free to add different compatibles to the binding for all the different SoCs out there.