)]}'
{
  "commit": "4c2357f57dd5a3ecb4ce09f6a6cb394a1a8873b2",
  "tree": "e49c6dce1687512566137ec62d394e358aee2a77",
  "parents": [
    "0363b12d3311eaf1355d4b9272a51dd852ea2fc1"
  ],
  "author": {
    "name": "Douglas Anderson",
    "email": "dianders@chromium.org",
    "time": "Thu Oct 12 13:11:15 2017 -0700"
  },
  "committer": {
    "name": "Ulf Hansson",
    "email": "ulf.hansson@linaro.org",
    "time": "Mon Oct 30 12:14:52 2017 +0100"
  },
  "message": "mmc: dw_mmc: Fix the CTO timeout calculation\n\nIn the commit 03de19212ea3 (\"mmc: dw_mmc: introduce timer for broken\ncommand transfer over scheme\") we tried to calculate the expected\nhardware command timeout value.  Unfortunately that calculation isn\u0027t\nquite correct in all cases.  It used \"bus_hz\" but, as far as I can\ntell, it\u0027s supposed to use the card clock.  Let\u0027s account for the div\nvalue, which is documented as 2x the value stored in the register, or\n1 if the register is 0.\n\nNOTE: It\u0027s not expected that this will actually fix anything important\nsince the 10 ms margin added by the function will pretty much dwarf\nany calculations.  The card clock should be 100 kHz at minimum and:\n  1000 ms/s * (255 * 2) / 100000 Hz.\nGives us 5.1 ms.\n\n...so really the point of this patch is just to make the code more\n\"correct\" in case anyone ever tries to remove the 10 ms buffer.\n\nFixes: 03de19212ea3 (\"mmc: dw_mmc: introduce timer for broken command transfer over scheme\")\nTested-by: Emil Renner Berthing \u003ckernel@esmil.dk\u003e\nReviewed-by: Shawn Lin \u003cshawn.lin@rock-chips.com\u003e\nSigned-off-by: Douglas Anderson \u003cdianders@chromium.org\u003e\nSigned-off-by: Ulf Hansson \u003culf.hansson@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f5b2bb4b4d981ae16e25eda780c6c366f6a81163",
      "old_mode": 33188,
      "old_path": "drivers/mmc/host/dw_mmc.c",
      "new_id": "16516c528a884c3618f8b6c9953815d8f5bc5932",
      "new_mode": 33188,
      "new_path": "drivers/mmc/host/dw_mmc.c"
    }
  ]
}
