From: Jan Harkes <jaharkes@cs.cmu.edu>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>, Greg KH <greg@kroah.com>,
Sam Ravnborg <sam@ravnborg.org>,
Dmitry Torokhov <dtor_core@ameritech.net>,
Marcel Holtmann <marcel@holtmann.org>,
linux-kernel@vger.kernel.org
Subject: Re: [patch 0/5] Hotplug firmware loader for Keyspan usb-serial driver
Date: Tue, 5 Apr 2005 17:12:27 -0400 [thread overview]
Message-ID: <20050405211226.GA23470@delft.aura.cs.cmu.edu> (raw)
In-Reply-To: <1112733931.3267.3.camel@localhost.localdomain>
On Tue, Apr 05, 2005 at 10:45:30PM +0200, Kay Sievers wrote:
> On Tue, 2005-04-05 at 15:38 -0400, Jan Harkes wrote:
> > Here is another stab at making the keyspan firmware easily loadable with
> > hotplug. Differences from the previous version,
> >
> > - keep the IHEX parser into a separate module.
> > - added a fw-y and fw-m install targets to kbuild which will install a
> > driver's firmware files in /lib/modules/`uname -r`/firmware.
> >
> > 01 - Add lib/ihex_parser.ko.
>
> Oh, I just see now that it's a EZ-USB device. Did you try adapting the
> driver to use fxload(8)? to load the firmware. I have a USB-Modem that
> works perfect with loading ez-firmware that way.
Never heard of fxload before. I just tried it by moving the firmware
directory out of the way so that hotplug wouldn't try to initialize the
device behind my back.
# fxload -v -t fx -D /proc/bus/usb/002/011 -I keyspan-usa19qi.fw
microcontroller type: fx
single stage: load on-chip memory
open RAM hexfile image keyspan-usa19qi.fw
stop CPU
write on-chip, addr 0x0033 len 3 (0x0003)
write on-chip, addr 0x001a len 4 (0x0004)
write on-chip, addr 0x0003 len 23 (0x0017)
write on-chip, addr 0x0023 len 3 (0x0003)
write on-chip, addr 0x0046 len 192 (0x00c0)
write on-chip, addr 0x0043 len 3 (0x0003)
write on-chip, addr 0x0000 len 3 (0x0003)
write on-chip, addr 0x0026 len 12 (0x000c)
write on-chip, addr 0x0106 len 960 (0x03c0)
write on-chip, addr 0x04c6 len 960 (0x03c0)
write on-chip, addr 0x0886 len 960 (0x03c0)
write on-chip, addr 0x0c46 len 905 (0x0389)
... WROTE: 4028 bytes, 12 segments, avg 335
reset CPU
# dmesg | tail
keyspan 2-1:1.0: device disconnected
usb 2-1: new full speed USB device using uhci_hcd and address 11
keyspan 2-1:1.0: Keyspan - (without firmware) converter detected
usb 2-1: Required firmware image (keyspan-usa19qi.fw) unavailable.
>>> fxload was used at this point
usb 2-1: USB disconnect, address 11
keyspan 2-1:1.0: device disconnected
usb 2-1: new full speed USB device using uhci_hcd and address 12
usb 2-1: configuration #1 chosen from 2 choices
keyspan 2-1:1.0: Keyspan 1 port adapter converter detected
usb 2-1: Keyspan 1 port adapter converter now attached to ttyUSB0
Looks like it works, so I guess the pre-numeration stuff in the driver
is really not necessary. We just need a bunch of hotplug rules to load
the correct firmware whenever an uninitialized device is plugged in and
some way to distribute the firmware images.
Jan
prev parent reply other threads:[~2005-04-05 21:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-05 19:38 Jan Harkes
2005-04-05 19:39 ` [patch 1/5] " Jan Harkes
2005-04-05 20:41 ` Brian Gerst
2005-04-05 19:39 ` [patch 2/5] " Jan Harkes
2005-04-05 19:39 ` [patch 3/5] " Jan Harkes
2005-04-05 19:39 ` [patch 5/5] " Jan Harkes
2005-04-05 20:45 ` [patch 0/5] " Kay Sievers
2005-04-05 21:12 ` Jan Harkes [this message]
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=20050405211226.GA23470@delft.aura.cs.cmu.edu \
--to=jaharkes@cs.cmu.edu \
--cc=dtor_core@ameritech.net \
--cc=greg@kroah.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=sam@ravnborg.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®