)]}'
{
  "commit": "2d1c93f4842ae7146169f1e75439ba9735aa6445",
  "tree": "82553bc0a0993626bbe2530c3607fb9d0bc20827",
  "parents": [
    "b3af0aa42862f767534938890c692075dbe909cf"
  ],
  "author": {
    "name": "Dov Shlachter",
    "email": "dovs@google.com",
    "time": "Thu Nov 19 15:35:42 2026 -0800"
  },
  "committer": {
    "name": "vim3-u-boot-prod-builder",
    "email": "vim3-u-boot-prod-builder@fuchsia-internal-service-accts.iam.gserviceaccount.com",
    "time": "Thu Nov 19 23:38:20 2026 +0000"
  },
  "message": "[efi] Disconnect USB gadget on fastboot stop\n\ngbl_efi_fastboot_transport.c:stop() previously ran `usb reset` after\ng_dnl_unregister(), resetting and scanning XHCI host ports (~3.2 s) on\nevery exit from GBL fastboot because dwc_pcd_ops omitted .pullup and\nusb_gadget_unregister_driver() skipped driver-\u003edisconnect(). In\naddition, start() overwrote out_req-\u003ebuf with rx_buffer_a without\nrestoring the original buffer before unbind, which would free\nrx_buffer_a inside fastboot_disable() once disconnect() runs.\n\nWire f_dwc_otg_pullup() into dwc_pcd_ops.pullup, keep DCTL.sftdiscon\nasserted during f_dwc_core_init(), and initialize the PCD before\ndriver-\u003ebind() so usb_gadget_connect() enables pull-up only after the\nPHY and DWC2 core are ready. In usb_gadget_unregister_driver(), call\nusb_gadget_disconnect() and driver-\u003edisconnect() before unbind(). In\nstop(), dequeue and restore out_req-\u003ebuf before g_dnl_unregister() and\ndrop `usb reset`.\n\nTest: Built kvim3_zircon, flashed VIM3, and verified fastboot continue\n      and fastboot boot trigger immediate host USB disconnect (~1 ms),\n      cut stop() from 3.18 s to 8 ms, and boot Fuchsia cleanly.\nChange-Id: I979c1dbb8fbe619429bf208c1ded7e0847f1f1a9\nReviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/1855781\nLint: android-build-ayeaye@system.gserviceaccount.com \u003candroid-build-ayeaye@system.gserviceaccount.com\u003e\nCommit-Queue: Dov Shlachter \u003cdovs@google.com\u003e\nReviewed-by: David Pursell \u003cdpursell@google.com\u003e\nGitOrigin-RevId: b960472dbe7246c34bf0e6734b2436162912068c\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "15530078a564837c1b5b99a2f0a086dc366e3063",
      "old_mode": 33188,
      "old_path": "drivers/usb/gadget/fastboot/dwc_pcd.c",
      "new_id": "5b87ba88114f61e0ccd6dfaf71dd0755feb64210",
      "new_mode": 33188,
      "new_path": "drivers/usb/gadget/fastboot/dwc_pcd.c"
    },
    {
      "type": "modify",
      "old_id": "81016cbbad01e93ed23a14c2f42317a492438de2",
      "old_mode": 33188,
      "old_path": "lib/efi_loader/gbl_efi_fastboot_transport.c",
      "new_id": "ab4b54cc241bc802b35625b5d9296474c9c633ad",
      "new_mode": 33188,
      "new_path": "lib/efi_loader/gbl_efi_fastboot_transport.c"
    }
  ]
}
