Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1971222ybl; Thu, 29 Aug 2019 01:29:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwgK2XYGYhrM1RGX5iRw4Wxne6Yus1X1MdIXW44pXePtYEzobDejjuRUKcoawSBguieP3Y X-Received: by 2002:a17:90a:b946:: with SMTP id f6mr8681860pjw.86.1567067397675; Thu, 29 Aug 2019 01:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567067397; cv=none; d=google.com; s=arc-20160816; b=DstOH5U4YPGPd8cn4U4jl6J5kq6pd82iHI+YMsgLr9Yh+SVhGDkQ1G/7gArwinNpd4 jQ4mAQNc6dn9Ku+ly90906Ises4+G0bFySOH39xmQz4wL3UTXJONwes5u+ASk6PtR22r gIWcbCcYtS6t/uY8frXC3F3laibGtFTNMg4Lx5ZSRwyvD4Wp6fOvD9GD+PUvjgW7mDl1 79dZUZBQr7BPQt2D61bSOzydDtwJmhw5kJzMf0m3KpY4OHG8rIyTSrtywY/vxSZuTF1J VP1oRK8PLQxflefFe/86gkQT0gmB/Bq1l0/5Nsde+ont8kyWAljd6RBhiMcJWNfXyQk7 FO5A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=EMCFDUI7F1iRPWNuyA0vZPwvE9bgb/HOPGdiTj2TTzo=; b=q4pH39WBAGnjeIbJ+3fkcvF4JEDw/5oXtG+pr47wNoYRZE4oi+DJ3LcvK1ozyyFX/h nGr/nByF0wFhrFtG4pBkvF68Q7CpfamtoDBO0SPVPFB8wthx1I4F6utH2/pDnHnQUjwl xb4AYEL4dzrhkOOG52OcxQ04dAcx7uSlA+Op9wEBtkDfKFHQYC/EiU1+UQqV5Hn/E6VZ PYat8CufoMft/nm8SQHSru5W1u0uoPbTyJzlwUvpYEO2N5m9AeAx6XyeXsumyAmm9Ks3 /8Pg8mmh5dzg3TKXgdxEh3QDHcdNHB3viUpQDO1fVkzNbAtbnEwouQT6QQibV/rYZhbI fuyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pvWh8aXL; 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 2si1288263plc.305.2019.08.29.01.29.42; Thu, 29 Aug 2019 01:29:57 -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=pvWh8aXL; 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 S1727175AbfH2I2Z (ORCPT + 99 others); Thu, 29 Aug 2019 04:28:25 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39999 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbfH2I2Z (ORCPT ); Thu, 29 Aug 2019 04:28:25 -0400 Received: by mail-wr1-f68.google.com with SMTP id c3so2472640wrd.7 for ; Thu, 29 Aug 2019 01:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EMCFDUI7F1iRPWNuyA0vZPwvE9bgb/HOPGdiTj2TTzo=; b=pvWh8aXLB52cE8NwojVfuKES2r964HyauHY3gdgiWRedNr/hiDr0sAyjEiuz882xBs mkghumAcr6Uy5i5ZLOXceaZTHTiZhI9HqW1TkGczjO0WA5j/dEtbE+/yyWitpCXI/8QE qwglN8igSgLbqOVkej/CiPaOgJBXGoDGa8RlBZc3ReWCNaz28sn371HStJpOnCecE9u6 mFPd695iEd1ek0uGPbpFlkI7hOc2Nm5q8q/uNmBvgPxA7tbpCT+FMx6pdvGAPtX4XL0l 6Tx/h6RZAyf3muqG66IRj3jC3dRm23RJ0bzrBSpH5ajx5LjnHcULb4gH/MZdxC1QiWrM /qwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EMCFDUI7F1iRPWNuyA0vZPwvE9bgb/HOPGdiTj2TTzo=; b=PAzcI1xOi5iahrTjbycQSAuJ0J2FOsqh/FpzE01pldudUo1/SCQ6oO3iSb7MrxO6Zn ZeaLVVDs5vHh3xsN4yGVP8HxucvlYHepSFWsUdytKuZaF3VTjkiwOduWyre/L8owvxZM 7oFtznNTTGPpWuN/tIwcEivLVaVxNL1J3KPen3BD8srCVMzsF95w8DdlPtgQyTCwWXck J8J9l3HDmucO2LA3OyXIq6coQmATbhd+HgWyi4Tzv7fasiQGnOGI9W3RvTM/8JT2HhfA MiwoAj8ebxc8XHiWuBxZON6YLcXOqudGDqKiFW/h3uPf0Yz6dwzG+qyBtC8qDDRTY8Zo 9SIQ== X-Gm-Message-State: APjAAAVx5QGNuUQZvhEbE1EuQaO6XM+KE2AsVEvq7qzK/+fU60lEoAVO Jc9AzirJCKb5nbqIiNTozGRCjtQlBCA= X-Received: by 2002:adf:f90e:: with SMTP id b14mr9255809wrr.124.1567067302978; Thu, 29 Aug 2019 01:28:22 -0700 (PDT) Received: from [192.168.1.6] (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id c62sm1085775wme.20.2019.08.29.01.28.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Aug 2019 01:28:22 -0700 (PDT) Subject: Re: [PATCH 1/2] mbox: qcom: add APCS child device for QCS404 To: Stephen Boyd , agross@kernel.org, jassisinghbrar@gmail.com Cc: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190826164625.6744-1-jorge.ramirez-ortiz@linaro.org> <5d6700b4.1c69fb81.24793.0bff@mx.google.com> From: Jorge Ramirez Message-ID: <818ffe57-0b1b-2b7c-c3f8-fe9845908abe@linaro.org> Date: Thu, 29 Aug 2019 10:28:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <5d6700b4.1c69fb81.24793.0bff@mx.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/29/19 00:31, Stephen Boyd wrote: > 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. >> >> 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(-) >> >> 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); > > 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 = 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; >> } >> > thanks stephen. posted v2