Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3377322ybp; Sun, 6 Oct 2019 10:35:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLCD1502FXN9Q+0D7Lt8UKmqoSVHDTrKfEQKup1Elji7E6wkCeAdF9dGhXw5EtzE4N/CvQ X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr20521293ejb.145.1570383344682; Sun, 06 Oct 2019 10:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570383344; cv=none; d=google.com; s=arc-20160816; b=DQ09faizHn3tp+aCSN1VZxZxE9AnzdhUHP1KzAv8fd5SjOzztWgYg21wZ6krEpGm8A n6PuBIRROVg6FTTZig0/X1Js9EL5Z8IQPElftkjEcpP6eE5zfdT/YJNUHyqynJlFQrHK vmFyOGl9RrXVDO2fyTWxzQO57QLDSyB/q1pCV9qvT2RUNW09qSSxhOwXrJ0n/urTrL5k Hk6r8GmBRe+48O21XQui++SUC2h/+cBWnfG5dPERDYkgwGFxqcsGS3fi+0F3juBbrFc5 XdgQD9hzRVlFxeo+Zw6rw2+asBGIUTXQjWvFbCPqWWi8YTlc+jQEBi4yPhESddGk0/lZ fpRQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H0GHTw51gwDCTYxFMSdXK8pdirE2aPHxXxnmzecIp5Y=; b=LZw2Y7mKfjbF4cXINcXmcCc5IRb3D+x+D16wFGX71S+PoAHRQgEi7vRR6/ZLhEIYtV kJuSRbAgHU1IXTZANEh/QvBDGLaQ0WSk1yhSZQkWw+slkXrXYudDCLOdKXlwG9OUs2k9 cxnFTM7OhTaZlQIQZEZqo+Gnx3LOA0AWZ438rnzsS8QX8v192mThQvxWE/hKJwhCmaQr A/pu93Tar5N+qVm2uduJXE0rvZtZoNu4H4SxyAJ7IUb79XSLeY5u5A/BzxUUHwgNhtg/ bZ3Obk1BCORpORgFMQla183SwSP6lCi6eC+w8+ZJNm/RVO2SKfbVBk+wAuUAcwMKLnsD FGdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a7O6W5dS; 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 v10si7650944edc.224.2019.10.06.10.35.21; Sun, 06 Oct 2019 10:35:44 -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=@kernel.org header.s=default header.b=a7O6W5dS; 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 S1729484AbfJFRbo (ORCPT + 99 others); Sun, 6 Oct 2019 13:31:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:57964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729467AbfJFRbk (ORCPT ); Sun, 6 Oct 2019 13:31:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C4F0A2087E; Sun, 6 Oct 2019 17:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383100; bh=JpYnaaRnpqG1IJ9LpF43Ky4t2CfiGETqsYi76zPHC88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a7O6W5dSXPbSKfiMKeR3+zfkflS/yMdEay4OqQgANHpm3mXZALn+OaWLt8svpVNqq Glv7nW/04fevPgKOFfu2ylanIcrGTNa6IySFX3ShXYrWZ08A74iMSWcLV4YUDzj1KF GTx1T9iZyVTgbNooJNoEXPNwRKwNvLuMIX38yIz8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Niklas Cassel , Jorge Ramirez-Ortiz , Bjorn Andersson , Stephen Boyd , Jassi Brar , Sasha Levin Subject: [PATCH 4.19 043/106] mbox: qcom: add APCS child device for QCS404 Date: Sun, 6 Oct 2019 19:20:49 +0200 Message-Id: <20191006171142.875607212@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171124.641144086@linuxfoundation.org> References: <20191006171124.641144086@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jorge Ramirez-Ortiz [ Upstream commit 78c86458a440ff356073c21b568cb58ddb67b82b ] There is clock controller functionality in the APCS hardware block of qcs404 devices similar to msm8916. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson Reviewed-by: Stephen Boyd Signed-off-by: Jassi Brar Signed-off-by: Sasha Levin --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 333ed4a9d4b8f..5255dcb551a78 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -55,7 +55,6 @@ static const struct mbox_chan_ops qcom_apcs_ipc_ops = { static int qcom_apcs_ipc_probe(struct platform_device *pdev) { - struct device_node *np = pdev->dev.of_node; struct qcom_apcs_ipc *apcs; struct regmap *regmap; struct resource *res; @@ -63,6 +62,11 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) void __iomem *base; unsigned long i; int ret; + const struct of_device_id apcs_clk_match_table[] = { + { .compatible = "qcom,msm8916-apcs-kpss-global", }, + { .compatible = "qcom,qcs404-apcs-apps-global", }, + {} + }; apcs = devm_kzalloc(&pdev->dev, sizeof(*apcs), GFP_KERNEL); if (!apcs) @@ -97,7 +101,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) return ret; } - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global")) { + if (of_match_device(apcs_clk_match_table, &pdev->dev)) { apcs->clk = platform_device_register_data(&pdev->dev, "qcom-apcs-msm8916-clk", -1, NULL, 0); -- 2.20.1