Re: [PATCH 1/1] ipw2200, fix ipw io functions
From: Dan Williams
Date: Fri Feb 13 2009 - 10:46:22 EST
On Thu, 2009-02-12 at 22:29 +0100, Jiri Slaby wrote:
> - some of them are defined as follows:
> #define ipw_write32 expr1; expr2
> and are called from loops or ifs without a compound statement, so
> they are broken. Fix it by putting them into do {} while (0) for
> writes and ({ }) for reads.
> - also unify and cleanup them while at it -- convert them from
> macros to inline functions, so that we get some basic typechecking
>
> Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
> Cc: Zhu Yi <yi.zhu@xxxxxxxxx>
> Cc: James Ketrenos <jketreno@xxxxxxxxxxxxxxx>
> Cc: Reinette Chatre <reinette.chatre@xxxxxxxxx>
I've been running with this patch for 15 hours or so and it works well
for me. It may have even fixed random issues with the card crapping out
after resume (successful association, does DHCP, but after a minute or
two no longer passes traffic until a hard reboot even with multiple
rmmod/modprobe runs), though that could also be hallucination on my
part.
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/