Skip to contentSkip to conversation

USB patches for 2.6.33-rc1

PATCH In review Greg KH 2 participants 3 messages Dec 23, 2009

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 1/1 USB patches for 2.6.33-rc1

Here are some USB patches for the 2.6.33-rc1 tree.

They do:
- documentation updates
- new device ids
- bugfixes
- reorg the device ids in one usb-serial driver. I took this now as it's a merge pressure point, and this is just a code move now, no functionality changed at all. It's odd that git didn't show this as a code move in the diffstat, I used:
git diff -m --stat --summary
to generate the diffstat. Should I be doing something else? Or is it because the code is being removed from one file and placed in another one?

Please pull from:

	master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6.git/

All of these patches have been in the linux-next and mm trees.

The full patches will be sent to the linux-usb mailing list, if anyone wants to see them.

thanks,

greg k-h

------------

 Documentation/ABI/testing/sysfs-bus-usb |   18 +-
 Documentation/usb/power-management.txt  |   41 +-
 MAINTAINERS                             |    2 +-
 drivers/usb/Makefile                    |    2 -
 drivers/usb/core/hcd.c                  |    4 +-
 drivers/usb/core/hub.c                  |   58 +-
 drivers/usb/core/sysfs.c                |    6 +-
 drivers/usb/core/usb.c                  |    6 +-
 drivers/usb/early/ehci-dbgp.c           |    2 +-
 drivers/usb/gadget/audio.c              |    1 +
 drivers/usb/gadget/f_audio.c            |   15 +-
 drivers/usb/gadget/u_audio.c            |   12 +-
 drivers/usb/gadget/u_audio.h            |    2 +-
 drivers/usb/misc/appledisplay.c         |    5 +-
 drivers/usb/misc/emi62.c                |    2 +-
 drivers/usb/musb/blackfin.c             |  150 +++--
 drivers/usb/musb/blackfin.h             |    2 -
 drivers/usb/musb/cppi_dma.c             |    6 +
 drivers/usb/musb/davinci.c              |    2 +-
 drivers/usb/musb/musb_core.c            |   14 +-
 drivers/usb/musb/musb_gadget.c          |   13 +-
 drivers/usb/musb/musb_gadget_ep0.c      |   14 +-
 drivers/usb/otg/isp1301_omap.c          |    4 +-
 drivers/usb/serial/ftdi_sio.c           |    1 +
 drivers/usb/serial/ftdi_sio.h           |  959 +------------------------------
 drivers/usb/serial/ftdi_sio_ids.h       |  986 +++++++++++++++++++++++++++++++
 drivers/usb/serial/mos7840.c            |    7 +-
 drivers/usb/serial/option.c             |    5 +
 28 files changed, 1234 insertions(+), 1105 deletions(-)
 create mode 100644 drivers/usb/serial/ftdi_sio_ids.h

---------------

Alan Stern (3):
USB: power management documentation update
USB: rename usb_configure_device
USB: fix bugs in usb_(de)authorize_device

Andreas Mohr (2):
USB: ftdi_sio: isolate all device IDs to new ftdi_sio_ids.h header
USB: ftdi_sio: sort PID/VID entries in new ftdi_sio_ids.h header

Arnaud Mandy (1):
USB: musb: gadget: set otg tranceiver to idle when registering gadget

Bill Gatliff (1):
USB: Fix double-linking of drivers/usb/otg when ULPI is selected

Blaise Gassend (1):
USB: serial: Extra device/vendor ID for mos7840 driver

Bryan Wu (1):
USB: musb: workaround Blackfin FIFO anomalies

Clemens Ladisch (1):
USB: emi62: fix crash when trying to load EMI 6|2 firmware

Cliff Cai (4):
USB: musb: fix compiling warning with min() macro
USB: musb: correct DMA address for tx
USB: audio gadget: fix wTotalLength calculation
USB: audio gadget: free alsa devices when unloading

Donny Kurnia (1):
USB: option: support hi speed for modem Haier CE100

Felipe Balbi (4):
USB: musb: move musb_remove to __exit
USB: musb: MAINTAINERS: Fix my tree's address
USB: musb: do not work if no gadget driver is loaded
usb: otg: isp1301_omap: fix compile error

Jan Beulich (1):
USB: fix section mismatch in early ehci dbgp

Julia Lawall (1):
USB: gadget: Use ERR_PTR/IS_ERR

Maulik Mankad (2):
USB: musb: Fix null pointer dereference issue
USB: musb: Fix array index out of bounds issue

Randy Dunlap (1):
USB core: fix recent kernel-doc warnings

Sergei Shtylyov (2):
USB: musb_gadget: fix kernel oops in txstate()
USB: musb: gadget_ep0: avoid SetupEnd interrupt

Swaminathan S (2):
USB: musb: Populate the VBUS GPIO with the correct GPIO number
USB: musb: fix for crash in DM646x USB when (CPPI)DMA is enabled

pancho horrillo (2):
USB: add device ID for Apple Cinema Display 23in 2007
USB: Fix a bug on appledisplay.c regarding signedness

#1 lore raw
Quoted 10 lines · Greg KH

They do:
- reorg the device ids in one usb-serial driver. I took this now as it's a merge pressure point, and this is just a code move now, no functionality changed at all. It's odd that git didn't show this as a code move in the diffstat, I used:
git diff -m --stat --summary
to generate the diffstat. Should I be doing something else? Or is it because the code is being removed from one file and placed in another one?

