Re: [PATCH v2 1/2] firmware_class: encapsulate firmware loading status

2016-08-23 Thread Luis R. Rodriguez
On Tue, Aug 23, 2016 at 11:00:19AM +0200, Daniel Wagner wrote: > From: Daniel Wagner > > The firmware user helper code tracks the current state of the loading > process via an member of struct firmware_buf and a completion. You can specify the members, the unsigned long status and the completion

[PATCH v2 1/2] firmware_class: encapsulate firmware loading status

2016-08-23 Thread Daniel Wagner
From: Daniel Wagner The firmware user helper code tracks the current state of the loading process via an member of struct firmware_buf and a completion. Let's encapsulate this simple state machine into struct fw_status. We don't need the fw_lock to protect the state machine anymore. First of all