On Jum, 2017-02-17 at 08:27 +0800, Yadi Hu wrote: > From: "Hu Yadi" <yadi.hu@xxxxxxxxxxxxx> > > the driver does not use exactly 'Completion Status' value in TLP, > these bits should be b15:13 not b14:12. > > Signed-off-by: Hu Yadi<yadi.hu@xxxxxxxxxxxxx> Thanks for the fix. Acked-by: Ley Foon Tan <ley.foon.tan@xxxxxxxxx> > --- > drivers/pci/host/pcie-altera.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie- > altera.c > index dbac6fb..650862e 100644 > --- a/drivers/pci/host/pcie-altera.c > +++ b/drivers/pci/host/pcie-altera.c > @@ -56,7 +56,7 @@ > #define TLP_CFG_DW2(bus, devfn, offset) \ > (((bus) << 24) | ((devfn) << 16) | > (offset)) > #define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn)) > -#define TLP_COMP_STATUS(s) (((s) >> 12) & 7) > +#define TLP_COMP_STATUS(s) (((s) >> 13) & 7) > #define TLP_HDR_SIZE 3 > #define TLP_LOOP 500 > #define RP_DEVFN 0 > -- > 2.9.3 > > > ________________________________ > > Confidentiality Notice. > This message may contain information that is confidential or > otherwise protected from disclosure. If you are not the intended > recipient, you are hereby notified that any use, disclosure, > dissemination, distribution, or copying of this message, or any > attachments, is strictly prohibited. If you have received this > message in error, please advise the sender by reply e-mail, and > delete the message and any attachments. Thank you.