)]}'
{
  "commit": "e0719165801fad04073e7dcd90e4afd02aba3fb7",
  "tree": "8b1cb65f26487d6fa0aba776e88c8e9b7f0aa22c",
  "parents": [
    "03af500f743f486648fc8afc38593e9844411945"
  ],
  "author": {
    "name": "Viresh Kumar",
    "email": "viresh.kumar@st.com",
    "time": "Fri Aug 05 15:32:40 2011 +0530"
  },
  "committer": {
    "name": "Vinod Koul",
    "email": "vinod.koul@intel.com",
    "time": "Thu Aug 25 19:33:39 2011 +0530"
  },
  "message": "dmaengine/amba-pl08x: Align lli_len to max(src.width, dst.width)\n\nCurrently lli_len is aligned to min of two widths, which looks to be incorrect.\nInstead it should be aligned to max of both widths.\n\nLets say, total_size \u003d 441 bytes\n\nMIN: lets check if min() suits or not:\n\nCASE 1: srcwidth \u003d 1, dstwidth \u003d 4\nmin(src, dst) \u003d 1\n\ni.e. We program transfer size in control reg to 441.\nNow, till 440 bytes everything is fine, but on the last byte DMAC can\u0027t transfer\n1 byte to dst, as its width is 4.\n\nCASE 2: srcwidth \u003d 4, dstwidth \u003d 1\nmin(src, dst) \u003d 1\n\ni.e. we program transfer size in control reg to 110 (data transferred \u003d 110 * srcwidth).\nSo, here too 1 byte is left, but on the source side.\n\nMAX: Lets check if max() suits or not:\n\nCASE 3: srcwidth \u003d 1, dstwidth \u003d 4\nmax(src, dst) \u003d 4\n\nAligned size is 440\n\ni.e. We program transfer size in control reg to 440.\nNow, all 440 bytes will be transferred without any issues.\n\nCASE 4: srcwidth \u003d 4, dstwidth \u003d 1\nmax(src, dst) \u003d 4\n\nAligned size is 440\n\ni.e. We program transfer size in control reg to 110 (data transferred \u003d 110 * srcwidth).\nNow, also all 440 bytes will be transferred without any issues.\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": "45d8a5d5bccdfc15c68850629adcbd2c8dccbbb4",
      "old_mode": 33188,
      "old_path": "drivers/dma/amba-pl08x.c",
      "new_id": "4bcf6036f35d38d44fce752e1c49ef144d58d667",
      "new_mode": 33188,
      "new_path": "drivers/dma/amba-pl08x.c"
    }
  ]
}
