Bjoern A. Zeeb b294eac56b Fix logic errors in iwm_pcie_load_firmware_chunk introduced in r314065.
* There's no reason to have a while() loop here, because:
    - if msleep returns 0, that means we were woken up by the interrupt handler,
      and we are going to exit immediately as sc_fw_chunk_done will now be 1
      (there is nothing else that sleeps on sc_fw.)
    - if msleep doesn't return 0 (i.e. it returned ETIMEDOUT) then we will
      exit immediately because of the if-test.
   So, just use a single msleep() and then check sc_fw_chunk_done as before.
 * The comment said we were sleeping for 5 seconds, but the msleep was only
   for 1. Before r314065, this was 1 second and so was the comment,
   and in that commit the comment was changed and the function call wasn't.

Possibly fixes failures to initialize uCode on certain devices.

Submitted by:	Augustin Cavalier (waddlesplash gmail.com)
Obtained from:	Haiku 132990ecdcb072f2ce597b5d497ff3e5b1f09c20
MFC after:	10 days
2019-01-26 17:52:12 +00:00
..
2019-01-07 02:39:40 +00:00
2018-07-07 15:55:52 +00:00
2018-08-10 13:38:23 +00:00
2019-01-25 21:38:28 +00:00
2018-10-15 18:39:33 +00:00
2018-07-17 23:23:45 +00:00
2018-06-15 02:28:36 +00:00
2018-04-13 20:30:49 +00:00
2018-11-29 19:06:05 +00:00
2018-12-12 21:56:45 +00:00
2018-12-17 21:34:09 +00:00
2018-03-14 18:27:06 +00:00
2018-08-01 08:24:34 +00:00
2018-08-07 17:13:42 +00:00
2018-08-21 10:08:12 +00:00
2017-11-30 20:33:45 +00:00
2018-12-31 23:27:56 +00:00
2018-12-26 10:48:39 +00:00
2019-01-08 05:41:04 +00:00
2017-10-21 07:23:45 +00:00
2017-11-30 20:33:45 +00:00
2018-04-13 20:30:49 +00:00
2018-09-26 19:41:00 +00:00
2018-07-27 10:40:48 +00:00
2018-07-13 22:49:48 +00:00
2018-11-14 15:39:48 +00:00
2018-01-03 00:56:30 +00:00
2018-01-13 16:31:07 +00:00