public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6.20.y PATCH 4/7] DVB: cxusb: fix firmware patch for big endian systems
@ 2007-03-03 14:36 Michael Krufky
  0 siblings, 0 replies; only message in thread
From: Michael Krufky @ 2007-03-03 14:36 UTC (permalink / raw)
  To: stable; +Cc: v4l-dvb maintainer list, Linux Kernel Mailing List

From: Jin-Bong lee <jinbong.lee@samsung.com>
Date: Tue, 20 Feb 2007 23:10:34 -0300
Subject: [PATCH] DVB: 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: Jin-Bong lee <jinbong.lee@samsung.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
(cherry picked from commit 1d1370a48ca285ebe197ecd3197a8d5f161bc291)
---
 drivers/media/dvb/dvb-usb/cxusb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c
index 15d12fc..127a94b 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/drivers/media/dvb/dvb-usb/cxusb.c
@@ -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);
 	}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-03 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-03 14:36 [2.6.20.y PATCH 4/7] DVB: cxusb: fix firmware patch for big endian systems Michael Krufky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox