1. 21 1月, 2013 2 次提交
    • L
      usb: Add "portX/connect_type" attribute to expose usb port's connect type · cef7468c
      Lan Tianyu 提交于
      Some platforms provide usb port connect types through ACPI. This
      patch is to add this new attribute to expose these information
      to user space.
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NLan Tianyu <tianyu.lan@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cef7468c
    • L
      usb: fix compilation error and warning of driver/usb/core/port.c on arm and blackfin · 9f7344fb
      Lan Tianyu 提交于
      This patch is to fix compilation error and warning on the arm and blackfin.
      Add linux/slab.h head file to driver/usb/core/port.c. These are reported
      from 0-DAY kernel build testing backend.
      
      head:   6e30d7cb
      commit: 6e30d7cb [26/26] usb: Add driver/usb/core/(port.c,hub.h) files
      config: make ARCH=arm at91_dt_defconfig
      
      All error/warnings:
      
         drivers/usb/core/port.c: In function 'usb_port_device_release':
      >> drivers/usb/core/port.c:25:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
         drivers/usb/core/port.c: In function 'usb_hub_create_port_device':
      >> drivers/usb/core/port.c:38:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
      >> drivers/usb/core/port.c:38:40: error: 'GFP_KERNEL' undeclared (first use in this function)
         drivers/usb/core/port.c:38:40: note: each undeclared identifier is reported only once for each function it appears in
         cc1: some warnings being treated as errors
      
      head:   6e30d7cb
      commit: 6e30d7cb [26/26] usb: Add driver/usb/core/(port.c,hub.h) files
      config: make ARCH=blackfin BF526-EZBRD_defconfig
      
      All warnings:
      
         drivers/usb/core/port.c: In function 'usb_port_device_release':
         drivers/usb/core/port.c:25:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
         drivers/usb/core/port.c: In function 'usb_hub_create_port_device':
         drivers/usb/core/port.c:38:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
      >> drivers/usb/core/port.c:38:11: warning: assignment makes pointer from integer without a cast [enabled by default]
         cc1: some warnings being treated as errors
      Reported-by: NFengguang Wu <wfg@linux.intel.com>
      Signed-off-by: NLan Tianyu <tianyu.lan@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9f7344fb
  2. 19 1月, 2013 8 次提交
  3. 18 1月, 2013 4 次提交
  4. 17 1月, 2013 22 次提交
  5. 16 1月, 2013 4 次提交