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; } From patchwork Tue Jun 25 16:47:22 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: 167747 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp5780262ilk; Tue, 25 Jun 2019 09:48:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0Vu35XBRDLaPT4ekvdRsgqo3H2lyAEPRODdS5bKrnSzN5UBj+u7rA9QV8TriQnzXzVmJQ X-Received: by 2002:a17:90b:8c8:: with SMTP id ds8mr8118483pjb.89.1561481319921; Tue, 25 Jun 2019 09:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561481319; cv=none; d=google.com; s=arc-20160816; b=gdu78mq7WQE3QqbL4yho1eDA0gv6UTK7L8WWybX0iH70nqtXJHJ967MpNdUiRHTKi3 KSJustimO4bOenJuFsnvXbs0n9td9TTfDyWvA8kLajTkph5m4DP42I0OZpZAdz4HRoql 4k1vbyshOmlTqhkyzkROwGRB9w/StkmdlSPZ7EwJZMjXvZj72H3DegtX+2olrzuW3olJ Mka/J0HqolV4rrhRxsMiQfrCY7IWW374C6of64+sCLLEQKlRYIIxWfbyvRVkxrdvgm2K B0qVbfOhQeIzgz+p8rYEGl1CfBJfoBNO7PdghQ1tOhBlkOuWo7mEK3ILNtlkPOUxJXdt jXWw== 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=bWqeg/uRBmP4v1S0mrfdgUlh6T/cak+6t6geY/+2zUc=; b=vmREXcKvOeL8fDWVCmcwUQdqLc1MxOEzpHoOnwkJkkXRjKmvgp534W5yQ3zJ1nmOPI I2IKOUh2n+bNs9t+dO1vXfgVh6mWWt3he4f4CmKbbNp//qqcVMcJROjW0bMKE+E+xPBY f2HgHolCO58A2lqtwF9rD60rhO1I+MxXncYRyTEaJHsMgXgpftzG5YFiRgF2fKnX92Y4 diXWE/lHUw/e1Kw4QvvInkDsaqguxK2R7DH34fR84BLDlRl3YAYGq3dX6egp2/io6Rfi mDMEEb7Xp7BSNvUbxLoKeE9KLTFeudAo25FcjkB5UHkG9AH8evANN/pbIOtiHoPG/dJI xdWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=unkd+FMr; 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 r19si13583490pgl.203.2019.06.25.09.48.39; Tue, 25 Jun 2019 09:48: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=pass header.i=@linaro.org header.s=google header.b=unkd+FMr; 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 S1731601AbfFYQrs (ORCPT + 30 others); Tue, 25 Jun 2019 12:47:48 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44890 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730824AbfFYQro (ORCPT ); Tue, 25 Jun 2019 12:47:44 -0400 Received: by mail-wr1-f67.google.com with SMTP id r16so18640015wrl.11 for ; Tue, 25 Jun 2019 09:47:43 -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=bWqeg/uRBmP4v1S0mrfdgUlh6T/cak+6t6geY/+2zUc=; b=unkd+FMrbJN9AzanjOJ4wpmc5HlH/ET5TudwrnAvOcWYz1FhJuNWwwXVCCo/y84G6i nH2bHVyL1b8OXnBdWWvQ9MPcfVs/5S5DYUf7iCUuZS47RVYNIleEcEDKbEsYWLMeLJ6e TLKLP7ZrGuZSCTyJbu20xIi0iuhnhI4FBK6EYE/Os57yaBo1IYfBAiv9pUjyFW/4j6Q2 rpsOjD52BAjQRBC4//y1jisx8bzNWSTn0Xf52FSCHwQHBaHwrjO82XvDAsHMtRvJpfDn 9iuwnV+CGdKw0aqvwaspbpSaq14/rrZ3eqD1COJr+X3VxcezUlVryu0Eo02Tqu9s5TrR DbxQ== 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=bWqeg/uRBmP4v1S0mrfdgUlh6T/cak+6t6geY/+2zUc=; b=IrKGjS6ZADvBYtvtrnQTtz2o8pEYuUU75XnRDFszcdrqnL5Sgs1FFvhNoTtMM0/q2u QEGbioazG3Qsdd/I21FwTtVwUAm2Jy2sB6CkQFWoO4t6qvnPcKpsM03/+vNPNKnP15Jj vk3gdxf96lpdnVz3pUzBBTeb0dXk65quOkcoykJ5d0ltgUTtlUgfYNOqv/M+7KuW95vg 6by+t+R7Y6ZjNlOQJX/I3o+3BRvBEQC0LykJ+FXmMmkkT7q7BaWdRJH6ha2m9sSSvZ+V ZB/NI9XftKBVVN90J6ayyjR2H7Qf2JGyubUJp7WjcVeYJFwOCDwqbwr1jn9MxBznLmq+ HkCA== X-Gm-Message-State: APjAAAUV0XyGeMMLgTII34hhKAyZIXxtNMm9/OSrbXkfb/ApqJ6AR2xb Le3jLJgFV5Umrcnf0cnjpF2rOg== X-Received: by 2002:adf:f948:: with SMTP id q8mr17100963wrr.196.1561481262770; Tue, 25 Jun 2019 09:47:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Jun 2019 09:47:42 -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 03/14] mbox: qcom: replace integer with valid macro Date: Tue, 25 Jun 2019 18:47:22 +0200 Message-Id: <20190625164733.11091-4-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 Use the correct macro when registering the platform device. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index a05dc3aabac7..c8088e9caf02 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -97,7 +97,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) apcs->clk = platform_device_register_data(&pdev->dev, "qcom-apcs-msm8916-clk", - -1, NULL, 0); + PLATFORM_DEVID_NONE, NULL, 0); if (IS_ERR(apcs->clk)) dev_err(&pdev->dev, "failed to register APCS clk\n");