From patchwork Mon Jan 12 14:59:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis Joseph Barrow X-Patchwork-Id: 17960 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 63683DE15C for ; Tue, 13 Jan 2009 01:59:29 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752315AbZALO70 (ORCPT ); Mon, 12 Jan 2009 09:59:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752244AbZALO7Y (ORCPT ); Mon, 12 Jan 2009 09:59:24 -0500 Received: from mailer2.option.com ([81.246.70.163]:60324 "EHLO mailer2.option.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491AbZALO7X (ORCPT ); Mon, 12 Jan 2009 09:59:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8BAIPpakkKAAAZ/2dsb2JhbAAI0l2Fbw Received: from unknown (HELO smtp3.option.com) ([10.0.0.25]) by mailer2.option.local with ESMTP; 12 Jan 2009 15:59:11 +0100 Received: from [10.30.1.59] ([10.30.1.59]) by smtp3.option.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Jan 2009 15:59:10 +0100 Message-ID: <496B5ABE.2060406@option.com> Date: Mon, 12 Jan 2009 15:59:10 +0100 From: Denis Joseph Barrow User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Linux netdev Mailing list , Linux USB kernel mailing list , Paul Hardwick Subject: [PATCH] hso driver fix for big endian machines. X-OriginalArrivalTime: 12 Jan 2009 14:59:10.0596 (UTC) FILETIME=[53422440:01C974C6] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi there, This patch is against 2.6.29-rc1 I hope it'll apply to other trees if neccessary. Filip Aben says this fix is neccessary for big endian machines. If anybody has one & a hso device & a big endian machine I'd greatly appreciate if you tell me if this patch works. A patch needed to make the hso driver work on big endian machines. Signed-off-by: Denis Joseph Barrow A patch needed to make the hso driver work on big endian machines. Signed-off-by: Denis Joseph Barrow --- Index: linux-2.6/drivers/net/usb/hso.c =================================================================== --- linux-2.6.orig/drivers/net/usb/hso.c 2009-01-12 15:49:57.000000000 +0100 +++ linux-2.6/drivers/net/usb/hso.c 2009-01-12 15:50:33.000000000 +0100 @@ -1792,8 +1792,8 @@ /* initialize */ ctrl_req->wValue = 0; - ctrl_req->wIndex = hso_port_to_mux(port); - ctrl_req->wLength = size; + ctrl_req->wIndex = cpu_to_le16(hso_port_to_mux(port)); + ctrl_req->wLength = cpu_to_le16(size); if (type == USB_CDC_GET_ENCAPSULATED_RESPONSE) { /* Reading command */