All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arend Van Spriel <arend.vanspriel@broadcom.com>
To: Hans de Goede <hdegoede@redhat.com>,
	"Luis R. Rodriguez" <mcgrof@kernel.org>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: brcmfmac: don't warn user if requested nvram fails
Date: Fri, 7 Apr 2017 23:43:04 +0200	[thread overview]
Message-ID: <577dc508-07ff-c74f-5c90-b6baf4e7694a@broadcom.com> (raw)
In-Reply-To: <09063fc2-af77-ced6-ed90-ab20e2884969@redhat.com>



On 6-4-2017 14:14, Hans de Goede wrote:
> Hi,
> 
> I noticed your patch-series on the lwn.net kernel page,
> and I took a peek :)
> 
> I don't think that this patch:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?h=20170329-driver-data-v2-try3&id=3968dd3031d1ff7e7be4acfb810948c70c2d4490
> 
> 
> Is a good idea, specifically the "do not warn" part,
> although the brcmfmac driver will indeed try to continue
> without a nvram file, in my experience it almost all
> the time will not work properly without the nvram file.

Actually, brcmfmac will only continue without nvram for PCIe devices.
For SDIO it is a different story, which may be the kind of devices you
have experienced.

> Arend, should we maybe just make the missing nvram file
> a fatal error ?
> 
> ###
> 
> While on the subject of nvram file loading, I want to make
> some changes to how brcmfmac does this, for pcie
> devices I want it to first try:
> 
> brcmfmac-4xxx-sdio-<pci-subsys-vid>-<pci-subsys-pid>.txt
> and only if that is not present fallback to
> brcmfmac-4xxx-sdio.txt, so that we can include the
> brcmfmac-4xxx-sdio-<pci-subsys-vid>-<pci-subsys-pid>.txt
> in the linux-firmware repo and have things just work.

You got me confused. I suppose the -sdio- should not be in the filename
examples above. So who is going to provide these nvram files. We can not
maintain that as there are too many variants and they are under control
of the OEM/ODM.

> Likewise for sdio devices on devicetree platforms
> first try brcmfmac-4xxx-sdio-<model>.txt.
> 
> And for sdio devices on ACPI/x86 systems I want to
> do something similar too.
> 
> Luis, do you think it would be a good idea to add
> .optional_postfix member to driver_data_req_params
> for this? I believe other sdio based wifi devices
> may want to do the same, or should this be handled
> in the driver by doing 2 driver_data_request_async
> calls (the 2nd when the 1st fails) ?

I think we briefly touched this subject a while ago. It would be great
if the driver_data api could be given a list/array of files which can be
flagged as required or optional. Just not sure how to deal with drivers
that request a firmware file and fallback to requesting older ones
repeatedly thus stop processing upon first successful load. Both
use-cases seem present in drivers.

Regards,
Arend

> Regards,
> 
> Hans
> 
> 

  reply	other threads:[~2017-04-07 21:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06 12:14 brcmfmac: don't warn user if requested nvram fails Hans de Goede
2017-04-07 21:43 ` Arend Van Spriel [this message]
2017-04-08  9:53   ` Hans de Goede
2017-04-10 21:50     ` Arend Van Spriel
2017-04-11  8:53       ` Hans de Goede
2017-04-27  0:36         ` Luis R. Rodriguez
2017-04-30 19:39           ` Hans de Goede
2017-05-01  8:57             ` Arend van Spriel
2017-06-26 18:16     ` Rafał Miłecki
2017-04-27  0:45   ` Luis R. Rodriguez

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=577dc508-07ff-c74f-5c90-b6baf4e7694a@broadcom.com \
    --to=arend.vanspriel@broadcom.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@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 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.