From: Raju P L S S S N <rplsssn@codeaurora.org>
To: Doug Anderson <dianders@chromium.org>
Cc: Andy Gross <andy.gross@linaro.org>,
David Brown <david.brown@linaro.org>,
linux-arm-msm@vger.kernel.org,
"open list:ARM/QUALCOMM SUPPORT" <linux-soc@vger.kernel.org>,
Rajendra Nayak <rnayak@codeaurora.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
LKML <linux-kernel@vger.kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Evan Green <evgreen@chromium.org>,
Matthias Kaehlcke <mka@chromium.org>,
Lina Iyer <ilina@codeaurora.org>
Subject: Re: [PATCH v9 04/10] drivers: qcom: rpmh: add RPMH helper functions
Date: Mon, 11 Jun 2018 22:41:18 +0530 [thread overview]
Message-ID: <a7b1b031-1009-4c5b-30ec-2db529ae6150@codeaurora.org> (raw)
In-Reply-To: <CAD=FV=V9TP-d33nc8Wq53C+KaDZffi7Vjtp5yDwdjvTP+aeb6A@mail.gmail.com>
Hi,
On 5/31/2018 3:19 AM, Doug Anderson wrote:
> Hi,
>
> On Thu, May 24, 2018 at 3:45 AM, Raju P L S S S N
> <rplsssn@codeaurora.org> wrote:
>> --- a/drivers/soc/qcom/rpmh-rsc.c
>> +++ b/drivers/soc/qcom/rpmh-rsc.c
>> @@ -61,6 +61,8 @@
>> #define CMD_STATUS_ISSUED BIT(8)
>> #define CMD_STATUS_COMPL BIT(16)
>>
>> +LIST_HEAD(rsc_drv_list);
>
> I still see no point of rsc_drv_list. Please remove it, AKA squash in
> <http://crosreview.com/1042883>.
Agree.
>
> I'm also still of the opinion that we should take something like
> <http://crosreview.com/1054646>, AKA "Get rid of the global array
> rpmh_rsc".
>> +/**
>> + * __rpmh_write: send the RPMH request
>> + *
>> + * @dev: The device making the request
>> + * @state: Active/Sleep request type
>> + * @rpm_msg: The data that needs to be sent (cmds).
>> + */
>> +static int __rpmh_write(const struct device *dev, enum rpmh_state state,
>> + struct rpmh_request *rpm_msg)
>> +{
>> + struct rpmh_ctrlr *ctrlr = get_rpmh_ctrlr(dev);
>> +
>> + if (IS_ERR(ctrlr))
>> + return PTR_ERR(ctrlr);
>> +
>> + rpm_msg->msg.state = state;
>> +
>> + if (state != RPMH_ACTIVE_ONLY_STATE)
>> + return -EINVAL;
>> +
>> + WARN_ON(irqs_disabled());
>> +
>> + return rpmh_rsc_send_data(ctrlr->drv, &rpm_msg->msg);
>> +}
>
> You went too far in the removal of EXPORT_SYMBOL I think. This symbol
> needs to be exported because other code that could be compiled as a
> module might need to call into it. To explain:
>
> * If two files that are always built-in to Linux need to call into
> each other: no need for EXPORT_SYMBOL.
>
> * If two files that are always part of the same module need to call
> into each other: no need for EXPORT_SYMBOL.
>
> * If one file that might be built-into a module needs to call another
> that's builtin to the kernel: need EXPORT_SYMBOL.
Thanks for the explanation Doug. Will address this.
Thanks,
Raju
next prev parent reply other threads:[~2018-06-11 17:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 10:45 [PATCH v9 00/10] drivers/qcom: add RPMH communication support Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs Raju P L S S S N
2018-05-28 5:32 ` Raju P L S S S N
2018-05-30 21:49 ` Doug Anderson
2018-06-11 17:07 ` Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 04/10] drivers: qcom: rpmh: add RPMH helper functions Raju P L S S S N
2018-05-30 21:49 ` Doug Anderson
2018-06-11 17:11 ` Raju P L S S S N [this message]
2018-05-24 10:45 ` [PATCH v9 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 06/10] drivers: qcom: rpmh-rsc: allow invalidation of sleep/wake TCS Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 07/10] drivers: qcom: rpmh: cache sleep/wake state requests Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 08/10] drivers: qcom: rpmh: allow requests to be sent asynchronously Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 09/10] drivers: qcom: rpmh: add support for batch RPMH request Raju P L S S S N
2018-05-30 21:50 ` Doug Anderson
2018-06-11 17:17 ` Raju P L S S S N
2018-05-24 10:45 ` [PATCH v9 10/10] drivers: qcom: rpmh-rsc: allow active requests from wake TCS Raju P L S S S N
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a7b1b031-1009-4c5b-30ec-2db529ae6150@codeaurora.org \
--to=rplsssn@codeaurora.org \
--cc=andy.gross@linaro.org \
--cc=bjorn.andersson@linaro.org \
--cc=david.brown@linaro.org \
--cc=dianders@chromium.org \
--cc=evgreen@chromium.org \
--cc=ilina@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=mka@chromium.org \
--cc=rnayak@codeaurora.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox