Re: userspace firmware load fails with current linux-next

2013-10-23 Thread Ming Lei
On Wed, Oct 23, 2013 at 6:43 PM, Lothar Waßmann wrote: > The patch as is produces a build error, because 'size' is only defined > after the 'if' statement. Sorry for that, :-) > > The modified patch below works for me. > > diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c > index 5d818df..709d6f5

Re: userspace firmware load fails with current linux-next

2013-10-23 Thread Lothar Waßmann
Hi, Ming Lei wrote: > On Wed, 23 Oct 2013 11:06:18 +0200 > Lothar Waßmann wrote: > [...] > > Or is it an unintended side effect of some recent change? > > Maybe yes, could you test below patch? > > Tejun, looks we need to keep special attention on zero size of bin file > as before, could you c

Re: userspace firmware load fails with current linux-next

2013-10-23 Thread Ming Lei
Hi, On Wed, 23 Oct 2013 11:06:18 +0200 Lothar Waßmann wrote: > 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 userspa