)]}'
{
  "commit": "fa6a940bf129c5417b602a4cdfe88b3dbd8e5898",
  "tree": "03355a9b00c59e00cfe157e5a5b7cb06e098bc4b",
  "parents": [
    "16a2e7d359b9fc64fb8a6717c0642691b1e60bb7"
  ],
  "author": {
    "name": "Viresh Kumar",
    "email": "viresh.kumar@st.com",
    "time": "Fri Aug 05 15:32:38 2011 +0530"
  },
  "committer": {
    "name": "Vinod Koul",
    "email": "vinod.koul@intel.com",
    "time": "Thu Aug 25 19:33:39 2011 +0530"
  },
  "message": "dmaengine/amba-pl08x: max_bytes_per_lli is TRANSFER_SIZE * src_width (not MIN(width))\n\nmax_bytes_per_lli \u003d bd.srcbus.buswidth * PL080_CONTROL_TRANSFER_SIZE_MASK;\nThis is confirmed by ARM support guys.\n\nBelow is summary of mail exchange with them:\n\n[Viresh] What is the total data to be transferred in case source and destination\nbus widths are different. Suppose, source bus width is 2 bytes and destination\nis 4 bytes. Now in order to transfer 80 bytes, what should be value of\nTransferSize field in control reg: 40? or 20?.\n\n[David from ARM] The value that is programmed into the TransferSize field should\nbe the number of \u003cSourceWidth\u003e transfers needed to achieve the required data\ntransfer.\n\nSo, to transfer 80 bytes, with a Source Width of 2, the TransferSize field \u003d\nshould be programmed with:\n\n        Total transfer size\n        ------------------- \u003d 40\n          \u003csource width\u003e\n\n[Viresh] Will this change if source is 4 bytes and dest is 2?\n\n[David] Yes - the calculation then becomes:\n\n        Total transfer size\n        ------------------- \u003d20\n          \u003csource width\u003e\n\nAlso, max_bytes_per_lli must be calculated after fixing src and dest widths not\nbefore that. So move this code to the correct place.\n\nThis patch also removes max_bytes_per_lli from earlier print message, as till\nthat point max_bytes_per_lli is unknown.\n\nSigned-off-by: Viresh Kumar \u003cviresh.kumar@st.com\u003e\nAcked-by: Linus Walleij \u003clinus.walleij@linaro.org\u003e\nSigned-off-by: Vinod Koul \u003cvinod.koul@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "be9a1c718f9a8992c2d26c738c8e407389454ed8",
      "old_mode": 33188,
      "old_path": "drivers/dma/amba-pl08x.c",
      "new_id": "e5930d512b00deb0bdb6adf66199e83a65121131",
      "new_mode": 33188,
      "new_path": "drivers/dma/amba-pl08x.c"
    }
  ]
}
