1. 22 Mar, 2013 7 commits
    • Felipe Balbi's avatar
      usb: gadget: mv_u3d: fix sparse warnings · e6667ef7
      Felipe Balbi authored
      Fix the following sparse warnings:
      
      drivers/usb/gadget/mv_u3d_core.c: In function ‘mv_u3d_ep_queue’:
      drivers/usb/gadget/mv_u3d_core.c:812:2: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c:822:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c:823:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c:823:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c: In function ‘mv_u3d_ep_dequeue’:
      drivers/usb/gadget/mv_u3d_core.c:905:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c: In function ‘mv_u3d_probe’:
      drivers/usb/gadget/mv_u3d_core.c:1840:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c:1855:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c:1855:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      drivers/usb/gadget/mv_u3d_core.c:1858:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/usb/gadget/mv_u3d_core.c:1858:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      drivers/usb/gadget/mv_u3d_core.c: In function ‘mv_u3d_irq_process_tr_complete’:
      drivers/usb/gadget/mv_u3d_core.c:163:21: warning: ‘remaining_length’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/usb/gadget/mv_u3d_core.c:125:28: note: ‘remaining_length’ was declared here
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      e6667ef7
    • Felipe Balbi's avatar
      usb: gadget: mv_u3d: remove outdated selects · af593da4
      Felipe Balbi authored
      USB_GADGET_{DUAL,SUPER}SPEED symbols have
      been removed by commit 85b8614d (usb: gadget:
      get rid of USB_GADGET_{DUAL,SUPER}SPEED), for
      some reason mv_u3d_core was lost.
      
      Remove those selects now.
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      af593da4
    • Felipe Balbi's avatar
      usb: gadget: mv_u3d: remove unused headers · a10713a5
      Felipe Balbi authored
      none of those headers are used by the driver,
      removing them still compiles fine.
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      a10713a5
    • Jingoo Han's avatar
      usb: gadget: mv_u3d: make mv_u3d_pm_ops static · 4895a2ee
      Jingoo Han authored
      Make mv_u3d_pm_ops static because mv_u3d_pm_ops is not exported.
      Also, CONFIG_PM_SLEEP is used to remove unnecessary ifdefs.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      4895a2ee
    • Grazvydas Ignotas's avatar
      usb: musb: core: log VBUS error · 54485116
      Grazvydas Ignotas authored
      VBUS_ERROR is a serious error that the driver often doesn't recover from
      in my tests, so we should at least inform the user about it.
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      54485116
    • Grazvydas Ignotas's avatar
      usb: musb: gadget: clear gadget_driver when gadget is stopped · e21de10c
      Grazvydas Ignotas authored
      Some musb glue drivers use gadget_driver pointer to know if any gadget
      drivers are loaded at some moment and base further decisions on it,
      like to do runtime suspend/resume or not. Right now the pointer is
      left alone on stop and OMAP musb glue later does wrong runtime_pm
      decisions because of it.
      
      Clear the gadget_driver pointer on remove, it's invalid after stop
      anyway.
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      e21de10c
    • Grazvydas Ignotas's avatar
      usb: musb: core: honour initial transceiver state · e5615112
      Grazvydas Ignotas authored
      As the usb transceiver driver usually starts first, it should already
      have default_a variable set according to ID pin state, so don't
      override it. In case default_a was not changed by trasceiver, it will
      default to 0 and this code will work as before.
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      e5615112
  2. 21 Mar, 2013 5 commits
  3. 20 Mar, 2013 2 commits
  4. 19 Mar, 2013 1 commit
    • Felipe Balbi's avatar
      usb: phy: samsung: fix sparse warning · b64a1593
      Felipe Balbi authored
      Fix the following sparse warning:
      
      drivers/usb/phy/phy-samsung-usb2.c:50:26: sparse: incorrect type in argument 1 (different address spaces)
      drivers/usb/phy/phy-samsung-usb2.c:50:26:    expected void const volatile [noderef] <asn:2>*addr
      drivers/usb/phy/phy-samsung-usb2.c:50:26:    got void *
      
      Cc: Vivek Gautam <gautam.vivek@samsung.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      b64a1593
  5. 18 Mar, 2013 25 commits