)]}'
{
  "commit": "9d9491a7da2a4ce9fed32bd8611992ea3471523a",
  "tree": "bb7a26b38e54f61396eba6f3bfcf449f0f2f5033",
  "parents": [
    "8892b705f58e105b0b4ce3402afa1d1b803fb207"
  ],
  "author": {
    "name": "Douglas Anderson",
    "email": "dianders@chromium.org",
    "time": "Thu Oct 12 13:11:17 2017 -0700"
  },
  "committer": {
    "name": "Ulf Hansson",
    "email": "ulf.hansson@linaro.org",
    "time": "Wed Nov 01 15:13:45 2017 +0100"
  },
  "message": "mmc: dw_mmc: Fix the DTO timeout calculation\n\nJust like the CTO timeout calculation introduced recently, the DTO\ntimeout calculation was incorrect.  It used \"bus_hz\" but, as far as I\ncan tell, it\u0027s supposed to use the card clock.  Let\u0027s account for the\ndiv value, which is documented as 2x the value stored in the register,\nor 1 if the register is 0.\n\nNOTE: This was likely not terribly important until commit 16a34574c6ca\n(\"mmc: dw_mmc: remove the quirks flags\") landed because \"DIV\" is\ndocumented on Rockchip SoCs (the ones that used to define the quirk)\nto always be 0 or 1.  ...and, in fact, it\u0027s documented to only be 1\nwith EMMC in 8-bit DDR52 mode.  Thus before the quirk was applied to\neveryone it was mostly OK to ignore the DIV value.\n\nI haven\u0027t personally observed any problems that are fixed by this\npatch but I also haven\u0027t tested this anywhere with a DIV other an 0.\nAKA: this problem was found simply by code inspection and I have no\nfailing test cases that are fixed by it.  Presumably this could fix\nreal bugs for someone out there, though.\n\nFixes: 16a34574c6ca (\"mmc: dw_mmc: remove the quirks flags\")\nSigned-off-by: Douglas Anderson \u003cdianders@chromium.org\u003e\nReviewed-by: Shawn Lin \u003cshawn.lin@rock-chips.com\u003e\nSigned-off-by: Ulf Hansson \u003culf.hansson@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "50148991f30e768877dd14325e2025a17c86861f",
      "old_mode": 33188,
      "old_path": "drivers/mmc/host/dw_mmc.c",
      "new_id": "4f2806720c5c355aad0f7c87a3c28ff641c25a4e",
      "new_mode": 33188,
      "new_path": "drivers/mmc/host/dw_mmc.c"
    }
  ]
}
