All of lore.kernel.org
 help / color / mirror / Atom feed
* Firmware blob in vs6624 driver
@ 2012-05-21 13:56 Ben Hutchings
  2012-05-28  9:01 ` Scott Jiang
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2012-05-21 13:56 UTC (permalink / raw)
  To: Scott Jiang; +Cc: Mauro Carvalho Chehab, linux-media

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

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.

-- 
Ben Hutchings
You can't have everything.  Where would you put it?

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Firmware blob in vs6624 driver
  2012-05-21 13:56 Firmware blob in vs6624 driver Ben Hutchings
@ 2012-05-28  9:01 ` Scott Jiang
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Jiang @ 2012-05-28  9:01 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: Mauro Carvalho Chehab, linux-media

Hi Ben,

> 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.
>
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-28  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21 13:56 Firmware blob in vs6624 driver Ben Hutchings
2012-05-28  9:01 ` Scott Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.