Skip to contentSkip to conversation

Firmware blob in vs6624 driver

DISCUSSION Ben Hutchings 2 participants 2 messages May 21, 2012 – May 28, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

The array vs6624_p1 is a list of bytes to write to the VS6624's microcontroller registers/memory, written before it starts running code:

	vs6624_writeregs(sd, vs6624_p1);
	vs6624_write(sd, VS6624_MICRO_EN, 0x2);
	vs6624_write(sd, VS6624_DIO_EN, 0x1);
	mdelay(10);

This doesn't touch any of the documented registers, so presumably it's a patch to the firmware loaded from non-volatile memory. Unless you can provide source code for the patch, this should go in the linux-firmware repository and be loaded with request_firmware() instead of embedded in the GPL driver source.

Also, shouldn't you check the loaded firmware version first to verify that it's safe to apply the patch?

Ben.

Signature · 2 lines
Ben Hutchings
You can't have everything.  Where would you put it?
#1 lore raw

Hi Ben,

Quoted 5 lines

This doesn't touch any of the documented registers, so presumably it's a patch to the firmware loaded from non-volatile memory.  Unless you can provide source code for the patch, this should go in the linux-firmware repository and be loaded with request_firmware() instead of embedded in the GPL driver source.

Sounds reasonable.

Quoted 3 lines

Also, shouldn't you check the loaded firmware version first to verify that it's safe to apply the patch?

The problem is you can't get version before power up device but you should apply patch at that time.

Scott