From patchwork Tue May 12 11:24:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 23228 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 n4CBOcJf004855 for ; Tue, 12 May 2009 11:24:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758856AbZELLYK (ORCPT ); Tue, 12 May 2009 07:24:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756491AbZELLYK (ORCPT ); Tue, 12 May 2009 07:24:10 -0400 Received: from web110811.mail.gq1.yahoo.com ([67.195.13.234]:38467 "HELO web110811.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758245AbZELLYJ (ORCPT ); Tue, 12 May 2009 07:24:09 -0400 Received: (qmail 24622 invoked by uid 60001); 12 May 2009 11:24:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242127448; bh=HYSw7vwrHXhzWyv7ZumPpqG6LM0M31shjHu6OX+FzkE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=MYZ9IgDJ3jEv3OWEs8VpMhkUHVeH+Vx1s69Tnp3byXbI6krTtrpRKSwjmizQQwNj0oxzCg4DknXzPqBCsS+mWRZr84+WsZipSwab/3CmyX1Q+9utnBNidm+hR0q6ytelXCVsczXoi/gu/A68AasFu3YTBe/91/1YiRfERxORQkw= 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:Cc:MIME-Version:Content-Type; b=MjVUiw2k98eNi3N4ZBqeTr5DgEEL10W/v1T1N1hZdSp+togtnYTIj2UYcCcsGsgEXdgJchzRfVEpRWQkxQp/Ex72pYKfHDcPEdNbbbQiH4BwfVWLQj5/idCtOqolHOF1lqzmpqnI0BL5JQ3n1p2FKE5wn9ob2OQBhr6pkW4BUB4=; Message-ID: <19338.23494.qm@web110811.mail.gq1.yahoo.com> X-YMail-OSG: GEZYgQYVM1nxCAUbSKvXdhXsaxEo9RXikSqaStaogwN2VvCNzJmaN9l9SdHU4phDbykQHTcYz4y_c3uqpIXbtquImPvC0lYom_P.ikvYty2k0dyQIizi7chgsQkbTrUYDL.rvYhvG1Mu3vBR6GsfwUndLsAxM7p0A8zvkJHfzlQvJ.jHiespjoB3325wWaOjks9GphFKjE2RnRJXKr9UpOdg.pPSmkGvQuhZkhpKCq4ilcKDy9LbxRhpTOw2WUJQJ9Db_dyzrwdvzpB2NVlln.tsLDDPwlbs7tdqSzLMI6bMe1L1UO.BGhTMvBawnQR94NCNSyo4UqukpN.Nfc4YniTJvJOllfeOAvDXjN4P5w_u Received: from [199.203.99.233] by web110811.mail.gq1.yahoo.com via HTTP; Tue, 12 May 2009 04:24:07 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Tue, 12 May 2009 04:24:07 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0905_02] Siano: smsusb - handle byte ordering and big endianity To: LinuxML Cc: Mauro Carvalho 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 1242127626 -10800 # Node ID 26c02c133d7e1f9932c1968f669ab0bfaf2761fa # Parent 766d02fa7c5c42cc6480eaefb14c7dd6f9c0d370 [0905_02] Siano: smsusb - handle byte ordering and big endianity From: Uri Shkolnik This patch adds support for byte ordering and big endianity handling for the USB interface driver 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 766d02fa7c5c -r 26c02c133d7e linux/drivers/media/dvb/siano/smsusb.c --- a/linux/drivers/media/dvb/siano/smsusb.c Tue May 12 14:00:57 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smsusb.c Tue May 12 14:27:06 2009 +0300 @@ -26,6 +26,7 @@ along with this program. If not, see udev, usb_sndbulkpipe(dev->udev, 2), buffer, size, &dummy, 1000); } @@ -337,8 +339,8 @@ static int smsusb_init_device(struct usb case SMS_VEGA: dev->buffer_size = USB2_BUFFER_SIZE; dev->response_alignment = - dev->udev->ep_in[1]->desc.wMaxPacketSize - - sizeof(struct SmsMsgHdr_ST); + le16_to_cpu(dev->udev->ep_in[1]->desc.wMaxPacketSize) - + sizeof(struct SmsMsgHdr_ST); params.flags |= SMS_DEVICE_FAMILY2; break;