From patchwork Sun May 17 09:01:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 24292 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4H91TRm013957 for ; Sun, 17 May 2009 09:01:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754078AbZEQJBG (ORCPT ); Sun, 17 May 2009 05:01:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753869AbZEQJBG (ORCPT ); Sun, 17 May 2009 05:01:06 -0400 Received: from web110804.mail.gq1.yahoo.com ([67.195.13.227]:42750 "HELO web110804.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754378AbZEQJBE (ORCPT ); Sun, 17 May 2009 05:01:04 -0400 Received: (qmail 96466 invoked by uid 60001); 17 May 2009 09:01:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242550864; bh=YObHWGXrNEjMzxcc1kippjV50IBcruV9ZUjW/gK52Os=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=1guXI+s0tR9hMXUa/qAfAyi1QAdvxWNQxAzDzgssIL2xdVf/QH1MdV1VoPllHDnVJqSgyBzMk50NjoYg31VBHHUjhTJuma/j0fe+I/V2pPxyJ8WAdpqtE/76Tht59QUDnS+iSto69IavfZOPaTFtJAqRQMgt4a2qBqEbofojhq0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=yh8wwD9JNsQHrdRqYBuvSLxOc1E/N0q8seFoYBOD8hRmPL+21WQHxidGymsJhZ4U2WkKf5UTBtMFoFkd/PDUiQVtnsUQgtUeKzF45fGkfTHYYFiKxT82kFjbjbITjZRDTQIS4d9DhAZtJF8F4pvAAygLAsM3lzTIvrbeFWiPbk0=; Message-ID: <108583.81032.qm@web110804.mail.gq1.yahoo.com> X-YMail-OSG: 8phzDJcVM1n9kRir1ElTkLozSiTKXDnjP6zOskin3TL4d_v2L42LqxJVgx_g5TODVfGCS85NovjQz8HYJuIKaEXuWe57w9uE_r07_XlmPGNA51xVpur.dvpKY_4JYeUh4ShypqbBC6_qUehMXClQMakbdD1arih73lWjJa0xm0j0cD0Yk7icdQshdqaOSSCiNhppNJvX159GL21TRrANThBoAt24Bls4b4cxDPWZHQUXtolKOXMlt.MqunaGNL3ytYyWzA3w.yZCWoMwt0xZ5lND.tPGd7o60bA3QGMJvU60V2Pmzq70IMGO3dTPcryRTTfAPhbUkj5Q4SPUmvjcabLmIIy73UoyYXbsk62Z9BQNtUgeP0UQWccr9w-- Received: from [199.203.99.233] by web110804.mail.gq1.yahoo.com via HTTP; Sun, 17 May 2009 02:01:03 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Sun, 17 May 2009 02:01:03 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0905_25] Siano: smscore - fix byte ordering bug To: LinuxML MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1242332055 -10800 # Node ID d826829f17df5ccb89fab3a0d48b8aadd04f9689 # Parent fc839f80e81fed027a4721f5c679b9af7e27c867 [0905_25] Siano: smscore - fix byte ordering bug From: Uri Shkolnik Fix byte ordering bug. Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r fc839f80e81f -r d826829f17df linux/drivers/media/dvb/siano/smscoreapi.c --- a/linux/drivers/media/dvb/siano/smscoreapi.c Thu May 14 23:11:07 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smscoreapi.c Thu May 14 23:14:15 2009 +0300 @@ -31,6 +31,7 @@ #include #include +#include #include "smscoreapi.h" #include "smsendian.h" @@ -516,9 +517,13 @@ static int smscore_load_firmware_family2 { struct SmsFirmware_ST *firmware = (struct SmsFirmware_ST *) buffer; struct SmsMsgHdr_ST *msg; - u32 mem_address = firmware->StartAddress; + u32 mem_address; u8 *payload = firmware->Payload; int rc = 0; + firmware->StartAddress = le32_to_cpu(firmware->StartAddress); + firmware->Length = le32_to_cpu(firmware->Length); + + mem_address = firmware->StartAddress; sms_info("loading FW to addr 0x%x size %d", mem_address, firmware->Length);