From patchwork Tue Jun 25 16:47:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 167736 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp5779359ilk; Tue, 25 Jun 2019 09:47:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6gn7c8J26WWJvU70/k3r/mT0TdRcIl3LRMxyPtyINypxYGA5JtfhmI2Kbf0EnuYumRsUk X-Received: by 2002:a17:902:8f87:: with SMTP id z7mr127386186plo.65.1561481268596; Tue, 25 Jun 2019 09:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561481268; cv=none; d=google.com; s=arc-20160816; b=jWAshdzuClrWUjVuqo0bIpQniTXqwlZcMo/xVGWVd7fKvemT5JNey7XL0aVu65XudH 0aWLmAe8Fitw/Q4LMkLXeue02DbBrl0VEIEfej0JKMHs9ycNQKDg1Z3VH9DkK5VcacqD 9iFTs5XdcTHPspZKxqUEC1MMgCz+eCkiR5kw45IJZuHDeePeIMukBSvWgYR++wHIFhAG Kpn2p2ZXA8y2FwVhWkQY/wIzZiqwdXBEeCZfunGXJOU2NPVwwWRqIIlS0RqrMecgwlcY 8w+gXwA3ubzOTaUUnExBefcd0r5JGmRmNLL68HLKQaXgQkednl/9I+5IJu3gYHDEtoNT PuNw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DnmUUmlBFAOJ6r0lO2j/n/ft2AG+WeYI8h0EcXuhXCs=; b=hsrxF/eOdyEMFtakidPn5ll398aDEHdie+IVLcPXLwsnuaJZlryfdYWtzsc/xwYNQ0 SiFB51nlVRk945MjBkgULOUPWcaO+AjBXaGfsJc1yTq9jt6j2JMGSHJhbFZTe7OJw3nn Cie01vGV4EE9pVCktzVT4ONbarzZOAX9R5hB+GfK9+nZNyno/fGZBt/Y24+nHwLg5rsx bLdfkDNLHiN6vOMrGTK6OMo9levmfim6/WNKYS1Ivcw32FPlatsyZYdSuJo0EsBzwWp+ sLPltzosd0I/ujr6sGBDfsfeeg0LISjUsecP5/q1q+eauwDPvUuz5bdZidOVSmE1GlAr KEsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xbo7XSFN; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si3181157pjp.75.2019.06.25.09.47.48; Tue, 25 Jun 2019 09:47:48 -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=@linaro.org header.s=google header.b=Xbo7XSFN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731354AbfFYQrr (ORCPT + 30 others); Tue, 25 Jun 2019 12:47:47 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38215 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730679AbfFYQrn (ORCPT ); Tue, 25 Jun 2019 12:47:43 -0400 Received: by mail-wm1-f65.google.com with SMTP id s15so3676191wmj.3 for ; Tue, 25 Jun 2019 09:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DnmUUmlBFAOJ6r0lO2j/n/ft2AG+WeYI8h0EcXuhXCs=; b=Xbo7XSFN9rED5NZS/+c+eS51wLoYcSb+HfUkS0fXp+WEVZI/klmyc/xzDQcSk6kbda PLkTwD+LzBS3AZ94fFA8beUaDPzXToHiAtQGtYgMEa7xGSHRnmt9i8HHb4RkAENDHe5e IsL0oKoIDRchTHu/mEX4S5wUizdEf+RMRPLLMDrB7AmcmgO+P7E3pn73quB2Juy8UxTW jEED9bkXwE57LB6U9SOCXArx0Oju7R8iZ1WfU5HvlkhPqgCsPcO1+tnAvFeSoPUrrDae 33cxR70DEVqATeHx9PamU6pz/v/4lzjTi/KGso5mz5Zz8Vhl6pl2nCo9mmky/EQOLFvo 3uUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DnmUUmlBFAOJ6r0lO2j/n/ft2AG+WeYI8h0EcXuhXCs=; b=c06fX+t4rQ4K0csdOjJRNR7VIQ3qW4jNP44oJ1uyfUS8wpUAQDf7JJmlAq9gPzxZ3s 2/qpTYlo+kowFKnoIC4FG3cImSVNQNa36bGRgzDwk3QjQdOL/IupLiazUDhvfe7xEDfL RCRvUa2Qh1PAid9Xw79FlBW7bo4Slm8NMNyF2tMglzAhcr5lKwWvqHr4eRwwIszJNafQ wsuHPCadEMGiUxEr7lzgJfR8pU8tfffWf3zhMjJ9Q2u1Vt9LtD/lDza7HwgaS7iRw85q pMjyXDHrMd4cFvsXJRg48Ttt/dvBAfZeAAw3fYQyUOxdxFt/M58sFaJ8uLnjGaIQPQSb AYJw== X-Gm-Message-State: APjAAAXjC/GlgF8U4UH0Wgmv723uUiTCiNE5cAYNzylEJRBNs2GNBWAV L1WNydXtu7n5NYbOlTnayqWB8Q== X-Received: by 2002:a1c:cb4d:: with SMTP id b74mr14944322wmg.43.1561481260999; Tue, 25 Jun 2019 09:47:40 -0700 (PDT) Received: from localhost.localdomain (30.red-83-34-200.dynamicip.rima-tde.net. [83.34.200.30]) by smtp.gmail.com with ESMTPSA id d18sm42594476wrb.90.2019.06.25.09.47.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Jun 2019 09:47:40 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v3 02/14] mbox: qcom: add APCS child device for QCS404 Date: Tue, 25 Jun 2019 18:47:21 +0200 Message-Id: <20190625164733.11091-3-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190625164733.11091-1-jorge.ramirez-ortiz@linaro.org> References: <20190625164733.11091-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) -- 2.21.0 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 705e17a5479c..a05dc3aabac7 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -89,16 +89,18 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) return ret; } - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global")) { - apcs->clk = platform_device_register_data(&pdev->dev, - "qcom-apcs-msm8916-clk", - -1, NULL, 0); - if (IS_ERR(apcs->clk)) - dev_err(&pdev->dev, "failed to register APCS clk\n"); - } - platform_set_drvdata(pdev, apcs); + if (!of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global") && + !of_device_is_compatible(np, "qcom,qcs404-apcs-apps-global")) + return 0; + + apcs->clk = platform_device_register_data(&pdev->dev, + "qcom-apcs-msm8916-clk", + -1, NULL, 0); + if (IS_ERR(apcs->clk)) + dev_err(&pdev->dev, "failed to register APCS clk\n"); + return 0; }