Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1475343ybl; Wed, 28 Aug 2019 15:32:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj3yCNfTja5UQO1v6wuBd//2Yb6kYjTTV1ucFka8DZszvkviSFlgKD9tGqGLs2Tfncx0X4 X-Received: by 2002:a17:902:e091:: with SMTP id cb17mr757492plb.168.1567031554126; Wed, 28 Aug 2019 15:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567031554; cv=none; d=google.com; s=arc-20160816; b=bqEvQAmO1QN/Eh1yLJUvDrMX5nSvD6+rXVRzjMbx4XB745XAOU8COJDM+2wwRvsOui VNuCm66Kji2r+90dSXu/xhHhbagqhk6EssUF9HW8N/fiRwNMffuOXR0t4HMP5+YrcTYZ jf+DvLsq2r4SHQ3HkenwVbE3GAs2R+6L+8WIXjSvRg4QwZbiS8deuJV9IyLv+eXKiHv8 nUmz1SIZ6Mp+4Fnny6pYSD2NYZaeUXiMlshYxpDtbbFTim5eMsysAMPsGG255VkcJA2P GIe2W5cTxHKhOFHMH+hhFq7ATq/4SZx3ACMtH0kGOvcjmZLWKgViY63TSGh8MnzgUYYE lARQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:to:subject:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=p4kczEged4PJNYuJuOKUVrGMVyqBPXCMEIi25oSs9zE=; b=o5AceFyUR4nbySp3TxUL4KBl95cJCsrS6OJ3CKNp134bBxqhk8EgS9tO/D4hNXW3QC aUks5qZm5Hm5oo3iH8sQW9Uh30mbHbcPsCb/kpMRRLMfBWaqRS4p3Q9YW4NahAT5IYWS Fo6Tq4EhxzBS4ntTbdiZG04mZ9aH4L95qmIVy2SY+efzGIWGTsyPUClbmF+GLom16hjd 7PFWYjRtq+0upScfbYljbg4b19oE9MH0iAVFxodtiI9eMf8ZKS9rhsSrgADBrl7NvFor BfxoX2yy48K5SWjtns/I4cNgBii9phu2znzHyp+9Yj2hAuzyAu7OmxEuOPSndRFkw2mx PtRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J+0oZUK+; 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 k144si521319pfd.34.2019.08.28.15.32.18; Wed, 28 Aug 2019 15:32:34 -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=J+0oZUK+; 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 S1726894AbfH1WbS (ORCPT + 99 others); Wed, 28 Aug 2019 18:31:18 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39174 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbfH1WbR (ORCPT ); Wed, 28 Aug 2019 18:31:17 -0400 Received: by mail-pf1-f196.google.com with SMTP id y200so679557pfb.6 for ; Wed, 28 Aug 2019 15:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:subject:to:from:user-agent:date; bh=p4kczEged4PJNYuJuOKUVrGMVyqBPXCMEIi25oSs9zE=; b=J+0oZUK+9Yo1u47+ar5On6fbk1R7IVCW8Gt/TLA2mEIJUBhsB0B2kdGCuVcAn6NOUA 2ltzMJiUnbamaWDWxrssuzuAjajeytOxlIEF7/48sE64gpEQpItt7fZLUfHiNwImYzAf Xg4CoYF8tDhYiLL6yV4loyFfs2v5ByVlNUC6M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:subject:to:from :user-agent:date; bh=p4kczEged4PJNYuJuOKUVrGMVyqBPXCMEIi25oSs9zE=; b=kAGZxrkm+1YkdTh5sSIGaYZsg99kvK8N06zU1v2oNJrbaUjFh8uM9al7CH5KtKzKg4 LuGM4mbVCET4zRNHotQyV6KBsBeeHn7IdN2jbS9f9L1m750LKgIwNXc7r5cCeDEU3OWU 133j6oZjET5MItuHni/hEMEea33bmE0MN8i5hK9MY+WAJyyWKY86RJQ2UYSAZRtC2DrS RpH01D3t0s4rE+xiC8VkxhdTPyc3Gwk8eXTMOM1B970IbPeQzqSp2amLDpsqyhawLu9Q 6Oy+WeF45I+5KPeb1pT7iqJ6vmm85osImIkg4eOcgwazhYbamy6xK8u3GSPj5mgAzZ2S CF0w== X-Gm-Message-State: APjAAAXAcFm45HrcqLSSZ4sabpYPFY9fVUDhWSF/JM16lBtgxOVGnCbc lLOCZYVLsSszj4Gejq5+dJauv9MjxfOxjw== X-Received: by 2002:a63:ec13:: with SMTP id j19mr5377502pgh.369.1567031476880; Wed, 28 Aug 2019 15:31:16 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id c35sm191974pgl.72.2019.08.28.15.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 15:31:16 -0700 (PDT) Message-ID: <5d6700b4.1c69fb81.24793.0bff@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190826164625.6744-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164625.6744-1-jorge.ramirez-ortiz@linaro.org> Cc: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mbox: qcom: add APCS child device for QCS404 To: agross@kernel.org, jassisinghbrar@gmail.com, jorge.ramirez-ortiz@linaro.org From: Stephen Boyd User-Agent: alot/0.8.1 Date: Wed, 28 Aug 2019 15:31:15 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jorge Ramirez-Ortiz (2019-08-26 09:46:24) > There is clock controller functionality in the APCS hardware block of > qcs404 devices similar to msm8916. >=20 > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > Reviewed-by: Bjorn Andersson > --- > drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qc= om-apcs-ipc-mailbox.c > index 705e17a5479c..76e1ad433b3f 100644 > --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c > +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c > @@ -89,7 +89,11 @@ static int qcom_apcs_ipc_probe(struct platform_device = *pdev) > return ret; > } > =20 > - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global"))= { > + platform_set_drvdata(pdev, apcs); Why did this move? It's required in the child driver or something now? Is it a Fixes sort of change? > + > + if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global") = || > + of_device_is_compatible(np, "qcom,qcs404-apcs-apps-global")) { Maybe this should be a compatible list instead of two calls to of_device_is_compatible(). > + > apcs->clk =3D platform_device_register_data(&pdev->dev, > "qcom-apcs-msm8= 916-clk", > -1, NULL, 0); > @@ -97,8 +101,6 @@ static int qcom_apcs_ipc_probe(struct platform_device = *pdev) > dev_err(&pdev->dev, "failed to register APCS clk\= n"); > } > =20 > - platform_set_drvdata(pdev, apcs); > - > return 0; > } > =20