From: Amit Kale <amitkale@netxen.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Linsys Contractor Mithlesh Thukral <mithlesh@netxen.com>,
netdev@vger.kernel.org, jeff@garzik.org,
netxenproj@linsyssoft.com, rob@netxen.com
Subject: Re: [PATCH 6/7] NetXen: Fixes for Power PC architecture
Date: Tue, 17 Apr 2007 22:14:03 +0530 [thread overview]
Message-ID: <200704172214.03317.amitkale@netxen.com> (raw)
In-Reply-To: <20070413155412.GA25348@infradead.org>
On Friday 13 April 2007 21:24, Christoph Hellwig wrote:
> On Fri, Apr 13, 2007 at 08:42:57AM -0700, Linsys Contractor Mithlesh Thukral
wrote:
> > NetXen: Configurable interrupts on PPC architecture
> > This patch will add support to add command line argument to specify
> > the interrupt type on a PPC machine. Fixes some issues seen on Big endian
> > machines.
> >
> > Signed-off by: Milan Bag <mbag@netxen.com>
> > Acked-by: Mithlesh Thukral <mithlesh@netxen.com>
> >
> > ---
> >
> > drivers/net/netxen/netxen_nic.h | 6 +++---
> > drivers/net/netxen/netxen_nic_hw.c | 2 +-
> > drivers/net/netxen/netxen_nic_init.c | 4 ++--
> > drivers/net/netxen/netxen_nic_main.c | 6 ++++++
> > 4 files changed, 12 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/net/netxen/netxen_nic.h
> > b/drivers/net/netxen/netxen_nic.h index 3549c7c..7ba2383 100644
> > --- a/drivers/net/netxen/netxen_nic.h
> > +++ b/drivers/net/netxen/netxen_nic.h
> > @@ -64,9 +64,9 @@ #include <asm/pgtable.h>
> > #include "netxen_nic_hw.h"
> >
> > #define _NETXEN_NIC_LINUX_MAJOR 3
> > -#define _NETXEN_NIC_LINUX_MINOR 3
> > -#define _NETXEN_NIC_LINUX_SUBVERSION 3
> > -#define NETXEN_NIC_LINUX_VERSIONID "3.3.3"
> > +#define _NETXEN_NIC_LINUX_MINOR 4
> > +#define _NETXEN_NIC_LINUX_SUBVERSION 2
> > +#define NETXEN_NIC_LINUX_VERSIONID "3.4.2"
> >
> > #define NUM_FLASH_SECTORS (64)
> > #define FLASH_SECTOR_SIZE (64 * 1024)
> > diff --git a/drivers/net/netxen/netxen_nic_hw.c
> > b/drivers/net/netxen/netxen_nic_hw.c index 3195fa5..4206125 100644
> > --- a/drivers/net/netxen/netxen_nic_hw.c
> > +++ b/drivers/net/netxen/netxen_nic_hw.c
> > @@ -1141,7 +1141,7 @@ void netxen_nic_flash_print(struct netxe
> > netxen_nic_driver_name);
> > return;
> > }
> > - *ptr32 = le32_to_cpu(*ptr32);
> > + *ptr32 = cpu_to_le32(*ptr32);
>
> Please add proper __le32 and avoid in-place swapping. Please use sparse
> to verify that your endianess handling is correct.
Yes. We'll do this.
Thanks.
>
> > +#ifdef CONFIG_PPC
> > +static int nx_ppc_msi_enable = 0; /* by default donot enable msi */
> > +module_param(nx_ppc_msi_enable, int, 0644);
> > +MODULE_PARM_DESC(nx_ppc_msi_enable, "NetXen PPC MSI enable value");
> > +#endif /* CONFIG_PPC */
>
> NACK. If msi is broken on your card for certain setup disable it
> completely, if ppc msi support is broken fix it there.
Ok. I believe this can be handled through a firmware change, so that driver
will read MIS parameter from there.
-Amit
next prev parent reply other threads:[~2007-04-17 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-13 15:42 [PATCH 6/7] NetXen: Fixes for Power PC architecture Linsys Contractor Mithlesh Thukral
2007-04-13 15:54 ` Christoph Hellwig
2007-04-17 16:44 ` Amit Kale [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-04-19 14:58 Linsys Contractor Mithlesh Thukral
2007-04-20 14:56 Mithlesh Thukral
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704172214.03317.amitkale@netxen.com \
--to=amitkale@netxen.com \
--cc=hch@infradead.org \
--cc=jeff@garzik.org \
--cc=mithlesh@netxen.com \
--cc=netdev@vger.kernel.org \
--cc=netxenproj@linsyssoft.com \
--cc=rob@netxen.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).