1. 05 2月, 2011 4 次提交
    • A
      USB host: Move AMD PLL quirk to pci-quirks.c · b7d5b439
      Andiry Xu 提交于
      This patch moves the AMD PLL quirk code in OHCI/EHCI driver to pci-quirks.c,
      and exports the functions to be used by xHCI driver later.
      
      AMD PLL quirk disable the optional PM feature inside specific
      SB700/SB800/Hudson-2/3 platforms under the following conditions:
      
      1. If an isochronous device is connected to OHCI/EHCI/xHCI port and is active;
      2. Optional PM feature that powers down the internal Bus PLL when the link is
         in low power state is enabled.
      
      Without AMD PLL quirk, USB isochronous stream may stutter or have breaks
      occasionally, which greatly impair the performance of audio/video streams.
      
      Currently AMD PLL quirk is implemented in OHCI and EHCI driver, and will be
      added to xHCI driver too. They are doing similar things actually, so move
      the quirk code to pci-quirks.c, which has several advantages:
      
      1. Remove duplicate defines and functions in OHCI/EHCI (and xHCI) driver and
         make them cleaner;
      2. AMD chipset information will be probed only once and then stored.
         Currently they're probed during every OHCI/EHCI initialization, move
         the detect code to pci-quirks.c saves the repeat detect cost;
      3. Build up synchronization among OHCI/EHCI/xHCI driver. In current
         code, every host controller enable/disable PLL only according to
         its own status, and may enable PLL while there is still isoc transfer on
         other HCs. Move the quirk to pci-quirks.c prevents this issue.
      Signed-off-by: NAndiry Xu <andiry.xu@amd.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Alex He <alex.he@amd.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b7d5b439
    • F
      usb: gadget/fsl_mxc_udc: Detect the CPU type in run-time · a51ea8cc
      Fabio Estevam 提交于
      Make sure we are running on a MX35 processor.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a51ea8cc
    • J
      USB: Gadget: Initialize wMaxPacketSize if not already set · 553fbcde
      Jassi Brar 提交于
      Currently, for ISO and INT, a protocol driver must chose the value for
      wMaxPacketSize arbitrarily. The value may be too low, resulting in lesser
      than efficient operation or high enough to not work with all UDC drivers.
      
      Take un-initialized wMaxPacketSize as a hint to provide maximum
      possible packetsize for the selected endpoint. The protocol may
      then choose a value not bigger than that.
      Signed-off-by: NJassi Brar <jassi.brar@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      553fbcde
    • V
      USB: serial: mct_u232: added _ioctl, _msr_to_icount and _get_icount functions · 7af75af2
      Vadim Tsozik 提交于
      Added mct_u232_ioctl (implements TIOCMIWAIT command),
      mct_u232_get_icount (implements TIOCGICOUNT command) and
      mct_u232_msr_to_icount functions. MCT U232 P9 is one of a few usb to
      serail adapters which converts USB +/-5v voltage levels to COM +/-15
      voltages. So it can also power COM interfaced devices. This makes it
      very usable for legacy COM interfaced data-acquisition hardware. I
      tested new implementation with AWARE Electronics RM-60 radiation meter,
      which sends pulse via RNG COM line whenever new particle is registered.
      Signed-off-by: NVadim Tsozik <tsozik@yahoo.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7af75af2
  2. 23 1月, 2011 9 次提交
  3. 21 1月, 2011 1 次提交
    • D
      kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT · 6a108a14
      David Rientjes 提交于
      The meaning of CONFIG_EMBEDDED has long since been obsoleted; the option
      is used to configure any non-standard kernel with a much larger scope than
      only small devices.
      
      This patch renames the option to CONFIG_EXPERT in init/Kconfig and fixes
      references to the option throughout the kernel.  A new CONFIG_EMBEDDED
      option is added that automatically selects CONFIG_EXPERT when enabled and
      can be used in the future to isolate options that should only be
      considered for embedded systems (RISC architectures, SLOB, etc).
      
      Calling the option "EXPERT" more accurately represents its intention: only
      expert users who understand the impact of the configuration changes they
      are making should enable it.
      Reviewed-by: NIngo Molnar <mingo@elte.hu>
      Acked-by: NDavid Woodhouse <david.woodhouse@intel.com>
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Cc: Greg KH <gregkh@suse.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Robin Holt <holt@sgi.com>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6a108a14
  4. 11 1月, 2011 1 次提交
  5. 07 1月, 2011 3 次提交
    • N
      fs: dcache remove dcache_lock · b5c84bf6
      Nick Piggin 提交于
      dcache_lock no longer protects anything. remove it.
      Signed-off-by: NNick Piggin <npiggin@kernel.dk>
      b5c84bf6
    • N
      fs: dcache scale subdirs · 2fd6b7f5
      Nick Piggin 提交于
      Protect d_subdirs and d_child with d_lock, except in filesystems that aren't
      using dcache_lock for these anyway (eg. using i_mutex).
      
      Note: if we change the locking rule in future so that ->d_child protection is
      provided only with ->d_parent->d_lock, it may allow us to reduce some locking.
      But it would be an exception to an otherwise regular locking scheme, so we'd
      have to see some good results. Probably not worthwhile.
      Signed-off-by: NNick Piggin <npiggin@kernel.dk>
      2fd6b7f5
    • N
      fs: dcache scale d_unhashed · da502956
      Nick Piggin 提交于
      Protect d_unhashed(dentry) condition with d_lock. This means keeping
      DCACHE_UNHASHED bit in synch with hash manipulations.
      Signed-off-by: NNick Piggin <npiggin@kernel.dk>
      da502956
  6. 03 1月, 2011 2 次提交
  7. 29 12月, 2010 1 次提交
    • D
      ueagle-atm: fix PHY signal initialization race · 12f188f2
      Dan Williams 提交于
      A race exists when initializing ueagle-atm devices where the generic atm
      device may not yet be created before the driver attempts to initialize
      it's PHY signal state, which checks whether the atm device has been
      created or not.  This often causes the sysfs 'carrier' attribute to be
      '1' even though no signal has actually been found.
      
      uea_probe
         usbatm_usb_probe
            driver->bind (uea_bind)
               uea_boot
                  kthread_run(uea_kthread)     uea_kthread
            usbatm_atm_init                       uea_start_reset
               atm_dev_register                      UPDATE_ATM_SIGNAL
      
      UPDATE_ATM_SIGNAL checks whether the ATM device has been created and if
      not, will not update the PHY signal state.  Because of the race that
      does not always happen in time, and the PHY signal state remains
      ATM_PHY_SIG_FOUND even though no signal exists.
      
      To fix the race, just create the kthread during initialization, and only
      after initialization is complete, start the thread that reboots the
      device and initializes PHY state.
      
      [ 3030.490931] uea_probe: calling usbatm_usb_probe
      [ 3030.490946] ueagle-atm 8-2:1.0: usbatm_usb_probe: trying driver ueagle-atm with vendor=1110, product=9031, ifnum  0
      [ 3030.493691] uea_bind: setting usbatm
      [ 3030.496932] usb 8-2: [ueagle-atm] using iso mode
      [ 3030.497283] ueagle-atm 8-2:1.0: usbatm_usb_probe: using 3021 byte buffer for rx channel 0xffff880125953508
         <kthread already started before usbatm_usb_probe() has returned>
      [ 3030.497292] usb 8-2: [ueagle-atm] (re)booting started
         <UPDATE_ATM_SIGNAL checks whether ATM device has been created yet before setting PHY state>
      [ 3030.497298] uea_start_reset: atm dev (null)
         <and since it hasn't been created yet PHY state is not set>
      [ 3030.497306] ueagle-atm 8-2:1.0: usbatm_usb_probe: using 3392 byte buffer for tx channel 0xffff8801259535b8
      [ 3030.497374] usbatm_usb_probe: about to init
      [ 3030.497379] usbatm_usb_probe: calling usbatm_atm_init
         <atm device finally gets created>
      [ 3030.497384] usbatm_atm_init: creating atm device!
      Signed-off-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      12f188f2
  8. 24 12月, 2010 3 次提交
  9. 22 12月, 2010 1 次提交
    • M
      USB: add support for Dream Cheeky DL100B Webmail Notifier (1d34:0004) · 73bc7d31
      Melchior FRANZ 提交于
      So far the USBLED driver only supports Delcom's "USB Visual Signal
      Indicator" (http://www.delcomproducts.com/products_USBLMP.asp). The
      driver generates virtual files "red", "green", and "blue" under the
      device's /sys/ directory, where color values can be read from and
      written to.
      
      This patch adds support for Dream Cheeky's "DL100B Webmail Notifier"
      (http://www.dreamcheeky.com/webmail-notifier -- available from several
      shops, such as http://www.conrad.at/ce/de/product/777048/USB-WEBMAIL).
      This device isn't as pretty as Delcom's, but it's *far* cheaper, and
      its 3 LEDs can be set in 32 brightness steps each. The grey envelope
      contour can easily be removed, leaving a rather neutral white box (with
      a few small holes), which is useful for generic signalling purposes.
      Of course, the small circuit board can easily be put into a prettier
      case.
      
      The DL100B device pretends to be a HID, but the HID descriptor shows
      that it's not overly useful as such (see below). The patch therefore
      removes the "HID-ness" (hid-core.c, hid-ids.h), and adds the necessary
      commands to usbled.c. The protocol info comes from the developer's
      manual that Dream Cheeky kindly provided (815DeveloperManual.pdf).
      
      HID descriptor:
      
        0: 05 01   Usage Page 'Generic Desktop Controls'
        2: 09 10   Usage 'Reserved'
        4: a1 01   Collection 'Application (mouse, keyboard)'
        6: 05 00           Usage Page 'Undefined'
        8: 19 10           Usage Minimum = 16
       10: 29 11           Usage Maximum = 17
       12: 15 00           Logical Minimum = 0
       14: 25 0f           Logical Maximum = 15
       16: 75 08           Report Size = 8
       18: 95 08           Report Count = 8
       20: 91 02           Output data *var abs lin pref-state null-pos non-vol bit-field
       22: 19 10           Usage Minimum = 16
       24: 29 11           Usage Maximum = 17
       26: 15 00           Logical Minimum = 0
       28: 25 0f           Logical Maximum = 15
       30: 75 08           Report Size = 8
       32: 95 08           Report Count = 8
       34: 81 00           Input data array abs lin pref-state null-pos non-vol bit-field
       36: c0      End Collection
      Signed-off-by: NMelchior FRANZ <mfranz@aon.at>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      73bc7d31
  10. 17 12月, 2010 15 次提交