[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100413.025857.38087733.davem@davemloft.net>
Date: Tue, 13 Apr 2010 02:58:57 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: bhutchings@...arflare.com
Cc: jeffrey.t.kirsher@...el.com, netdev@...r.kernel.org,
gospo@...hat.com, alexander.h.duyck@...el.com
Subject: Re: [net-next-2.6 PATCH] igb: add support for reporting 5GT/s
during probe on PCIe Gen2
From: Ben Hutchings <bhutchings@...arflare.com>
Date: Sat, 10 Apr 2010 00:54:16 +0100
> On Fri, 2010-04-09 at 12:52 -0700, Jeff Kirsher wrote:
>> From: Alexander Duyck <alexander.h.duyck@...el.com>
>>
>> This change corrects the fact that we were not reporting Gen2 link speeds
>> when we were in fact connected at Gen2 rates.
>>
>> Signed-off-by: Alexander Duyck <alexander.h.duyck@...el.com>
>> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
>> ---
>>
>> drivers/net/igb/e1000_defines.h | 3 +++
>> drivers/net/igb/e1000_mac.c | 19 ++++++++++++++++---
>> drivers/net/igb/igb_main.c | 1 +
>> 3 files changed, 20 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/net/igb/e1000_defines.h b/drivers/net/igb/e1000_defines.h
>> index 31d24e0..8e440e8 100644
>> --- a/drivers/net/igb/e1000_defines.h
>> +++ b/drivers/net/igb/e1000_defines.h
>> @@ -615,6 +615,9 @@
>>
>> #define PCIE_LINK_WIDTH_MASK 0x3F0
>> #define PCIE_LINK_WIDTH_SHIFT 4
>> +#define PCIE_LINK_SPEED_MASK 0x0F
>> +#define PCIE_LINK_SPEED_2500 0x01
>> +#define PCIE_LINK_SPEED_5000 0x02
>> #define PCIE_DEVICE_CONTROL2_16ms 0x0005
> [...]
>
> These generic definitions belong in <linux/pci_regs.h>; in fact some of
> it is already there.
Agreed, please put these in the PCI header file.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists