From: Vikash Garodia <vgarodia@codeaurora.org>
To: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Cc: hverkuil@xs4all.nl, mchehab@kernel.org, robh@kernel.org,
mark.rutland@arm.com, andy.gross@linaro.org, arnd@arndb.de,
bjorn.andersson@linaro.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-soc@vger.kernel.org, devicetree@vger.kernel.org,
acourbot@chromium.org, linux-media-owner@vger.kernel.org
Subject: Re: [PATCH v4 2/4] venus: firmware: move load firmware in a separate function
Date: Tue, 21 Aug 2018 22:59:15 +0530 [thread overview]
Message-ID: <4ad5d921a54256bccfd7030a3f0893d8@codeaurora.org> (raw)
In-Reply-To: <8ffd63d9-ba9f-44b2-e1c0-7edce167fd9c@linaro.org>
Hi Stanimir,
On 2018-08-21 17:38, Stanimir Varbanov wrote:
> Hi Vikash,
>
> On 08/06/2018 04:28 PM, Vikash Garodia wrote:
<snip>
>> -int venus_boot(struct device *dev, const char *fwname)
>> +static int venus_load_fw(struct venus_core *core, const char *fwname,
>> + phys_addr_t *mem_phys, size_t *mem_size)
>
> fix indentation
Please let me know which indentation rule is missed out here. As per
last
discussion, the parameters on next line should start from open
parenthesis.
I see the same being followed above.
Also i have been running checkpatch script and it does not show up any
issue.
Any other script which can be executed to ensure the coding guidelines ?
<snip>
>>
>> - ret = qcom_mdt_load(dev, mdt, fwname, VENUS_PAS_ID, mem_va,
>> mem_phys,
>> - mem_size, NULL);
>> + if (core->no_tz)
>> + ret = qcom_mdt_load_no_init(dev, mdt, fwname, VENUS_PAS_ID,
>> + mem_va, *mem_phys, *mem_size, NULL);
>> + else
>> + ret = qcom_mdt_load(dev, mdt, fwname, VENUS_PAS_ID,
>> + mem_va, *mem_phys, *mem_size, NULL);
>
> Please fix the indentation issues above.
Please specify here as well.
>>
>> release_firmware(mdt);
>>
>> - if (ret)
>> - goto err_unmap;
>> -
>> - ret = qcom_scm_pas_auth_and_reset(VENUS_PAS_ID);
>> - if (ret)
>> - goto err_unmap;
>> -
>> err_unmap:
>> memunmap(mem_va);
>> return ret;
>> }
>>
>> +int venus_boot(struct venus_core *core)
>> +{
>> + phys_addr_t mem_phys;
>> + struct device *dev = core->dev;
>
> move this one row upper.
>
>> + size_t mem_size;
>> + int ret;
>> +
>> + if (!IS_ENABLED(CONFIG_QCOM_MDT_LOADER) ||
>> + (!core->no_tz && !qcom_scm_is_available()))
>> + return -EPROBE_DEFER;
>
> fix indentation
Please specify here as well.
Thanks,
Vikash
next prev parent reply other threads:[~2018-08-21 17:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 13:28 [PATCH v4 0/4] Venus updates - PIL Vikash Garodia
2018-08-06 13:28 ` [PATCH v4 1/4] venus: firmware: add routine to reset ARM9 Vikash Garodia
2018-08-21 12:09 ` Stanimir Varbanov
2018-08-06 13:28 ` [PATCH v4 2/4] venus: firmware: move load firmware in a separate function Vikash Garodia
2018-08-21 12:08 ` Stanimir Varbanov
2018-08-21 17:29 ` Vikash Garodia [this message]
2018-08-22 12:29 ` Stanimir Varbanov
2018-08-06 13:28 ` [PATCH v4 3/4] venus: firmware: add no TZ boot and shutdown routine Vikash Garodia
2018-08-21 13:07 ` Stanimir Varbanov
2018-08-06 13:28 ` [PATCH v4 4/4] venus: firmware: register separate driver for firmware device Vikash Garodia
2018-08-21 5:51 ` [PATCH v4 0/4] Venus updates - PIL Vikash Garodia
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=4ad5d921a54256bccfd7030a3f0893d8@codeaurora.org \
--to=vgarodia@codeaurora.org \
--cc=acourbot@chromium.org \
--cc=andy.gross@linaro.org \
--cc=arnd@arndb.de \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil@xs4all.nl \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media-owner@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=stanimir.varbanov@linaro.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;
as well as URLs for NNTP newsgroup(s).