[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191030203657.GA247440@google.com>
Date: Wed, 30 Oct 2019 15:36:57 -0500
From: Bjorn Helgaas <helgaas@...nel.org>
To: Jiaxun Yang <jiaxun.yang@...goat.com>
Cc: linux-mips@...r.kernel.org, davem@...emloft.net,
robh+dt@...nel.org, mark.rutland@....com, axboe@...nel.dk,
peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-ide@...r.kernel.org,
linux-pci@...r.kernel.org
Subject: Re: [PATCH 3/5] net: stmmac: pci: Add Loongson GMAC
On Wed, Oct 30, 2019 at 09:53:45PM +0800, Jiaxun Yang wrote:
> This device will be setup by parsing DeviceTree node
> of pci device.
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@...goat.com>
> +static int loongson_pci_of_setup(struct pci_dev *pdev,
> + struct plat_stmmacenet_data *plat)
> +{
> + struct device_node *np;
> + np = pci_device_to_OF_node(pdev);
> +
> + if(!np) {
Please pay attention to the existing coding style in the file and
follow it. In this and other cases below, add a space in "if (".
> + if(!of_device_is_compatible(np, "loongson,pci-gmac")) {
> + return stmmac_parse_config_dt(np, plat);
Remove the double space here.
> + if(info->of_irq) {
> + STMMAC_DEVICE(LOONGSON, PCI_DEVICE_ID_LOONGSON_GMAC, loongson_of_pci_info),
And here.
Powered by blists - more mailing lists