13 Jan, 2012

1 commit


10 Jan, 2012

2 commits

  • Cleanups on various subarchitectures

    Cleanup patches for various ARM platforms and some of their associated
    drivers, the bulk of these is for mach-91.

    Arnd ended up pulling in the restart branch from Russell in order to
    fix up some simple but annoying merge conflicts.

    * tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (44 commits)
    arm/at91: fix build of stamp9g20
    ARM: u300: delete memory.h
    MAINTAINERS: add maintainer entry for Picochip picoxcell
    ARM: picoxcell: move io mappings to common.c
    ARM: picoxcell: don't reserve irq_descs
    ARM: picoxcell: remove mach/memory.h
    ARM: at91: delete the pcontrol_g20_defconfig
    arm/tegra: Remove code that's ifndef CONFIG_ARM_GIC
    arm/tegra: remove unused defines
    arm/tegra: fix variable formatting in makefile
    ARM: davinci: vpif: move code to driver core header from platform
    ARM: at91/gpio: fix display of number of irq setuped
    ARM: at91/gpio: drop PIN_BASE
    ARM: at91/udc: use gpio_is_valid to check the gpio
    ARM: at91/ohci: use gpio_is_valid to check the gpio
    ARM: at91/nand: use gpio_is_valid to check the gpio
    ARM: at91/mmc: use gpio_is_valid to check the gpio
    ARM: at91/ide: use gpio_is_valid to check the gpio
    ARM: at91/pata: use gpio_is_valid to check the gpio
    ARM: at91/soc: use gpio_is_valid to check the gpio
    ...

    Linus Torvalds
     
  • * 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits)
    USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c
    xhci: Clean up 32-bit build warnings.
    USB: update documentation for usbmon
    usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops
    drivers/usb/class/cdc-acm.c: clear dangling pointer
    drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree
    drivers/usb/host/isp1760-if.c: introduce missing kfree
    usb: option: add ZD Incorporated HSPA modem
    usb: ch9: fix up MaxStreams helper
    USB: usb-skeleton.c: cleanup open_count
    USB: usb-skeleton.c: fix open/disconnect race
    xhci: Properly handle COMP_2ND_BW_ERR
    USB: remove dead code from suspend/resume path
    USB: add quirk for another camera
    drivers: usb: wusbcore: Fix dependency for USB_WUSB
    xhci: Better debugging for critical host errors.
    xhci: Be less verbose during URB cancellation.
    xhci: Remove debugging about ring structure allocation.
    xhci: Remove debugging about toggling cycle bits.
    xhci: Remove debugging for individual transfers.
    ...

    Linus Torvalds
     

09 Jan, 2012

3 commits

  • Signed-off-by: Al Viro

    Al Viro
     
  • * if you do dput() of root dentry, do *not* follow that with iput() of root
    inode.
    * while we are at it, don't do that dput() at all - you are leaving the pointer
    in ->s_root and your ->kill_sb() will be very unhappy with that. It will do
    proper dput(), though, so the easiest way is to leave that to it entirely.
    * freeing ->s_fs_info is also best left to ->kill_sb() (which will do it
    anyway), especially since we leave the pointer in place.
    * that xchg() in ->kill_sb() is not a bug per se, but it's a plain and simple
    masturbation with fewer excuses than Onan had...

    Signed-off-by: Al Viro

    Al Viro
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (53 commits)
    Kconfig: acpi: Fix typo in comment.
    misc latin1 to utf8 conversions
    devres: Fix a typo in devm_kfree comment
    btrfs: free-space-cache.c: remove extra semicolon.
    fat: Spelling s/obsolate/obsolete/g
    SCSI, pmcraid: Fix spelling error in a pmcraid_err() call
    tools/power turbostat: update fields in manpage
    mac80211: drop spelling fix
    types.h: fix comment spelling for 'architectures'
    typo fixes: aera -> area, exntension -> extension
    devices.txt: Fix typo of 'VMware'.
    sis900: Fix enum typo 'sis900_rx_bufer_status'
    decompress_bunzip2: remove invalid vi modeline
    treewide: Fix comment and string typo 'bufer'
    hyper-v: Update MAINTAINERS
    treewide: Fix typos in various parts of the kernel, and fix some comments.
    clockevents: drop unknown Kconfig symbol GENERIC_CLOCKEVENTS_MIGR
    gpio: Kconfig: drop unknown symbol 'CS5535_GPIO'
    leds: Kconfig: Fix typo 'D2NET_V2'
    sound: Kconfig: drop unknown symbol ARCH_CLPS7500
    ...

    Fix up trivial conflicts in arch/powerpc/platforms/40x/Kconfig (some new
    kconfig additions, close to removed commented-out old ones)

    Linus Torvalds
     

07 Jan, 2012

1 commit

  • Conflicts:
    arch/arm/mach-at91/at91cap9.c
    arch/arm/mach-at91/at91sam9260.c
    arch/arm/mach-at91/at91sam9261.c
    arch/arm/mach-at91/at91sam9263.c
    arch/arm/mach-at91/at91sam9g45.c
    arch/arm/mach-at91/at91sam9rl.c
    arch/arm/mach-exynos/cpu.c
    arch/arm/mach-shmobile/board-kota2.c

    This resolves a bunch of conflicts between the arm-soc tree
    and changes from the arm tree that have gone upstream.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

02 Jan, 2012

1 commit


24 Dec, 2011

1 commit


23 Dec, 2011

1 commit

  • …balbi/usb into usb-next

    * 'for-gadget/next' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb: (24 commits)
    usb: dwc3: gadget: add support for SG lists
    usb: dwc3: gadget: don't force 'LST' always
    usb: dwc3: gadget: don't return anything on prepare trbs
    usb: dwc3: gadget: re-factor dwc3_prepare_trbs()
    usb: gadget: introduce support for sg lists
    usb: renesas: pipe: convert a long if into a XOR operation
    usb: gadget: remove useless depends on Kconfig
    usb: gadget: s3c-hsudc: remove the_controller global
    usb: gadget: s3c-hsudc: use release_mem_region instead of release_resource
    usb: gadget: s3c-hsudc: Add regulator handling
    usb: gadget: s3c-hsudc: use udc_start and udc_stop functions
    usb: gadget: s3c-hsudc: move device registration to probe
    usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe
    usb: gadget: s3c-hsudc: add __devinit to probe function
    usb: gadget: s3c-hsudc: move platform_data struct to global header
    USB: EHCI: Add Marvell Host Controller driver
    USB: OTG: add Marvell usb OTG driver support
    usb: gadget: mv_udc: drop ARCH dependency
    usb: gadget: mv_udc: fix bug in ep_dequeue
    usb: gadget: enlarge maxburst bit width.
    ...

    Greg Kroah-Hartman
     

21 Dec, 2011

9 commits


20 Dec, 2011

2 commits


19 Dec, 2011

3 commits

  • We should not change gadget driver's descriptors just
    because we think it's right to do so.

    There are several of reasons which would support this
    statement but it suffices to say that this was probably
    never tested because it updates bmAttributes without
    asking the driver if it's ok to do so.

    This means that e.g. on UASP gadget it would enable
    stream support even for the command endpoint which must
    not have stream support enabled.

    In fact, this change is fixing the bug introduced by
    commit a59d6b9 (usb: gadget: add streams support to
    the gadget framework) which was caught when testing
    UASP gadget with dwc3 driver.

    Cc: Tatyana Brokhman
    Signed-off-by: Felipe Balbi

    Felipe Balbi
     
  • Rewrite function queue_dtd according to ChipIdea's reference manual.
    Remove all unnecessary logic, it will enhance the performance.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     
  • readl expected 'const volatile void *' as the argument.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     

16 Dec, 2011

1 commit


14 Dec, 2011

1 commit

  • …balbi/usb into usb-next

    * 'for-next/gadget' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb: (50 commits)
    usb: renesas_usbhs: show error reason on usbhsh_urb_enqueu()
    usb: renesas_usbhs: add force packet remove method
    usb: renesas_usbhs: care usb_hcd_giveback_urb() status
    usb: renesas_usbhs: add usbhsh_is_running()
    usb: renesas_usbhs: disable attch irq after device attached
    usb: renesas_usbhs: care pipe sequence
    usb: renesas_usbhs: add usbhs_pipe_attach() method
    usb: renesas_usbhs: add usbhsh_endpoint_detach_all() for error case
    usb: renesas_usbhs: modify device attach method
    usb: renesas_usbhs: pop packet when urb dequeued
    usb: renesas_usbhs: add lost error value when enqueue
    usb: gadget: mv_udc: replace some debug info
    usb: gadget: mv_udc: refine suspend/resume function
    usb: gadget: mv_udc: refine the clock relative code
    usb: gadget: mv_udc: disable ISR when stopped
    usb: gadget: mv_udc: add otg relative code
    usb: gadget: Use kcalloc instead of kzalloc to allocate array
    usb: renesas_usbhs: remove the_controller_link
    usb: renesas_usbhs: add test-mode support
    usb: renesas_usbhs: call usbhsg_queue_pop() when pipe disable.
    ...

    Greg Kroah-Hartman
     

13 Dec, 2011

1 commit

  • …lbi/usb into usb-next

    * 'for-next/dwc3' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb: (392 commits)
    usb: dwc3: ep0: fix for possible early delayed_status
    usb: dwc3: gadget: fix stream enable bit
    usb: dwc3: ep0: fix GetStatus handling (again)
    usb: dwc3: ep0: use dwc3_request for ep0 requsts instead of usb_request
    usb: dwc3: use correct hwparam register for power mgm check
    usb: dwc3: omap: move to module_platform_driver
    usb: dwc3: workaround: missing disconnect event
    usb: dwc3: workaround: missing USB3 Reset event
    usb: dwc3: workaround: U1/U2 -> U0 transiton
    usb: dwc3: gadget: return early in dwc3_cleanup_done_reqs()
    usb: dwc3: ep0: handle delayed_status again
    usb: dwc3: ep0: push ep0state into xfernotready processing
    usb: dwc3: fix sparse errors
    usb: dwc3: fix few coding style problems
    usb: dwc3: move generic dwc3 code from gadget into core
    usb: dwc3: use a helper function for operation mode setting
    usb: dwc3: ep0: don't use ep0in for transfers
    usb: dwc3: ep0: use proper endianess in SetFeature for wIndex
    usb: dwc3: core: drop DWC3_EVENT_BUFFERS_MAX
    usb: dwc3: omap: add multiple instances support to OMAP
    ...

    Greg Kroah-Hartman
     

12 Dec, 2011

13 commits

  • Release superspeed mass storage descriptors memory
    when the function is unbind.

    Signed-off-by: Yu Xu
    Acked-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Yu Xu
     
  • We can decide in runtime if that will be used
    or not.

    Signed-off-by: Felipe Balbi

    Felipe Balbi
     
  • replace some debug info, make it easy to use.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     
  • This patch impletments system suspend/resume functions for Marvell
    otg controller.
    If OTG is enabled, OTG driver will do most of the work.
    If not, we will check clock gating.
    If clock gating is enabled, the UDC will be start/stop automatically.
    If not, UDC will be start/stop in suspend/resume functions.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     
  • Split the clock relative code from clock gating solution.
    Then we can remove some duplicate code, make the code more clean.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     
  • When device is stopped, there is no need to handle ISR.
    Especially when otg switch to HOST mode.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     
  • Add otg relative code, make it possible to switch between host and
    device.

    Signed-off-by: Neil Zhang
    Signed-off-by: Felipe Balbi

    Neil Zhang
     
  • The advantage of kcalloc is, that will prevent integer overflows which could
    result from the multiplication of number of elements and size and it is also
    a bit nicer to read.

    The semantic patch that makes this change is available
    in https://lkml.org/lkml/2011/11/25/107

    Signed-off-by: Thomas Meyer
    Acked-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Thomas Meyer
     
  • This commit renames the “speed” field of the usb_gadget_driver
    structure to “max_speed”. This is so that to make it more
    apparent that the field represents the maximum speed gadget
    driver can support.

    This also make the field look more like fields with the same
    name in usb_gadget and usb_composite_driver structures. All
    of those represent the *maximal* speed given entity supports.

    After this commit, there are the following fields in various
    structures:
    * usb_gadget::speed - the current connection speed,
    * usb_gadget::max_speed - maximal speed UDC supports,
    * usb_gadget_driver::max_speed - maximal speed gadget driver
    supports, and
    * usb_composite_driver::max_speed - maximal speed composite
    gadget supports.

    Signed-off-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Michal Nazarewicz
     
  • This commit replaces usb_gadget's is_dualspeed field with
    a max_speed field.

    [ balbi@ti.com : Fixed DWC3 driver ]

    Signed-off-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Michal Nazarewicz
     
  • Signed-off-by: Kuninori Morimoto
    Signed-off-by: Felipe Balbi

    Kuninori Morimoto
     
  • With Peiyu's patch "gadget: mass_storage: adapt logic block size to bound block
    devices" (http://www.spinics.net/lists/linux-usb/msg50791.html), now mass storage
    can adjust logic block size dynamically based on real devices.
    Then there is one issue caused by it, if two luns have different logic block size,
    mass storage can't work.
    Let's check the current software flow:
    1. get_next_command(): call received_cbw();
    2. received_cbw(): update common->lun = cbw->Lun, but common->curlen is not updated;
    3. do_scsi_command(): in READ_X and WRITE_X commands, common->data_size_from_cmnd is
    updated by common->curlun->blkbits;
    4. check_command(): update common->curlun according to common->lun
    As you can see, the step 3 uses wrong common->curlun, then wrong common->curlun->blkbits.
    If the two luns have same blkbits, there isn't issue. Otherwise, both will fail.
    This patch moves the common->curlun update to step 1, then make sure step 3 gets right
    blkbits and data_size_from_cmnd.

    Cc: Peiyu Li
    Signed-off-by: YuPing Luo
    Signed-off-by: Barry Song
    Acked-by: Alan Stern
    Acked-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Yuping Luo
     
  • The ci13xxx_udc driver checks the number of endpoints in the udc
    controller, however some routines expect that the hardware has 16
    bidirectional endpoints.

    This patch improves the driver to work on controllers with less than
    16 endpoints like the udc controller found on freescale's
    mx23 and mx28.

    Tested-by: Pavankumar Kondeti
    Signed-off-by: Marc Kleine-Budde
    Signed-off-by: Felipe Balbi

    Marc Kleine-Budde