Skip to content
Snippets Groups Projects
  1. Aug 08, 2018
    • Alberto Panizzo's avatar
      usb: rockchip: fix command failed on host side due to missing data · cad66e32
      Alberto Panizzo authored
      
      Two consecutive rockusb_tx_write without waiting for request complete
      do results in transfer reset of first request and thus no or incomplete
      data transfer. This because rockusb_tx_write do use just one USB request
      to keep serialization.
      
      So calls like:
      rockusb_tx_write_str(emmc_id);
      rockusb_tx_write_csw(cbw->tag, cbw->data_transfer_length, CSW_GOOD);
      
      was succeeding only when DEBUG was defined because the time spent
      printing debug info was enough for transfer to complete.
      
      This patch fixes the issue adding a simple request complete handler
      called rockusb_tx_write_csw to be set as complete handler of in_req
      when sending back simple payload + CSW replies to commands.
      
      This new handler will always send CSW_GOOD replies because in case
      of error the command callback itself must send back an error CSW as
      unique reply to command.
      
      This patch fixes execution of:
      $ rkdeveloptool rfi
      when DEBUG is not defined.
      
      Signed-off-by: default avatarAlberto Panizzo <alberto@amarulasolutions.com>
      cad66e32
    • Seung-Woo Kim's avatar
      gadget: f_thor: fix hang-up with ctrl-c · c194bdf2
      Seung-Woo Kim authored
      
      After the commit 6aae8476 ("gadget: f_thor: Fix memory leaks of
      usb request and its buffer"), there is hang-up with ctrl-c in some
      udc. It is because req of out_ep is freed before out_ep is disabled.
      Fix hang-up with ctrl-c by disabling ep before free req of the ep.
      
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      c194bdf2
  2. Aug 07, 2018
  3. Aug 06, 2018
Loading