From: David Woodhouse <dwmw2@infradead.org>
To: "Chas Williams (CONTRACTOR)" <chas@cmf.nrl.navy.mil>
Cc: netdev@vger.kernel.org, linux-atm-general@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [Linux-ATM-General] [PATCH] firmware: convert Ambassador ATM driver to request_firmware()
Date: Mon, 30 Jun 2008 14:09:22 +0100 [thread overview]
Message-ID: <1214831362.10393.340.camel@pmac.infradead.org> (raw)
In-Reply-To: <200806301259.m5UCxewW022114@cmf.nrl.navy.mil>
On Mon, 2008-06-30 at 08:59 -0400, Chas Williams (CONTRACTOR) wrote:
> In message <1214818473.10393.337.camel@pmac.infradead.org>,David Woodhouse writ
> es:
> >A couple of comments though... it looks like you forgot to add
> >MODULE_FIRMWARE(). And shouldn't 'fw_data' in
> >fore200e_load_and_start_firmware() be a (__le32 *) not a (u32 *)?
>
> this look ok:
>
>
> diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
> index d5c1bbf..91710d4 100644
> --- a/drivers/atm/fore200e.c
> +++ b/drivers/atm/fore200e.c
> @@ -2562,7 +2562,8 @@ fore200e_load_and_start_fw(struct fore200e* fore200e)
> const struct firmware *firmware;
> struct device *device;
> struct fw_header *fw_header;
> - u32 *fw_data, fw_size;
> + __le32 *fw_data;
> + u32 fw_size;
> u32 __iomem *load_addr;
> char buf[48];
> int err = -ENODEV;
> @@ -2582,7 +2583,7 @@ fore200e_load_and_start_fw(struct fore200e* fore200e)
> return err;
> }
>
> - fw_data = (u32 *) firmware->data;
> + fw_data = (__le32 *) firmware->data;
Actually, it should probably be 'const' too.
> fw_size = firmware->size / sizeof(u32);
> fw_header = (struct fw_header *) firmware->data;
> load_addr = fore200e->virt_base + le32_to_cpu(fw_header->load_offset);
> @@ -3199,6 +3200,7 @@ static const struct fore200e_bus fore200e_bus[] = {
> {}
> };
>
> -#ifdef MODULE_LICENSE
> MODULE_LICENSE("GPL");
> -#endif
#ifdef CONFIG_SBUS
> +MODULE_FIRMWARE("sba200e.bin");
#ifdef CONFIG_PCI
#ifdef __LITTLE_ENDIAN
> +MODULE_FIRMWARE("pca200e.bin");
#else /* big-endian */
> +MODULE_FIRMWARE("pca200e_ecd.bin");
#endif
#endif
And wasn't it sba200e_ecd.bin ?
--
dwmw2
next prev parent reply other threads:[~2008-06-30 13:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-05 12:07 David Woodhouse
2008-06-05 16:06 ` Chas Williams (CONTRACTOR)
2008-06-05 18:13 ` David Woodhouse
2008-06-05 18:20 ` Chas Williams (CONTRACTOR)
2008-06-05 18:28 ` David Woodhouse
2008-06-06 16:06 ` Chas Williams (CONTRACTOR)
2008-06-30 9:34 ` [Linux-ATM-General] " David Woodhouse
2008-06-30 12:50 ` Chas Williams (CONTRACTOR)
2008-06-30 12:59 ` Chas Williams (CONTRACTOR)
2008-06-30 13:09 ` David Woodhouse [this message]
2008-06-30 13:15 ` Chas Williams (CONTRACTOR)
2008-06-30 13:21 ` David Woodhouse
2008-06-30 13:59 ` Chas Williams (CONTRACTOR)
2008-06-30 14:54 ` David Woodhouse
2008-06-30 16:10 ` Chas Williams (CONTRACTOR)
2008-06-30 19:18 ` David Woodhouse
2008-07-01 12:55 ` Chas Williams (CONTRACTOR)
2008-07-01 13:06 ` David Woodhouse
2008-07-01 16:17 ` Chas Williams (CONTRACTOR)
2008-07-09 20:37 ` Chas Williams (CONTRACTOR)
2008-07-24 3:29 ` David Miller
2008-06-30 19:46 ` David Miller
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=1214831362.10393.340.camel@pmac.infradead.org \
--to=dwmw2@infradead.org \
--cc=chas@cmf.nrl.navy.mil \
--cc=linux-atm-general@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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
all inboxes | Powered by JetHome®