)]}'
{
  "commit": "1ded7ea47b8829a06068c3bb5e3ebe471076617a",
  "tree": "113e3daefadaec5e25c7b4b8a7ce3cff23ba0327",
  "parents": [
    "a227fd7db74fa05d866790a4b29ba049bb5035cc"
  ],
  "author": {
    "name": "Ming Lei",
    "email": "tom.leiming@gmail.com",
    "time": "Fri Feb 20 21:23:09 2009 +0800"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@suse.de",
    "time": "Tue Mar 24 16:20:36 2009 -0700"
  },
  "message": "USB: ch341 serial: fix port number changed after resume\n\nThis patch fixes the following bug:\n\t.plug ch341 usb serial port into a hub port;\n\t.ch341 driver bound to the device and /dev/ttyUSB0 comes\n\t.open /dev/ttyUSB0 by minicom and we can use the serial successfully\n\t.suspend the ch341 usb serial device(such as: echo suspend \u003e power/level)\n\t.resume the ch341 usb serial device (such as: echo on \u003e power/level)\n\t.new port /dev/ttyUSB1 comes ,and the original /dev/ttyUSB0 still exists,\nbut is no longer usable by minicom\n\nThe patch adds suspend and resume callback to ch341 usb driver to prevent it\nfrom unbinding during suspend. The /dev/ttyUSB0 is not released until being\nclosed, so /dev/ttyUSB1 comes after resume, and the original /dev/ttyUSB0 is\nno longer usable by minicom. It is really a mess for a minicom user.\n\nThis patch also adds the reset_resume callback to make it usable after resuming\nfrom STR or hibernation, for generally STR or hibernation will make the vbus\nof root-hub lost.\n\nFinally enable the driver\u0027s supports_autosuspend, for the device is in working\norder with it.\n\nSigned-off-by: Ming Lei \u003ctom.leiming@gmail.com\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\n\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d5ea679e169811fb1f85229e3bbaf16319763f77",
      "old_mode": 33188,
      "old_path": "drivers/usb/serial/ch341.c",
      "new_id": "ab4cc277aa659be685a154c6a5024cf02f14eba9",
      "new_mode": 33188,
      "new_path": "drivers/usb/serial/ch341.c"
    }
  ]
}
