Commit ac1a474d authored by Dan Williams's avatar Dan Williams Committed by John W. Linville
Browse files

libertas: Davinci platforms need more time loading helper firmware



Davinci platforms apparently need more time in-between helper firmware
blocks.  Even though this is an increased delay, we only take this hit
once at initialization time.

Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 96021f09
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -499,6 +499,11 @@ static int if_sdio_prog_helper(struct if_sdio_card *card)
		if (ret)
			goto release;

		/* On some platforms (like Davinci) the chip needs more time
		 * between helper blocks.
		 */
		mdelay(2);

		chunk_size = min(size, (size_t)60);

		*((__le32*)chunk_buffer) = cpu_to_le32(chunk_size);