public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
To: Michal Suchanek <hramrach@gmail.com>
Cc: "linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	Russell King <linux@arm.linux.org.uk>,
	Kukjin Kim <kgene@kernel.org>,
	Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	Lukasz Majewski <l.majewski@samsung.com>,
	Andreas Faerber <afaerber@suse.de>,
	Sachin Kamat <sachin.kamat@samsung.com>,
	Sjoerd Simons <sjoerd.simons@collabora.co.uk>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	linux-samsung-soc@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ARM: exynos_defconfig: add options to make wifi usable
Date: Mon, 11 May 2015 15:28:28 +0200	[thread overview]
Message-ID: <5550AE7C.6050208@collabora.co.uk> (raw)
In-Reply-To: <CAOMqctTDwwbacrLZ8iS_VZKNTBayEfaSX-s50ekcuGE4E=eNfw@mail.gmail.com>

On 05/11/2015 02:23 PM, Michal Suchanek wrote:
> On 11 May 2015 at 13:25, Javier Martinez Canillas
> <javier.martinez@collabora.co.uk> wrote:
>> Hello Michal,
>>
>> On 05/11/2015 12:22 PM, Michal Suchanek wrote:
>>> The Exynos defconfig includes mwifiex sdio support which is present on
>>> some of the Exynos boards.
>>>
>>> For the WiFi to be usable two extra options are needed. Usermode
>>
>> Your subject line and the commit message are somehow misleading since
>> these options are needed to make the WiFi usable with your current setup.
>>
>>> firmware helper to load out-of-kernel firmware and wireless extensions
>>
>> For example, this is only needed if the in-kernel fw loader is not
>> able to find the firmware but isn't needed if the fw is for example
>> in an initial ramdisk and the kernel is able to load it, built in the
>> kernel or if the mwifiex driver is built as a module.
> 
> I am not sure how is including the firmware in a ramdisk going to
> improve things over including it in my root filesystem. As far as I am
> aware it does not make any difference for the kernel.
> 

My understanding is that an initial ramdisk is mounted very early in the
kernel boot process so even a module-less initamfs that only contains a
set of firmwares is enough to make the request_firmware() of built in
drivers to succeed.

While having those in your root filesystem located in a storage media,
will make the request_firmware() to fail since the rootfs is mounted much
later after built in drivers' probe functions have already been executed.

But now you make me doubt if I'm wrong on my assumptions and I should
check if that's the case.

> The firmware is not included in the kernel tree nor configured as
> extra firmware option in the defconfig, either. Otherwise the firmware
> loader would supposedly find the firmware and we would not have this
> discussion.
> 
> The mwifiex driver is configured as built-in in the defconfig so what
> happens when the driver is built as a module is not relevant for this
> defconfig.
>

Yes, these two (fw built-in the kernel and driver as a module) were just
other examples of setups that don't require the fallback user-mode helper.

At least I would mention in the commit message that given the driver is
built-in, no fw is built-in the kernel couldn't be assumed that a initram
fs will be used, it is better to enable the user-space fw loading fallback.

>>
>>> so the interface can be configured with wireless-tools.
>>>
>>
>> And wireless extensions is deprecated AFAIK and is only needed for old
>> user-space since most tools should had been converted to use the netlink
>> based CONFIG_CFG80211 interface instead.
>>
>> I'm booting a debian jessie and have WiFi working without CFG80211_WEXT
>> for example.
> 
> I'm booting Debian Jessie as well and for me WiFi is not working
> without CFG80211_WEXT for another example.
> 
> So it might be that some tools have migrated to another interface but
> at first glance I have no idea what those tools might be in Debian so
> for me the WiFi is unusable without wireless extensions.
>

I'm using the iw package [0] which according to the package description:

"will become the canonical command line tool for wireless configuration
and iwconfig/wireless-tools will no longer be required"

So I guess iw uses the new netlink based interface while wireless-tools
is still using the old ioctl based API.

That's something that could also be mentioned in the commit message.

>>
>> That doesn't mean that I'm against your patch (I'm always happy to enable
>> more config options if that makes the defconfig more useful) but the commit
>> message should be accurate about why a change has to be done.
> 
> Do you have some specific suggestions about improvements to the commit message?
>

I already mentioned them above. My point is that the subject and commit message
said that WiFi is unusable without these options and that's not the case for all
the setups.

> Thanks
> 
> Michal
>

Best regards,
Javier

[0]: https://packages.debian.org/jessie/iw

  reply	other threads:[~2015-05-11 13:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-11 10:22 [PATCH] ARM: exynos_defconfig: add options to make wifi usable Michal Suchanek
2015-05-11 11:25 ` Javier Martinez Canillas
2015-05-11 12:23   ` Michal Suchanek
2015-05-11 13:28     ` Javier Martinez Canillas [this message]
2015-05-12 14:43       ` Michal Suchanek
2015-05-11 12:37 ` Krzysztof Kozlowski

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=5550AE7C.6050208@collabora.co.uk \
    --to=javier.martinez@collabora.co.uk \
    --cc=afaerber@suse.de \
    --cc=hramrach@gmail.com \
    --cc=k.kozlowski@samsung.com \
    --cc=kgene@kernel.org \
    --cc=l.majewski@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=rafael.j.wysocki@intel.com \
    --cc=sachin.kamat@samsung.com \
    --cc=sjoerd.simons@collabora.co.uk \
    /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