)]}'
{
  "commit": "84d35b2863455bedb9986c2b076241e8a441fc3e",
  "tree": "9cb3af890b370091b0460d930b5829fe3d2abb62",
  "parents": [
    "4ea7a09fafdf0592cb99428090946bf15128ea44"
  ],
  "author": {
    "name": "Stephen Warren",
    "email": "swarren@nvidia.com",
    "time": "Tue Nov 06 11:27:29 2012 +0000"
  },
  "committer": {
    "name": "Andy Fleming",
    "email": "afleming@freescale.com",
    "time": "Tue Nov 27 17:26:48 2012 -0600"
  },
  "message": "common: rework bouncebuf implementation\n\nThe current bouncebuf API requires all parameters to be passed to both\nbounce_buffer_start() and bounce_buffer_stop(). Modify the bouncebuf\nstart function to accept a state structure as a parameter, and only\nrequire that state struct to be passed to the stop function. This\nsimplifies usage of the bounce buffer by clients.\n\nDon\u0027t modify the data pointer, but rather store the temporary buffer in\nthis state struct. The bouncebuf code ensures that client code can\nalways use a single buffer pointer in the state structure, irrespective\nof whether a bounce buffer actually had to be allocated.\n\nMove cache management logic into the bounce buffer code, so that each\nclient doesn\u0027t have to duplicate this. I believe there\u0027s no need to\ninvalidate the buffer before a DMA operation, since flushing the cache\nshould prevent any write-backs.\n\nUpdate the MXS MMC driver for this change.\n\nSigned-off-by: Stephen Warren \u003cswarren@nvidia.com\u003e\nAcked-by: Simon Glass \u003csjg@chromium.org\u003e\nTested-by: Simon Glass \u003csjg@chromium.org\u003e\nSigned-off-by: Andy Fleming \u003cafleming@freescale.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4f827f893d665d66963a7f32aeaea4f00222d9d2",
      "old_mode": 33188,
      "old_path": "common/bouncebuf.c",
      "new_id": "1df12cdda07d04f80632190c09b841e85a774b45",
      "new_mode": 33188,
      "new_path": "common/bouncebuf.c"
    },
    {
      "type": "modify",
      "old_id": "109acbf6234bf3eb29e4caf9ba18f5c4294e784e",
      "old_mode": 33188,
      "old_path": "drivers/mmc/mxsmmc.c",
      "new_id": "024df592f2256bd7f846683fd1f8d3ff61baa529",
      "new_mode": 33188,
      "new_path": "drivers/mmc/mxsmmc.c"
    },
    {
      "type": "modify",
      "old_id": "aa2278c8f94ad05355b1d29bbee1104459e9e064",
      "old_mode": 33188,
      "old_path": "include/bouncebuf.h",
      "new_id": "707b588c733c06d936a0a2fa517b9c4fad47095a",
      "new_mode": 33188,
      "new_path": "include/bouncebuf.h"
    }
  ]
}
