Re: [PATCH] PCI: rcar: Add mask of data to be written to PCIEPARL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 03, 2015 at 06:53:51PM +0000, Phil Edworthy wrote:
> Hi Iwamatsu-san,
> 
> On: 02 February 2015 05:10, Nobuhiro Iwamatsu wrote:
> > 
> > Lower 7bit of PCIEPARL is reserved bit. When we write to this register,
> > these bits must be 0.
> > 
> > Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@xxxxxxxxxxx>
> Acked-by: Phil Edworthy <phil.edworthy@xxxxxxxxxxx>

Acked-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>

> 
> Thanks
> Phil
> 
> > ---
> >  drivers/pci/host/pcie-rcar.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
> > index 748786c..bb36e27 100644
> > --- a/drivers/pci/host/pcie-rcar.c
> > +++ b/drivers/pci/host/pcie-rcar.c
> > @@ -342,7 +342,8 @@ static void rcar_pcie_setup_window(int win, struct
> > rcar_pcie *pcie)
> >  		res_start = res->start;
> > 
> >  	rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPARH(win));
> > -	rcar_pci_write_reg(pcie, lower_32_bits(res_start), PCIEPARL(win));
> > +	rcar_pci_write_reg(pcie, lower_32_bits(res_start) & ~0x7F,
> > +			   PCIEPARL(win));
> > 
> >  	/* First resource is for IO */
> >  	mask = PAR_ENABLE;
> > --
> > 2.1.3
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux