10 Sep, 2011

1 commit

  • remove the following two paragraphs as they are not needed:

    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
    License for more details.

    You should have received a copy of the GNU General Public License along with
    this program; if not, write to the Free Software Foundation, Inc.,59
    Temple Place - Suite 330, Boston, MA 02111-1307, USA.

    Signed-off-by: Klaus Schwarzkopf
    Signed-off-by: Greg Kroah-Hartman

    Klaus Schwarzkopf
     

24 Aug, 2011

1 commit

  • Now ${LINUX}/drivers/usb/* can use usb_endpoint_maxp(desc) to get maximum packet size
    instead of le16_to_cpu(desc->wMaxPacketSize).
    This patch fix it up

    Cc: Armin Fuerst
    Cc: Pavel Machek
    Cc: Johannes Erdfelt
    Cc: Vojtech Pavlik
    Cc: Oliver Neukum
    Cc: David Kubicek
    Cc: Johan Hovold
    Cc: Brad Hards
    Acked-by: Felipe Balbi
    Cc: Sebastian Andrzej Siewior
    Cc: Thomas Dahlmann
    Cc: David Brownell
    Cc: David Lopo
    Cc: Alan Stern
    Cc: Michal Nazarewicz
    Cc: Xie Xiaobo
    Cc: Li Yang
    Cc: Jiang Bo
    Cc: Yuan-hsin Chen
    Cc: Darius Augulis
    Cc: Xiaochen Shen
    Cc: Yoshihiro Shimoda
    Cc: OKI SEMICONDUCTOR,
    Cc: Robert Jarzmik
    Cc: Ben Dooks
    Cc: Thomas Abraham
    Cc: Herbert Pötzl
    Cc: Arnaud Patard
    Cc: Roman Weissgaerber
    Acked-by: Sarah Sharp
    Cc: Tony Olech
    Cc: Florian Floe Echtler
    Cc: Christian Lucht
    Cc: Juergen Stuber
    Cc: Georges Toth
    Cc: Bill Ryder
    Cc: Kuba Ober
    Cc: Inaky Perez-Gonzalez
    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Greg Kroah-Hartman

    Kuninori Morimoto
     

09 Jul, 2011

2 commits


08 Jul, 2011

2 commits


29 Jun, 2011

1 commit

  • peripheral drivers are using usb_add_gadget()/usb_del_gadget() to
    register/unregister to the udc-core.

    The udc-core will take the first available gadget driver and attach
    function driver which is calling usb_gadget_register_driver(). This is
    the same behaviour we have right now.

    Only dummy_hcd was tested, the others were compiled tested.

    Cc: Alan Stern
    Cc: Anton Tikhomirov
    Cc: Ben Dooks
    Cc: Dan Carpenter
    Cc: Darius Augulis
    Cc: Eric Miao
    Cc: Jingoo Han
    Cc: Kukjin Kim
    Cc: Kuninori Morimoto
    Cc: Li Yang
    Cc: Michael Hennerich
    Acked-by: Mike Frysinger
    Cc: Nicolas Ferre
    Cc: Pavankumar Kondeti
    Cc: Roy Huang
    Cc: Russell King
    Cc: Toshiharu Okada
    Cc: Xiaochen Shen
    Cc: Yoshihiro Shimoda
    Cc: Yuan-Hsin Chen
    Cc: cxie4
    Cc: linux-geode@lists.infradead.org
    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Sebastian Andrzej Siewior
     

26 Feb, 2011

1 commit


23 Oct, 2010

1 commit

  • To accomplish this the function to register a gadget driver takes the bind
    function as a second argument. To make things clearer rename the function
    to resemble platform_driver_probe.

    This fixes many section mismatches like

    WARNING: drivers/usb/gadget/g_printer.o(.data+0xc): Section mismatch in
    reference from the variable printer_driver to the function
    .init.text:printer_bind()
    The variable printer_driver references
    the function __init printer_bind()

    All callers are fixed.

    Signed-off-by: Uwe Kleine-König
    [m.nazarewicz@samsung.com: added dbgp]
    Signed-off-by: Michał Nazarewicz
    Signed-off-by: Greg Kroah-Hartman

    Uwe Kleine-König
     

24 Aug, 2010

1 commit

  • In this code, 0 is returned on memory allocation failure, even though other
    failures return -ENOMEM or other similar values.

    A simplified version of the semantic match that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @@
    expression ret;
    expression x,e1,e2,e3;
    @@

    ret = 0
    ... when != ret = e1
    *x = \(kmalloc\|kcalloc\|kzalloc\)(...)
    ... when != ret = e2
    if (x == NULL) { ... when != ret = e3
    return ret;
    }
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     

30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

24 Aug, 2009

1 commit

  • In certain configurations linux/err.h is not included through alternate
    means, resulting in:

    drivers/usb/gadget/m66592-udc.c:1646: error: implicit declaration of function 'IS_ERR'
    drivers/usb/gadget/m66592-udc.c:1649: error: implicit declaration of function 'PTR_ERR'
    distcc[15083] ERROR: compile drivers/usb/gadget/m66592-udc.c on localhost failed
    make[3]: *** [drivers/usb/gadget/m66592-udc.o] Error 1
    make[2]: *** [drivers/usb/gadget] Error 2
    make[1]: *** [drivers] Error 2
    make: *** [sub-make] Error 2

    Caught with an ARM config in -next.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

23 Jul, 2009

1 commit

  • Convert the m66592-udc driver to use the on_chip flag
    from platform data to enable on chip behaviour instead
    of relying on CONFIG_SUPERH_BUILT_IN_M66592 ugliness.

    This makes the code cleaner and also allows us to support
    both external and internal m66592 with the same kernel.

    It also makes the Kconfig part more future proof since
    we with this patch can add support for new processors
    with on-chip m66592 without modifying the Kconfig.

    The patch adds a m66592 header file for platform data
    and ties in platform data to the existing m66592 devices.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

04 Jul, 2009

1 commit

  • This patch updates the m66592-udc buffer management code.

    Use fixed buffers for bulk and isochronous pipes, also make
    sure to handle the isochronous-as-bulk case. With fixed buffers
    there is no need to keep track of used buffers with bi_bufnum.

    Also, this fixes a potential buffer offset problem where the
    base offset incorrectly varies with the number of pipes used.

    With this patch applied it is possible to use m66592-udc for
    both Ethernet and Serial using CONFIG_USB_CDC_COMPOSITE.

    Signed-off-by: Magnus Damm
    Acked-by: Yoshihiro Shimoda
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Paul Mundt

    Magnus Damm
     

08 Jan, 2009

1 commit

  • Use the more common platform_get_resource() together with index instead
    of depending on the resource name and platform_get_resource_by_name().
    Replace the resource_len() implementation with resource_size().

    Signed-off-by: Magnus Damm
    Acked-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Magnus Damm
     

22 Dec, 2008

2 commits

  • drivers/usb/gadget/m66592-udc.c: In function 'm66592_probe':
    drivers/usb/gadget/m66592-udc.c:1672: warning: label 'clean_up2' defined but not used
    drivers/usb/host/r8a66597-hcd.c: In function 'r8a66597_probe':
    drivers/usb/host/r8a66597-hcd.c:2401: warning: label 'clean_up2' defined but not used

    Added by commit 985fc7c81c7852f2e104c71cbe913ace683c9e6a ("sh: sh_mobile
    usbf clock framework support").

    Reported-by: Stephen Rothwell
    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Add clock framework support to the usbf/m66592 driver and
    adjust the cpu specific code accordingly.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

31 Jul, 2008

1 commit

  • Commit 0031a06e2f07ab0d1bc98c31dbb6801f95f4bf01 converted all of the USB
    drivers to use dev_set_name(), though there was a typo on the m66592-udc
    conversion that handed off the wrong pointer (we want the struct device
    here obviously, not the struct usb_gadget).

    Signed-off-by: Paul Mundt
    Cc: Kay Sievers
    Cc: Greg Kroah-Hartman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     

22 Jul, 2008

1 commit


11 Apr, 2008

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable usb
    peripheral drivers, to re-eable module auto loading.

    [dbrownell@users.sourceforge.net: registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     

02 Feb, 2008

4 commits


13 Oct, 2007

1 commit


31 Jul, 2007

1 commit

  • This removes complaints about the gadget stack which are generated by
    the currrent "sparse": it doesn't like the fact that zero is the null
    pointer. (Last I checked, C guarantees that's correct ...)

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

20 Jul, 2007

1 commit

  • This patch incorporates some updates from the review of the
    Renesas m66592-udc driver. Updates include:

    - Fix some locking bugs; and add a few sparse annotations
    - Don't #define __iomem !
    - Lots of whitespace fixes (most of the patch by volume)
    - Some #include file trimmage
    - Other checkpatch.pl and sparse updates
    - Alphabetized and slightly-more-informative Kconfig
    - Don't use the ID which was assigned to the amd5536udc driver.
    - Remove pointless suspend/resume methods updating obsolete field.
    - Some section fixups
    - Fix some leak bugs
    - Fix byteswapping

    Signed-off-by: David Brownell
    Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Yoshihiro Shimoda
     

16 Jul, 2007

1 commit


13 Jul, 2007

2 commits