Skip to content
Snippets Groups Projects
  1. Apr 16, 2020
  2. Apr 15, 2020
  3. Apr 14, 2020
  4. Apr 13, 2020
  5. Apr 10, 2020
  6. Apr 09, 2020
    • Ovidiu Panait's avatar
      dm: dump.c: Refactor dm_dump_drivers prints · 28888ca3
      Ovidiu Panait authored and Simon Glass's avatar Simon Glass committed
      
      Refactor the printing sequence in dm_dump_drivers to make it more clear.
      
      Signed-off-by: default avatarOvidiu Panait <ovpanait@gmail.com>
      Cc: Sean Anderson <seanga2@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      28888ca3
    • Ovidiu Panait's avatar
      dm: dump.c: Fix segfault when entry->of_match is NULL · 02197fa7
      Ovidiu Panait authored and Simon Glass's avatar Simon Glass committed
      
      Currently, dm drivers command produces a segfault:
      => dm drivers
      Driver                Compatible
      --------------------------------
      Segmentation fault (core dumped)
      
      This is caused by a NULL pointer dereference of entry->of_match.
      Add a check to prevent this.
      
      Signed-off-by: default avatarOvidiu Panait <ovpanait@gmail.com>
      Cc: Sean Anderson <seanga2@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      02197fa7
    • Marek Vasut's avatar
      usb: Keep async schedule running only across mass storage xfers · 31232de0
      Marek Vasut authored and Tom Rini's avatar Tom Rini committed
      
      Rather than keeping the asynchronous schedule running always, keep it
      running only across USB mass storage transfers for now, as it seems
      that keeping it running all the time interferes with certain control
      transfers during device enumeration.
      
      Note that running the async schedule all the time should not be an
      issue, especially on EHCI HCD, as that one implements most of the
      transfers using async schedule.
      
      Note that we have usb_disable_asynch(), which however is utterly broken.
      The usb_disable_asynch() blocks the USB core from doing async transfers
      by setting a global flag. The async schedule should however be disabled
      per USB controller. Moreover, setting a global flag does not prevent the
      controller from using the async schedule, which e.g. the EHCI HCD does.
      
      This patch implements additional callback to the controller, which
      permits it to lock the async schedule and keep it running across
      multiple transfers. Once the schedule is unlocked, it must also be
      disabled. This thus prevents the async schedule from running outside
      of the USB mass storage transfers.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Lukasz Majewski <lukma@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      Tested-by: Tom Rini <trini@konsulko.com> [omap3_beagle, previously failing]
      31232de0
    • Sean Anderson's avatar
      cmd: Add test and fix bugs for dm drivers · 97c7ac21
      Sean Anderson authored and Tom Rini's avatar Tom Rini committed
      
      Add a test for the dm drivers command. Also fix a null pointer dereference
      revealed by said test.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Reviewed-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      Tested-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      97c7ac21
  7. Apr 06, 2020
Loading