From patchwork Mon Aug 26 16:46:24 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: 172179 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4598378ily; Mon, 26 Aug 2019 09:46:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUyVTQwO1nw4Q2zYTxsO3n7n7SHzO8Ccod5hoaPFbbx2Ygz8KOTzL3JeWGOz7M6g0gSnCu X-Received: by 2002:a17:902:8302:: with SMTP id bd2mr19234109plb.9.1566837993157; Mon, 26 Aug 2019 09:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566837993; cv=none; d=google.com; s=arc-20160816; b=PIt92q6hFB0npPRwSVeU51vPQxHxfZMGNUwVe9JkK8NdXrZXHVYCVLtNbRVOjMCm8/ btTF/MrIjl50cheerYyXtA29nqj+bsiz/9ThndTLRRqDgK7Z6dAJRkIVsUfJbGBldVZU 4LwAGbFBKQzgZOMOs/mzMvv92vochtoAq31CFj6n02yxzmujJnPXuS+vCle5P8+3Pp5C EZjC+hJX3NHmKOir3krEktELj/Zkld0xagbRKakUjloopQgJya4cxxVlfmWNCFTtDDEN 796Mxh398lz9DD21CIZtC2zUnxBYljECrA+55hEy8q5JRRyoQkhk+D3y5l2qB8PDlL0h 8ebw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=OFUQPYowbzAmNUJh9f96eokoyX4jHwGEsRcZWAgDNzZsQLEnqsnTdGdMc0HTvYhvnT oS8M5Mcwo1Bm6WAd4oCkzhZhp9I6sEfNrwuty2YDo7Bj+Zw2/BcbdQNtDIDmFx1EQA9v F4GeDyCL8coUjewisQ2jw680m5HcRY2tDNHjZZTUGejW2jYFw0gW8qMASKxdVaWBUeWJ N6ojZR6z/QpUIpAphaWS/5LlhDjyHk7+QWIqYVwWLDmnemUjviHDcnuxJuMjh6Ozjt5n 9zIHjQoks6KNtdI2Wj8XctXnuNbmHZCrtghPr0muHvlOz8I8feOqkmQurE41/32OZa5B 3Ncw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ypAJGo6U; 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 i185si9552297pge.505.2019.08.26.09.46.32; Mon, 26 Aug 2019 09:46:33 -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=ypAJGo6U; 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 S1733137AbfHZQqb (ORCPT + 28 others); Mon, 26 Aug 2019 12:46:31 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54146 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733117AbfHZQqa (ORCPT ); Mon, 26 Aug 2019 12:46:30 -0400 Received: by mail-wm1-f66.google.com with SMTP id 10so185328wmp.3 for ; Mon, 26 Aug 2019 09:46:29 -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:mime-version :content-transfer-encoding; bh=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=ypAJGo6UVHfJ06Xwq5kT1osFoV8ZYZmE4VagpaqE0RpfwOMuDd8qlhhh1LqhU7iJB+ VlxEoNhknxCqoIEzKwN9znYkjJPGfFPtRX4D1uG8tXYNuww+6lklkMrZ3sHqQ7zN3Pt4 58T/les7f+TvdL1RVndGesaZAcrqQ4IFO/B9/91iD1aw8ElnTEubFLyCFrfitKrPYHQM WyU6GtPqwEv33cwSZSkd1fm4hlJ8sxMEQznhoKpbX4kyggcwwdRyTjihQGKP4In0gBP1 CGUa7O/ayA7ZCmZ/nnENtjuJtUpfPWLcbxBpJz271uR8xDitGOHpkYfCJFIcF+n1eyw9 aS8A== 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:mime-version :content-transfer-encoding; bh=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=myv2qz6Kd1aDIh0UffVfD0Mk7IDrdK04tGK41zm7qQlQZe0SF1Erqcbmi2TA8xENOt bSsacU9sRUqvPyKA0U7cPa5IPZUgIxrZNwUHpN73EiSOQ+E9EazaA/aYzyaEOXR3I6Ec T6a6YN037HgU3CYC/X22yl0QQHs2B9kK9rFETFyykWLJEP9VuZVy9ThOZHQvPuzed4uz +XkM229G0h93c9PRB6pHoREJGu6ynJ9lD4b9dn0SqG1GEHbgP9frm+OrtpIZN6bVG7BH B2sNA1BmuQVpgw4nsP52p78T8hQUpWy3b6jf+dMxF6JLvaKSmCNfG/hAAeVh64JuJIIB JeXw== X-Gm-Message-State: APjAAAW5mQldiLtI8hX8VarK3eQodR2FhopahAr+34XARe4ulRKet/q9 X9UGGRCZF2r5MpwLjjXquVfHzg== X-Received: by 2002:a7b:c21a:: with SMTP id x26mr20825779wmi.61.1566837989018; Mon, 26 Aug 2019 09:46:29 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id 5sm18768wmg.42.2019.08.26.09.46.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:46:28 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, jassisinghbrar@gmail.com, agross@kernel.org Cc: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] mbox: qcom: add APCS child device for QCS404 Date: Mon, 26 Aug 2019 18:46:24 +0200 Message-Id: <20190826164625.6744-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 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 Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.22.0 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-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; } - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global")) { + 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")) { + apcs->clk = platform_device_register_data(&pdev->dev, "qcom-apcs-msm8916-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"); } - platform_set_drvdata(pdev, apcs); - return 0; } From patchwork Mon Aug 26 16:46:25 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: 172180 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4598421ily; Mon, 26 Aug 2019 09:46:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkKsbEgv1MM8B8wmeojy/tyXfbpfmqKza/R+Sa+PWtGR9Zt/eGyJ+kM9zu9VMmC2hLiac+ X-Received: by 2002:a17:902:b097:: with SMTP id p23mr4517276plr.228.1566837995338; Mon, 26 Aug 2019 09:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566837995; cv=none; d=google.com; s=arc-20160816; b=tdy2wFF+n8UJ//GbPwo2gA6hWk33AV3mjY6CGIhHy2UGNgYzc53mS1AkI+K6p421mZ 0JIkeuGj96/XbI0o9hkI8FYH+YwROqLMeReiCEZs6aBS6ZnJnlne+tkMy9Szy30iOaj9 ph7AC90mplbu2rQukOOhzCjcNvM15FSkVIGoX1tOdaeCMf3KgtL83h2vQrvPPDVICMkd wPJ+gbB3YmatzFE3E+dHSKxPLJYrD4i4evbRAzQacAhSJtxtZ6Sf27z5b3TB9VN3DqWp pimJmvKQ3ybwSU61lubmrz3N8cODtptWJNQqekJM88k1OhQCZ03ShTafNGe0aSXhVoel 3/GA== 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=NEmCczScxOjFfK/GsZ795dKDEuO/wf3t9hNmpIlsOQI=; b=F5bfL/KmSs4nPgPv9w4hsZ7l+bgjV65Me3R9oaUUSY0y7yKFTYu7oz6U2vcMh2QLjv Sz5MCY/fQQEbR2EiOTVW4UTJANgJk+kvIpUIf9+d9AWyVzefrI59/m4MfGVolO45BxUw LBdOCcbtv80SRZIkDfO8OsQDB+DnUiwS0VEPcikfwZqsQ9T6g1LOb+/5ZRAByt27hmB9 Bj62k0jFhY2O0hTepW1Elr7oJtQro3Vz0J7MRmQan1gatn4J+CjJiT1Jp2JZqOlq7uq5 5N/I66t802AKkIJC1ij2/KkT3U8b1orU6bBihDLPBhGqAEQ/wcnUbLTm/A2l0w6LEsxF KMVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BID66P7i; 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 i185si9552297pge.505.2019.08.26.09.46.35; Mon, 26 Aug 2019 09:46:35 -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=BID66P7i; 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 S1733152AbfHZQqe (ORCPT + 28 others); Mon, 26 Aug 2019 12:46:34 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40674 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733123AbfHZQqb (ORCPT ); Mon, 26 Aug 2019 12:46:31 -0400 Received: by mail-wr1-f65.google.com with SMTP id c3so15979504wrd.7 for ; Mon, 26 Aug 2019 09:46:30 -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=NEmCczScxOjFfK/GsZ795dKDEuO/wf3t9hNmpIlsOQI=; b=BID66P7itQJ4yzTshEIGtAkG0upK9NrN2v/H5HGmn2LXb3nRYWGysQQJy5GzkKi2Ww WNiK+LKqgnRqiDXKI6r/L1duC7cuRDAryXvD2RjGgdBOoXZypangAWFW2vZ55LF9/VLc 4If9ZuuZGAqArMiM49ae7lw1IcWdjFGFR8RCYPnl3SXbcmHEgIj8kMq/2Li1RDGWTz+q DpTtYHlxBqHyKRzIVhI+x3HtHvwHnp2TTkqE+5U5XnGEAY6OY0Yxu4I5EAXvkR2MBEiX dIrPcqbgaC/ADd9ITbSrT2WOiPfY9m8btcyS4kxBQjhgR+/RqZbmf7KphKMQOYvMWjqI 5lhA== 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=NEmCczScxOjFfK/GsZ795dKDEuO/wf3t9hNmpIlsOQI=; b=t43vpgVW2v5ny3ZPv3JqDk0AeYme1m8KYA/SK5bE1e5ftVNdudVCtSpDkEtwJV/gB/ ntnN/+bbOQO72jhwelOwAV7mG7/hWGUmqRx1vn1CtjvcDjbKxR89QT9guXltH48XVLm8 r5sD7+aCShnorlBww5DPUDtfs3+PBKDspwOQmX0mtAmvgM/UXaHQ9laNRTluj6jw818q 14HPd1jUkU82kK17ShV7G18oOtG1al8HWB+ONpeY6i3uJ2+f2DgIcXzd+s+CzX0jL5J6 +0dqb9Xg0CzXSL+bfcepgsryJ7XTQGc8eNeUPD3e2wz0Swc7J2nX3wghS0f4tf4cIdlj iwQA== X-Gm-Message-State: APjAAAWFoy1VXI0jjcLmIMbhvVvvJ/+wvP2Y7P3kwarYUs4UCEeR2Dd/ QyBc4YjnHjhT+jEAl82dA408wQ== X-Received: by 2002:a05:6000:1186:: with SMTP id g6mr24328520wrx.17.1566837989922; Mon, 26 Aug 2019 09:46:29 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id 5sm18768wmg.42.2019.08.26.09.46.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:46:29 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, jassisinghbrar@gmail.com, agross@kernel.org Cc: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] mbox: qcom: replace integer with valid macro Date: Mon, 26 Aug 2019 18:46:25 +0200 Message-Id: <20190826164625.6744-2-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164625.6744-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164625.6744-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 Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.22.0 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 76e1ad433b3f..dc198802bdf7 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -96,7 +96,8 @@ 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"); }