Linux wireless drivers development
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Kalle Valo <kalle.valo@iki.fi>
Cc: Christian Lamparter <chunkeey@googlemail.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [RFC] p54: software hot-swap eeprom image
Date: Fri, 20 Nov 2009 15:12:30 -0800	[thread overview]
Message-ID: <1258758750.26965.117.camel@localhost.localdomain> (raw)
In-Reply-To: <87pr7cc3ks.fsf@purkki.valot.fi>

On Fri, 2009-11-20 at 23:02 +0200, Kalle Valo wrote:
> Dan Williams <dcbw@redhat.com> writes:
> 
> >> Wasn't the concensus that request_firmware() will be used for this
> >> kind of device specific data? stlc45xx had a similar sysfs interface
> >> and people didn't like it. And I tend to agree with them, adding odd
> >> sysfs files is not the best way to handle this.
> >
> > It could be yes, but what would the trigger to upload the new firmware
> > be?  A /standard/ sysfs file that you
> >
> > echo "new-firmware-v345" > eeprom_write
> >
> > into that would then request_firmware("new-firmware-v345")?
> 
> To be sure that we are talking about the same stuff, let's clarify
> this a bit first. There are two different use cases where eeprom from
> user space is needed:
> 
> Category 1. Devices which don't have eeprom at all and require the
>             user space provides the eeprom data during every device
>             boot. These devices won't even function correctly if they
>             don't get the correct eeprom data from user space. As an
>             example, grep nvs from wl12xx.

Obviously; pretty much every driver that needs firmware does this
already, yeah.  And uses request_firmware().

> Category 2. Devices which have eeprom but can be updated by user.

I was under the impression that chr's original patch was doing #2 here.
Run-time update of firmware.  I guess if the device doesn't actually
write the new firmware to eeprom then yeah, use #1.  Thought his case
was #2 or something.

Dan


  reply	other threads:[~2009-11-20 23:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-20 19:27 [RFC] p54: software hot-swap eeprom image Christian Lamparter
2009-11-20 19:53 ` Dan Williams
2009-11-20 20:32   ` Luis R. Rodriguez
2009-11-20 20:32   ` Kalle Valo
2009-11-20 20:24 ` Kalle Valo
2009-11-20 20:48   ` Dan Williams
2009-11-20 21:02     ` Kalle Valo
2009-11-20 23:12       ` Dan Williams [this message]
2009-11-20 23:33   ` Christian Lamparter

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=1258758750.26965.117.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=chunkeey@googlemail.com \
    --cc=kalle.valo@iki.fi \
    --cc=linux-wireless@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