From: Niklas Cassel <niklas.cassel@axis.com>
To: Guodong Xu <guodong.xu@linaro.org>,
songxiaowei <songxiaowei@hisilicon.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Bjorn Helgaas <bhelgaas@google.com>, Kishon <kishon@ti.com>,
Jingoo Han <jingoohan1@gmail.com>,
Tomasz Nowicki <tn@semihalf.com>,
Keith Busch <keith.busch@intel.com>, Duc Dang <dhdang@apm.com>,
"liudongdong (C)" <liudongdong3@huawei.com>,
"Chenfeng (puck)" <puck.chen@hisilicon.com>,
Wangbinghui <wangbinghui@hisilicon.com>,
Suzhuangluan <suzhuangluan@hisilicon.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-pci <linux-pci@vger.kernel.org>
Subject: Re: 答复: [PATCH 1/2] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC
Date: Thu, 18 May 2017 10:56:31 +0200 [thread overview]
Message-ID: <47c5d676-44ae-e08c-3002-802ca31ff6b7@axis.com> (raw)
In-Reply-To: <CAFGCpxyOBtar5jCEW=_aYH_XdhgxVFDMjE5ch2DU-OsSzKQsxA@mail.gmail.com>
On 05/18/2017 08:23 AM, Guodong Xu wrote:
> On Thu, May 18, 2017 at 9:50 AM, songxiaowei <songxiaowei@hisilicon.com> wrote:
>> Hi Arnd,
>>
>>
>> On Fri, May 12, 2017 at 3:51 AM, Song Xiaowei <songxiaowei@hisilicon.com> wrote:
>>> From: songxiaowei <songxiaowei@hisilicon.com>
>>
>> Looks good overall, just a few details:
>>
>> Please fix your ~/.gitconfig to contain the same real name ("Song Xiaowei"
>> instead of "songxiaowei") that you use for sending the emails.
>>
>> [Xiaowei Song] I'll fix this issue and update the patch.
>>
>>> +
>>> +static int kirin_pcie_phy_init(struct kirin_pcie *kirin_pcie) {
>> ...
>>> + reg_val = kirin_apb_phy_readl(kirin_pcie, 0x400);
>>> + while (reg_val & pipe_clk_stable) {
>>> + udelay(100);
>>> + if (time == 0) {
>>> + dev_err(kirin_pcie->pci->dev, "PIPE clk is not stable\n");
>>> + return -EINVAL;
>>> + }
>>> + time--;
>>> + reg_val = kirin_apb_phy_readl(kirin_pcie, 0x400);
>>> + }
>>
>> If this is not called with interrupts disabled, please use a sleeping function (e.g. msleep(1)) as the delay and compare against ktime_before() to see how much total time has expired when waiting for a timeout, instead of using a counter.
>>
>> [Xiaowei Song] This issue was fixed in the patch sent at 2017-5-15, and I'll send it again.
>
> Xiaowei,
>
> Please make sure you add [PATCH v..] version information when you
> making future updates. Eg.
>
> $ git format-patch --subject-prefix="PATCH v3"
I actually prefer
git format-patch -v 3
that way you don't accidentally get something
other than "PATCH".
Another very, very minor remark.
It's usually a good idea to have a comma after
each initializer, that way you don't have to
change multiple lines when adding/removing something.
+struct platform_driver kirin_pcie_driver = {
+ .probe = kirin_pcie_probe,
+ .driver = {
+ .name = "Kirin-pcie",
+ .of_match_table = kirin_pcie_match,
+ .suppress_bind_attrs = true
+ },
+};
Best regards,
Niklas
next prev parent reply other threads:[~2017-05-18 8:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 1:51 Song Xiaowei
2017-05-12 1:51 ` [PATCH 2/2] defconfig: PCI: Enable Kirin PCIe defconfig Song Xiaowei
2017-05-12 8:08 ` [PATCH 1/2] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC Niklas Cassel
2017-05-12 9:13 ` 答复: " songxiaowei
2017-05-17 20:29 ` Arnd Bergmann
2017-05-18 1:50 ` 答复: " songxiaowei
2017-05-18 6:23 ` Guodong Xu
2017-05-18 8:56 ` Niklas Cassel [this message]
2017-05-18 9:12 ` 答复: " songxiaowei
2017-05-18 7:24 ` songxiaowei
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=47c5d676-44ae-e08c-3002-802ca31ff6b7@axis.com \
--to=niklas.cassel@axis.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=dhdang@apm.com \
--cc=guodong.xu@linaro.org \
--cc=jingoohan1@gmail.com \
--cc=keith.busch@intel.com \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=liudongdong3@huawei.com \
--cc=puck.chen@hisilicon.com \
--cc=songxiaowei@hisilicon.com \
--cc=suzhuangluan@hisilicon.com \
--cc=tn@semihalf.com \
--cc=wangbinghui@hisilicon.com \
/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
all inboxes | Powered by JetHome®