From: matthieu castet <castet.matthieu@free.fr>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-usb-devel@lists.sourceforge.net,
usbatm@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Eagle and ADI 930 usb adsl modem driver
Date: Tue, 01 Nov 2005 15:08:06 +0100 [thread overview]
Message-ID: <436776C6.3040900@free.fr> (raw)
In-Reply-To: <20051031155803.2e94069f.akpm@osdl.org>
Hi Andrew,
thanks for the review.
Andrew Morton wrote:
> matthieu castet <castet.matthieu@free.fr> wrote:
>
>>...
>>+static int request_cmvs(struct uea_softc *sc,
>>+ struct uea_cmvs **cmvs, const struct firmware **fw)
>>+{
>>+ int ret, size;
>>+ u8 *data;
>>+ char *file;
>>+ char cmv_name[256] = FW_DIR;
>
>
> That's rather a lot of stack. Can this be made static, of kmalloced?
>
>
I think we'll made it static.
>>+
>>+ *cmvs = (struct uea_cmvs *)(data + 1);
>
>
> That's a bit rude - asking the compiler to perform a structure copy from an
> odd address. memcpy() would be saner.
>
Could you elaborate a bit more ?
I don't see where there is a copy.
*cmvs is a pointer to the structure, not the structure. And when we
parse the structure, we use get_unaligned functions.
>>...
>>+/**
>>+ * uea_read_proc : /proc information
>>+ */
>>+static int uea_read_proc(char *page,
>>+ char **start, off_t off, int count, int *eof, void *data)
>
>
> People get shouted at for adding /proc handlers. Greg may have thoughts...
>
Ok, we may be convert some values to sysfs. It would be nice if usbatm
allow us to export some common value (margin, ...).
Matthieu
next prev parent reply other threads:[~2005-11-01 14:08 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-29 22:37 [PATCH] Eagle and ADI 930 usb adsl modem driver matthieu castet
2005-10-31 23:58 ` Andrew Morton
2005-11-01 12:40 ` Duncan Sands
2005-11-01 13:04 ` David Woodhouse
2005-11-01 13:12 ` Marco d'Itri
2005-11-02 7:42 ` Duncan Sands
2005-11-02 7:45 ` David Woodhouse
2005-11-02 8:02 ` Duncan Sands
2005-11-02 10:46 ` Roman Kagan
2005-11-02 11:01 ` Duncan Sands
2005-11-01 13:49 ` matthieu castet
2005-11-02 5:29 ` Andrew Morton
2005-11-02 22:27 ` Greg KH
2005-11-02 7:45 ` Duncan Sands
2005-11-01 14:08 ` matthieu castet [this message]
2005-11-02 5:34 ` Andrew Morton
2005-11-02 7:47 ` Duncan Sands
2005-11-01 22:45 ` Greg KH
2005-11-02 7:54 ` Duncan Sands
2005-11-02 8:03 ` Greg KH
2005-11-02 8:45 ` [linux-usb-devel] " Oliver Neukum
2005-11-02 8:52 ` Duncan Sands
2005-11-02 21:39 ` Greg KH
2005-11-02 21:37 ` Greg KH
2005-11-02 15:56 ` Alan Stern
2005-11-02 20:15 ` matthieu castet
2005-11-02 21:18 ` matthieu castet
2005-11-07 17:47 ` Greg KH
2005-11-06 18:44 ` matthieu castet
2005-11-07 17:47 ` Greg KH
2005-11-07 17:46 ` Greg KH
2005-11-07 18:47 ` matthieu castet
2005-11-07 22:27 ` matthieu castet
2005-11-07 23:02 ` matthieu castet
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=436776C6.3040900@free.fr \
--to=castet.matthieu@free.fr \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=usbatm@lists.infradead.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 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.