Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:63242 "EHLO webmail.solarflare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382Ab3LKV0U (ORCPT ); Wed, 11 Dec 2013 16:26:20 -0500 Message-ID: <1386797175.1516.272.camel@bwh-desktop.uk.level5networks.com> (sfid-20131211_222639_933728_97887CB8) Subject: Re: [PATCH v2 15/16] wl1251: Add sysfs file address for setting permanent mac address From: Ben Hutchings To: Pali =?ISO-8859-1?Q?Roh=E1r?= CC: Dan Williams , Kalle Valo , "Luciano Coelho" , "John W. Linville" , , , , , , , , , Johannes Berg , Felipe Contreras Date: Wed, 11 Dec 2013 21:26:15 +0000 In-Reply-To: <201312102031.23797@pali> References: <1382819655-30430-1-git-send-email-pali.rohar@gmail.com> <201312101852.17030@pali> <1386703339.30202.19.camel@dcbw.foobar.com> <201312102031.23797@pali> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2013-12-10 at 20:31 +0100, Pali Rohár wrote: [...] > So, if you like this idea, can you help me how to write udev rule > which will run my own program (it print mac address) and send mac > address when driver ask for mac address in request_firmware? > Problem is that default udev rule for firmware trying to load data > from /lib/firmware/... but in this case mac address first must be > read from special location and converted to correct format. Unfortunately, udev no longer supports firmware loading during module loading (unless that was fixed - I don't think it has been). Loading firmware *files* still works because the kernel can read those directly rather than requesting them from udev. Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.