1. 02 Sep, 2014 14 commits
  2. 29 Aug, 2014 3 commits
    • Yegor Yefremov's avatar
      usb: gadget: use $(srctree) instead of $(PWD) for includes · fa31409a
      Yegor Yefremov authored
      Using $(PWD) breaks builds when make was invoked from outside
      of the kernel tree.
      Signed-off-by: default avatarYegor Yefremov <yegorslists@googlemail.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      fa31409a
    • Himangi Saraogi's avatar
      usb: gadget: udc: use USB API functions rather than constants · b8adc3d1
      Himangi Saraogi authored
      This patch introduces the use of the functions usb_endpoint_type and
      usb_endpoint_num.
      
      The Coccinelle semantic patch that makes these changes is as follows:
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (epd->bEndpointAddress & \(USB_ENDPOINT_NUMBER_MASK\|0x0f\))
      + usb_endpoint_num(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\))
      + usb_endpoint_type(epd)
      Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
      Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      b8adc3d1
    • Amit Virdi's avatar
      usbtest: Add interrupt EP testcases · 457a0955
      Amit Virdi authored
      Two simple test cases for interrupt endpoints are added to the usbtest.c file.
      These are simple non-queued interrupt IN and interrupt OUT transfers. Currently,
      only gadget zero is capable of executing the interrupt EP test cases. However,
      extending the same to other gadgets is extremely simple and can be done
      on-demand.
      
      The two new tests added are
        - Test 25: To verify Interrupt OUT transfer
        - Test 26: To verify Interrupt IN transfer
      
      Since the default value of wMaxPacketSize is set as 1024, so interrupt
      IN transfers must be specified with the size parameter = multiple of
      1024. Otherwise the default value (512) in the usbtest application fails
      the transfer. See [RUN 4] for sample logs
      
      The application logs (usbtest) and corresponding kernel logs are as
      following:
      
      [Run 1]
      ./testusb -a -c 10 -s 2048 -t 26 -v 511
      usbtest 7-1:3.0: TEST 26: read 2048 bytes 10 times
      
      [Run 2]
      ./testusb -a -c 10 -s 1024 -t 25 -v 511
      usbtest 7-1:3.0: TEST 25: write 1024 bytes 10 times
      
      [Run 3]
      ./testusb -a -c 10 -s 1098 -t 25 -v 511
      usbtest 7-1:3.0: TEST 25: write 1098 bytes 10 times
      
      [Run 4 - Failure case scenario]
      ./testusb -a  -t 26
      unknown speed   /dev/bus/usb/007/004    0
      /dev/bus/usb/007/004 test 26 --> 75 (Value too large for defined data type)
      
      usbtest 7-1:3.0: TEST 26: read 512 bytes 1000 times
      usb 7-1: test26 failed, iterations left 999, status -75 (not 0)
      Signed-off-by: default avatarAmit Virdi <amit.virdi@st.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      457a0955
  3. 27 Aug, 2014 5 commits
    • Amit Virdi's avatar
      usb: gadget: zero: Add support for interrupt EP · ef11982d
      Amit Virdi authored
      Interrupt endpoints behave quite similar to the bulk endpoints with the
      difference that the endpoints expect data sending/reception request at
      particular intervals till the whole data has not been transmitted.
      
      The interrupt EP support is added to gadget zero. A new alternate setting (=2)
      has been added. It has 2 interrupt endpoints. The default parameters are set as:
      	bInterval: 1 ms for FS and 8 uFrames (implying 1 ms) for HS/SS
      	wMaxPacketSize: 64 bytes for FS and 1024 bytes for HS/SS
      However, the same can be overridden through the module parameter interface.
      
      The code is tested for HS and SS on a platform having DWC3 controller.
      Signed-off-by: default avatarAmit Virdi <amit.virdi@st.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      ef11982d
    • Richard Leitner's avatar
      usb: gadget: serial: remove PREFIX macro · c572a217
      Richard Leitner authored
      Remove the ttyGS PREFIX macro from u_serial.c and replace all occurences with
      the hardcoded ttyGS string.
      
      This macro was mostly used in a few debug/warning messages and a lot of
      hardcoded ttyGS existed beneath. It may have been used for renaming the
      tty, but if done so most debug messages would have ignored this.
      
      Due to the fact the usage of this PREFIX in all debug calls would have
      resulted in a hard to read/grep code it is removed completely.
      Signed-off-by: default avatarRichard Leitner <richard.leitner@skidata.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      c572a217
    • Richard Leitner's avatar
      usb: gadget: serial: replace {V,}DBG macro with dev_{v,}dbg · b8b0ea51
      Richard Leitner authored
      Replace the VDBG and DBG macro with the kernels "proper" debug macros
      (dev_vdbg and dev_dbg) in f_acm.c, f_obex.c & f_serial.c
      Signed-off-by: default avatarRichard Leitner <richard.leitner@skidata.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      b8b0ea51
    • Srinivas Kandagatla's avatar
      usb: phy: msm: Make phy_reset clk and reset line optional. · a1a4caf4
      Srinivas Kandagatla authored
      This patch makes the phy reset clk and reset line optional as this clk
      is not available on boards like IFC6410 with APQ8064.
      
      phy-reset clk is only used as argument to the mach level callbacks, so
      this patch adds condition before clk_get calls so that the driver
      wouldn't fail on SOCs which do not have this support.
      Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      a1a4caf4
    • Stefan Agner's avatar
      usb: phy: mxs: Add VF610 USB PHY support · d0ee68b5
      Stefan Agner authored
      This adds support for the USB PHY in Vybrid VF610. We assume that
      the disconnection without VBUS is also needed for Vybrid.
      
      Tests showed, without MXS_PHY_NEED_IP_FIX, enumeration of devices
      behind a USB Hub fails with errors:
      
      [  215.163507] usb usb1-port1: cannot reset (err = -32)
      [  215.170498] usb usb1-port1: cannot reset (err = -32)
      [  215.185120] usb usb1-port1: cannot reset (err = -32)
      [  215.191345] usb usb1-port1: cannot reset (err = -32)
      [  215.202487] usb usb1-port1: cannot reset (err = -32)
      [  215.207718] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
      [  215.219317] usb usb1-port1: unable to enumerate USB device
      
      Hence we also enable the MXS_PHY_NEED_IP_FIX flag.
      Acked-by: default avatarPeter Chen <peter.chen@freescale.com>
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      d0ee68b5
  4. 21 Aug, 2014 5 commits
  5. 20 Aug, 2014 13 commits