Since the old file stays around, git doesn't consider it a rename.

Now, you can actually change that a bit. You can use -C instead of -M, which enables copy-detection rather than just renames, and then it changes from

 drivers/usb/serial/ftdi_sio.c           |    1 +
 drivers/usb/serial/ftdi_sio.h           |  959 +------------------------------
 drivers/usb/serial/ftdi_sio_ids.h       |  986 +++++++++++++++++++++++++++++++

to

 drivers/usb/serial/ftdi_sio.c                     |    1 +
 drivers/usb/serial/ftdi_sio.h                     |  959 +-----------
 drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} | 1785 ++++++++-------------
 copy drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} (65%)

which isn't actually any better (since while it notices the copy of the data, it _removes_ all the code whily copying, so the total number of lines actually goes up!).

So -M doesn't really "help" in that the diff itself does end up larger, but at the same time it is somewhat informative in the sense that you do see where the data comes from.

To see another facet of it all, you could also use "-B" to say that you want to Break all old name associations if a file has changed a lot, and then enable rename (or copy) detection, and get

 drivers/usb/serial/ftdi_sio.c                     |    1 +
 drivers/usb/serial/ftdi_sio.h                     | 2063 ++++++---------------
 drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} | 1785 +++++++------------
 rewrite drivers/usb/serial/ftdi_sio.h (68%)
 rename drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} (65%)

which is the largest of all diffs but it shows another side of the
situation: that sio.h file has is now a "rewrite", and the end result is substantially different from the original. So git shows it as a "rename in place" where the diff shows up as a total delete followed by a total addition.

As you can see, git does see that you moved data around, but since a lot of the data also _stayed_ in the original file, the copy/break operations really don't help. You cannot show "copy this part of this file into that other file" as a diff.

Btw, we _do_ do the "copy this part of this file into that other file" when you do "git blame -C", so you can now do

git blame -C drivers/usb/serial/ftdi_sio_ids.h

and it will follow the history of the lines in that file back to the ftdi_sio.h file. So the fact that git doesn't show it in the diffs is really because diffs always work on a whole-file basis (ie you can show a "rename file" diff, but you can't show a "move one function or a set of ID's from one file to another" diff.

Linus

author
#2 lore raw
Quoted 63 lines · Linus Torvalds
Quoted 10 lines · Greg KH

They do:
- reorg the device ids in one usb-serial driver. I took this now as it's a merge pressure point, and this is just a code move now, no functionality changed at all. It's odd that git didn't show this as a code move in the diffstat, I used:
git diff -m --stat --summary
to generate the diffstat. Should I be doing something else? Or is it because the code is being removed from one file and placed in another one?

Since the old file stays around, git doesn't consider it a rename.

Now, you can actually change that a bit. You can use -C instead of -M, which enables copy-detection rather than just renames, and then it changes from

 drivers/usb/serial/ftdi_sio.c           |    1 +
 drivers/usb/serial/ftdi_sio.h           |  959 +------------------------------
 drivers/usb/serial/ftdi_sio_ids.h       |  986 +++++++++++++++++++++++++++++++

to

 drivers/usb/serial/ftdi_sio.c                     |    1 +
 drivers/usb/serial/ftdi_sio.h                     |  959 +-----------
 drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} | 1785 ++++++++-------------
 copy drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} (65%)

which isn't actually any better (since while it notices the copy of the data, it _removes_ all the code whily copying, so the total number of lines actually goes up!).

So -M doesn't really "help" in that the diff itself does end up larger, but at the same time it is somewhat informative in the sense that you do see where the data comes from.

To see another facet of it all, you could also use "-B" to say that you want to Break all old name associations if a file has changed a lot, and then enable rename (or copy) detection, and get

 drivers/usb/serial/ftdi_sio.c                     |    1 +
 drivers/usb/serial/ftdi_sio.h                     | 2063 ++++++---------------
 drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} | 1785 +++++++------------
 rewrite drivers/usb/serial/ftdi_sio.h (68%)
 rename drivers/usb/serial/{ftdi_sio.h => ftdi_sio_ids.h} (65%)

which is the largest of all diffs but it shows another side of the
situation: that sio.h file has is now a "rewrite", and the end result is substantially different from the original. So git shows it as a "rename in place" where the diff shows up as a total delete followed by a total addition.

As you can see, git does see that you moved data around, but since a lot of the data also _stayed_ in the original file, the copy/break operations really don't help. You cannot show "copy this part of this file into that other file" as a diff.

Btw, we _do_ do the "copy this part of this file into that other file" when you do "git blame -C", so you can now do

Quoted 7 lines

git blame -C drivers/usb/serial/ftdi_sio_ids.h

and it will follow the history of the lines in that file back to the ftdi_sio.h file. So the fact that git doesn't show it in the diffs is really because diffs always work on a whole-file basis (ie you can show a "rename file" diff, but you can't show a "move one function or a set of ID's from one file to another" diff.

Thanks for the through explaination. I guess I'll just stick with '-M' on the diffstat summaries for now, but it is good to know that git can track this type of change through the changeset, which is the most important thing.

thanks,

greg k-h