Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d1370a4 authored by Jin-Bong lee's avatar Jin-Bong lee Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (5276): Cxusb: fix firmware patch for big endian systems



Without this patch, the device will not be detected after firmware download
on big endian systems.

Signed-off-by: default avatarJin-Bong lee <jinbong.lee@samsung.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent b9109b75
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -469,9 +469,9 @@ static int bluebird_patch_dvico_firmware_download(struct usb_device *udev,
	    fw->data[BLUEBIRD_01_ID_OFFSET + 1] == USB_VID_DVICO >> 8) {

		fw->data[BLUEBIRD_01_ID_OFFSET + 2] =
			udev->descriptor.idProduct + 1;
			le16_to_cpu(udev->descriptor.idProduct) + 1;
		fw->data[BLUEBIRD_01_ID_OFFSET + 3] =
			udev->descriptor.idProduct >> 8;
			le16_to_cpu(udev->descriptor.idProduct) >> 8;

		return usb_cypress_load_firmware(udev, fw, CYPRESS_FX2);
	}