netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates
@ 2011-03-02 11:45 Jeff Kirsher
  2011-03-02 11:45 ` [net-2.6 1/3] e1000: fix sparse warning Jeff Kirsher
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jeff Kirsher @ 2011-03-02 11:45 UTC (permalink / raw)
  To: davem; +Cc: Jeff Kirsher, netdev, gospo, bphilips

The following series contains fixes for sparse warnings for e1000
and igb, as well as a fix for e1000e.

The following are changes since commit e3fa3aff0cb198e7c53d894f52146121d9592872:
  net: fix nla_policy_len to actually _iterate_ over the policy

and are available in the git repository at:
  master.kernel.org:/pub/scm/linux/kernel/git/jkirsher/net-2.6 master

Bruce Allan (1):
  e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup
    instead

Jeff Kirsher (1):
  igb: fix sparse warning

Stephen Hemminger (1):
  e1000: fix sparse warning

 drivers/net/e1000/e1000_osdep.h |    3 ++-
 drivers/net/e1000e/netdev.c     |    3 ++-
 drivers/net/igbvf/vf.c          |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

-- 
1.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [net-2.6 1/3] e1000: fix sparse warning
  2011-03-02 11:45 [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
@ 2011-03-02 11:45 ` Jeff Kirsher
  2011-03-02 11:45 ` [net-2.6 2/3] igb: " Jeff Kirsher
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jeff Kirsher @ 2011-03-02 11:45 UTC (permalink / raw)
  To: davem; +Cc: Stephen Hemminger, netdev, gospo, bphilips, Jeff Kirsher

From: Stephen Hemminger <shemminger@vyatta.com>

Sparse complains because the e1000 driver is calling ioread on a pointer
not tagged as __iomem.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/e1000/e1000_osdep.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e1000/e1000_osdep.h b/drivers/net/e1000/e1000_osdep.h
index 55c1711..33e7c45a 100644
--- a/drivers/net/e1000/e1000_osdep.h
+++ b/drivers/net/e1000/e1000_osdep.h
@@ -42,7 +42,8 @@
 #define GBE_CONFIG_RAM_BASE \
 	((unsigned int)(CONFIG_RAM_BASE + GBE_CONFIG_OFFSET))
 
-#define GBE_CONFIG_BASE_VIRT    phys_to_virt(GBE_CONFIG_RAM_BASE)
+#define GBE_CONFIG_BASE_VIRT \
+	((void __iomem *)phys_to_virt(GBE_CONFIG_RAM_BASE))
 
 #define GBE_CONFIG_FLASH_WRITE(base, offset, count, data) \
 	(iowrite16_rep(base + offset, data, count))
-- 
1.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [net-2.6 2/3] igb: fix sparse warning
  2011-03-02 11:45 [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
  2011-03-02 11:45 ` [net-2.6 1/3] e1000: fix sparse warning Jeff Kirsher
@ 2011-03-02 11:45 ` Jeff Kirsher
  2011-03-02 11:45 ` [net-2.6 3/3] e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead Jeff Kirsher
  2011-03-02 23:06 ` [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Jeff Kirsher @ 2011-03-02 11:45 UTC (permalink / raw)
  To: davem; +Cc: Jeff Kirsher, netdev, gospo, bphilips

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/igbvf/vf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/igbvf/vf.c b/drivers/net/igbvf/vf.c
index 74486a8..af3822f 100644
--- a/drivers/net/igbvf/vf.c
+++ b/drivers/net/igbvf/vf.c
@@ -220,7 +220,7 @@ static u32 e1000_hash_mc_addr_vf(struct e1000_hw *hw, u8 *mc_addr)
  *  The parameter rar_count will usually be hw->mac.rar_entry_count
  *  unless there are workarounds that change this.
  **/
-void e1000_update_mc_addr_list_vf(struct e1000_hw *hw,
+static void e1000_update_mc_addr_list_vf(struct e1000_hw *hw,
                                   u8 *mc_addr_list, u32 mc_addr_count,
                                   u32 rar_used_count, u32 rar_count)
 {
-- 
1.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [net-2.6 3/3] e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead
  2011-03-02 11:45 [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
  2011-03-02 11:45 ` [net-2.6 1/3] e1000: fix sparse warning Jeff Kirsher
  2011-03-02 11:45 ` [net-2.6 2/3] igb: " Jeff Kirsher
@ 2011-03-02 11:45 ` Jeff Kirsher
  2011-03-02 23:06 ` [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Jeff Kirsher @ 2011-03-02 11:45 UTC (permalink / raw)
  To: davem; +Cc: Bruce Allan, netdev, gospo, bphilips, stable, Jeff Kirsher

From: Bruce Allan <bruce.w.allan@intel.com>

When support for 82577/82578 was added[1] in 2.6.31, PHY wakeup was in-
advertently enabled (even though it does not function properly) on ICH10
LOMs.  This patch makes it so that the ICH10 LOMs use MAC wakeup instead
as was done with the initial support for those devices (i.e. 82567LM-3,
82567LF-3 and 82567V-4).

[1] commit a4f58f5455ba0efda36fb33c37074922d1527a10

Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Cc: <stable@kernel.org>
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/e1000e/netdev.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 3fa110d..2e50228 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -5967,7 +5967,8 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
 		/* APME bit in EEPROM is mapped to WUC.APME */
 		eeprom_data = er32(WUC);
 		eeprom_apme_mask = E1000_WUC_APME;
-		if (eeprom_data & E1000_WUC_PHY_WAKE)
+		if ((hw->mac.type > e1000_ich10lan) &&
+		    (eeprom_data & E1000_WUC_PHY_WAKE))
 			adapter->flags2 |= FLAG2_HAS_PHY_WAKEUP;
 	} else if (adapter->flags & FLAG_APME_IN_CTRL3) {
 		if (adapter->flags & FLAG_APME_CHECK_PORT_B &&
-- 
1.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates
  2011-03-02 11:45 [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
                   ` (2 preceding siblings ...)
  2011-03-02 11:45 ` [net-2.6 3/3] e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead Jeff Kirsher
@ 2011-03-02 23:06 ` David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2011-03-02 23:06 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, bphilips

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed,  2 Mar 2011 03:45:38 -0800

> The following series contains fixes for sparse warnings for e1000
> and igb, as well as a fix for e1000e.
> 
> The following are changes since commit e3fa3aff0cb198e7c53d894f52146121d9592872:
>   net: fix nla_policy_len to actually _iterate_ over the policy
> 
> and are available in the git repository at:
>   master.kernel.org:/pub/scm/linux/kernel/git/jkirsher/net-2.6 master

Pulled, thanks Jeff.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-02 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 11:45 [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2011-03-02 11:45 ` [net-2.6 1/3] e1000: fix sparse warning Jeff Kirsher
2011-03-02 11:45 ` [net-2.6 2/3] igb: " Jeff Kirsher
2011-03-02 11:45 ` [net-2.6 3/3] e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead Jeff Kirsher
2011-03-02 23:06 ` [net-2.6 0/3][pull request] Intel Wired LAN Driver Updates David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).