]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: serial: fix regression in Visor/Palm OS module for kernels >= 2.6.24
authorBrad Sawatzky <brad+kernel@swatter.net>
Wed, 2 Apr 2008 23:15:13 +0000 (23:15 +0000)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:22 +0000 (18:53 -0700)
commite114af2792992c4e2206dbfb28d52d3bbea2c2ef
tree1323941eb8f03a07e8e2052e33917511303078fd
parentff66974a0f9a9f938f182c49f1464ba54a31e553
USB: serial: fix regression in Visor/Palm OS module for kernels >= 2.6.24

upstream commit: d04863e9e65767feff7807c8f693ac2719dd1944

Fixes a bug/inconsistency revealed by the additional sanity checking in
   commit 063a2da8f01806906f7d7b1a1424b9afddebc443
introduced in the original 2.6.24 branch.

The Handspring Visor / PalmOS 4 device structure defines .num_bulk_out=2
but the usb-serial probe returns num_bulk_out=3, triggering the check in
the above commit and forcing a bail out when the device (a Garmin iQue in
my case) attempts to connect.  The patch bumps the expected number of
endpoints to 3.

FWIW, this patch will probably solve the following kernel bug report for
Treo users (identical symptoms, different model PalmOS units):
  <http://bugzilla.kernel.org/show_bug.cgi?id=10118>

Signed-off-by: Brad Sawatzky <brad+kernel@swatter.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/usb/serial/visor.c