public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* userspace firmware load fails with current linux-next
@ 2013-10-23  9:06 Lothar Waßmann
  2013-10-23 10:26 ` Ming Lei
  0 siblings, 1 reply; 4+ messages in thread
From: Lothar Waßmann @ 2013-10-23  9:06 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

with the current linux-next loading firmware from userspace fails
because when writing to /sys/class/firmware/*/data the return code is
always 0 (meaning to the userspace too that no data was written).
Thus the userspace tool (mdev) keeps writing the same block of data
over and over again.

A cursory check of the latest updates to /drivers/base/firmware* didn't
reveal anything that could be the cause of this misbehaviour.

Interestingly when changing the .size member of the
struct bin_attribute firmware_attr_data in drivers/base/firmware_class.c
(which is now '0') to e.g. PAGE_SIZE firmware loading works again.

Since .size was at '0' since the beginning of the .git universe there
must have been a fundamental change in the guts of the kernel handling
sysfs attribute files.

Is this behavioural change intended?
Do all sysfs attributes that are created with zero size need to be
changed?
Or is it an unintended side effect of some recent change?


Lothar Wa?mann
-- 
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Gesch?ftsf?hrer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-23 10:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23  9:06 userspace firmware load fails with current linux-next Lothar Waßmann
2013-10-23 10:26 ` Ming Lei
2013-10-23 10:43   ` Lothar Waßmann
2013-10-23 10:48     ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox