[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140509094330.GB4877@xo-6d-61-c0.localdomain>
Date: Fri, 9 May 2014 11:43:30 +0200
From: Pavel Machek <pavel@...x.de>
To: Marek Vasut <marex@...x.de>
Cc: Kishon Vijay Abraham I <kishon@...com>, devicetree@...r.kernel.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-omap@...r.kernel.org,
linux-pci@...r.kernel.org, rogerq@...com, balajitk@...com,
Bjorn Helgaas <bhelgaas@...gle.com>,
Mohit Kumar <mohit.kumar@...com>,
Jingoo Han <jg1.han@...sung.com>
Subject: Re: [PATCH 05/17] pci: host: pcie-dra7xx: add support for
pcie-dra7xx controller
> > + writel(value, base + offset);
> > +}
> > +
> > +static int dra7xx_pcie_link_up(struct pcie_port *pp)
> > +{
> > + struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pp);
> > + u32 reg = dra7xx_pcie_readl(dra7xx->base, PCIECTRL_DRA7XX_CONF_PHY_CS);
> > +
> > + if (reg & LINK_UP)
> > + return true;
> > + return false;
>
> return reg & LINK_UP;
Function int returning true. I'd change the prototype and would
return !!(reg & ...);
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists