Re: [PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-08 Thread Luis R. Rodriguez
On Thu, Dec 08, 2016 at 03:47:22PM +0100, Daniel Wagner wrote: > On 12/07/2016 02:01 AM, Bjorn Andersson wrote: > > When request_firmware() finds an already open firmware object it will > > wait for that object to become fully loaded and then check the status. > > As __fw_state_wait_common()

Re: [PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-08 Thread Luis R. Rodriguez
On Thu, Dec 08, 2016 at 03:47:22PM +0100, Daniel Wagner wrote: > On 12/07/2016 02:01 AM, Bjorn Andersson wrote: > > When request_firmware() finds an already open firmware object it will > > wait for that object to become fully loaded and then check the status. > > As __fw_state_wait_common()

Re: [PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-08 Thread Daniel Wagner
On 12/07/2016 02:01 AM, Bjorn Andersson wrote: When request_firmware() finds an already open firmware object it will wait for that object to become fully loaded and then check the status. As __fw_state_wait_common() succeeds the timeout value returned will be truncated in

Re: [PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-08 Thread Daniel Wagner
On 12/07/2016 02:01 AM, Bjorn Andersson wrote: When request_firmware() finds an already open firmware object it will wait for that object to become fully loaded and then check the status. As __fw_state_wait_common() succeeds the timeout value returned will be truncated in

[PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-06 Thread Bjorn Andersson
When request_firmware() finds an already open firmware object it will wait for that object to become fully loaded and then check the status. As __fw_state_wait_common() succeeds the timeout value returned will be truncated in _request_firmware_prepare() and interpreted as -EPERM. Prior to

[PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-06 Thread Bjorn Andersson
When request_firmware() finds an already open firmware object it will wait for that object to become fully loaded and then check the status. As __fw_state_wait_common() succeeds the timeout value returned will be truncated in _request_firmware_prepare() and interpreted as -EPERM. Prior to