* [PATCH 1/1] NetXen: Fix to get the driver working after sparse changes
@ 2007-02-12 12:33 Amit S. Kale
2007-02-12 22:40 ` Al Viro
2007-02-17 20:26 ` Jeff Garzik
0 siblings, 2 replies; 3+ messages in thread
From: Amit S. Kale @ 2007-02-12 12:33 UTC (permalink / raw)
To: netdev; +Cc: amitkale, jeff, netxenproj, rob
Signed-off-by: Amit S. Kale <amitkale@netxen.com>
---
netxen_nic.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index e021a30..2807ef4 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -252,7 +252,7 @@ typedef u32 netxen_ctx_msg;
#define netxen_set_msg_ctxid(config_word, val) \
((config_word) &= ~(0x3ff<<18), (config_word) |= (val & 0x3ff) << 18)
#define netxen_set_msg_opcode(config_word, val) \
- ((config_word) &= ~(0xf<<24), (config_word) |= (val & 0xf) << 24)
+ ((config_word) &= ~(0xf<<28), (config_word) |= (val & 0xf) << 28)
struct netxen_rcv_context {
__le64 rcv_ring_addr;
@@ -303,14 +303,14 @@ struct netxen_ring_ctx {
(cmd_desc)->flags_opcode |= cpu_to_le16((val) & 0x7f))
#define netxen_set_cmd_desc_opcode(cmd_desc, val) \
((cmd_desc)->flags_opcode &= ~cpu_to_le16(0x3f<<7), \
- (cmd_desc)->flags_opcode |= cpu_to_le16((val) & (0x3f<<7)))
+ (cmd_desc)->flags_opcode |= cpu_to_le16(((val & 0x3f)<<7)))
#define netxen_set_cmd_desc_num_of_buff(cmd_desc, val) \
((cmd_desc)->num_of_buffers_total_length &= ~cpu_to_le32(0xff), \
(cmd_desc)->num_of_buffers_total_length |= cpu_to_le32((val) & 0xff))
#define netxen_set_cmd_desc_totallength(cmd_desc, val) \
- ((cmd_desc)->num_of_buffers_total_length &= cpu_to_le32(0xff), \
- (cmd_desc)->num_of_buffers_total_length |= cpu_to_le32(val << 24))
+ ((cmd_desc)->num_of_buffers_total_length &= ~cpu_to_le32(0xffffff00), \
+ (cmd_desc)->num_of_buffers_total_length |= cpu_to_le32(val << 8))
#define netxen_get_cmd_desc_opcode(cmd_desc) \
((le16_to_cpu((cmd_desc)->flags_opcode) >> 7) & 0x003F)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] NetXen: Fix to get the driver working after sparse changes
2007-02-12 12:33 [PATCH 1/1] NetXen: Fix to get the driver working after sparse changes Amit S. Kale
@ 2007-02-12 22:40 ` Al Viro
2007-02-17 20:26 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Al Viro @ 2007-02-12 22:40 UTC (permalink / raw)
To: Amit S. Kale; +Cc: netdev, jeff, netxenproj, rob
On Mon, Feb 12, 2007 at 04:33:38AM -0800, Amit S. Kale wrote:
> Signed-off-by: Amit S. Kale <amitkale@netxen.com>
ACK. My apologies - that pile of brainos had been introduced when
I'd been fixing the set_bit() abuses in there (a bunch of places
had been casting address of u32 to unsigned long * and then using
set_bit() to modify it). FWIW, it had nothing to do with sparse -
just enough RTFS to spot the original bug and not enough of
RTFPatch to spot the introduced breakage. Sorry.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] NetXen: Fix to get the driver working after sparse changes
2007-02-12 12:33 [PATCH 1/1] NetXen: Fix to get the driver working after sparse changes Amit S. Kale
2007-02-12 22:40 ` Al Viro
@ 2007-02-17 20:26 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2007-02-17 20:26 UTC (permalink / raw)
To: Amit S. Kale; +Cc: netdev, netxenproj, rob
Amit S. Kale wrote:
> Signed-off-by: Amit S. Kale <amitkale@netxen.com>
>
> ---
> netxen_nic.h | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
applied
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-17 20:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 12:33 [PATCH 1/1] NetXen: Fix to get the driver working after sparse changes Amit S. Kale
2007-02-12 22:40 ` Al Viro
2007-02-17 20:26 ` Jeff Garzik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.