Linux MM tree latest commits
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: mm-commits@vger.kernel.org
Cc: mikewileczka@yahoo.com, greg@kroah.com,
	mark.adamson@ftdichip.com, stable@kernel.org
Subject: + usb-ftdi_sio-fix-endianess-of-max-packet-size.patch added to -mm tree
Date: Thu, 19 Aug 2010 14:46:25 -0700	[thread overview]
Message-ID: <201008192146.o7JLkPLM010160@imap1.linux-foundation.org> (raw)


The patch titled
     usb: ftdi_sio: fix endianess of max packet size
has been added to the -mm tree.  Its filename is
     usb-ftdi_sio-fix-endianess-of-max-packet-size.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: usb: ftdi_sio: fix endianess of max packet size
From: Michael Wileczka <mikewileczka@yahoo.com>

The USB max packet size (always little-endian) was not being byte swapped
on big-endian systems.

Fixes a problem introduced with

: commit 895f28badce96cd903026b0076966e3571b6968e
: Author: Mark Adamson <mark.adamson@ftdichip.com>
: Date:   Fri May 1 11:48:45 2009 +0100
: 
:     USB: ftdi_sio: fix hi-speed device packet size calculation

Signed-off-by: Michael Wileczka <mikewileczka@yahoo.com>
Cc: Greg KH <greg@kroah.com>
Cc: Mark J. Adamson <mark.adamson@ftdichip.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/usb/serial/ftdi_sio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/usb/serial/ftdi_sio.c~usb-ftdi_sio-fix-endianess-of-max-packet-size drivers/usb/serial/ftdi_sio.c
--- a/drivers/usb/serial/ftdi_sio.c~usb-ftdi_sio-fix-endianess-of-max-packet-size
+++ a/drivers/usb/serial/ftdi_sio.c
@@ -1376,7 +1376,7 @@ static void ftdi_set_max_packet_size(str
 	}
 
 	/* set max packet size based on descriptor */
-	priv->max_packet_size = ep_desc->wMaxPacketSize;
+	priv->max_packet_size = le16_to_cpu(ep_desc->wMaxPacketSize);
 
 	dev_info(&udev->dev, "Setting MaxPacketSize %d\n", priv->max_packet_size);
 }
_

Patches currently in -mm which might be from mikewileczka@yahoo.com are

usb-ftdi_sio-fix-endianess-of-max-packet-size.patch


                 reply	other threads:[~2010-08-19 21:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201008192146.o7JLkPLM010160@imap1.linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.adamson@ftdichip.com \
    --cc=mikewileczka@yahoo.com \
    --cc=mm-commits@vger.kernel.org \
    --cc=stable@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox