)]}'
{
  "commit": "58373ff0afff4cc8ac40608872995f4d87eb72ec",
  "tree": "cb697da3cc49ab4df73ad6427a3c9df8f1cab4b3",
  "parents": [
    "c7b28e25cb9beb943aead770ff14551b55fa8c79"
  ],
  "author": {
    "name": "Brian Norris",
    "email": "norris@broadcom.com",
    "time": "Thu Jul 15 12:15:44 2010 -0700"
  },
  "committer": {
    "name": "David Woodhouse",
    "email": "David.Woodhouse@intel.com",
    "time": "Mon Aug 02 09:09:06 2010 +0100"
  },
  "message": "mtd: nand: more BB Detection refactoring and dynamic scan options\n\nThis is a revision to PATCH 2/2 that I sent. Link:\nhttp://lists.infradead.org/pipermail/linux-mtd/2010-July/030911.html\n\nAdded new flag for scanning of both bytes 1 and 6 of the OOB for\na BB marker (instead of simply one or the other).\n\nThe \"check_pattern\" and \"check_short_pattern\" functions were updated\nto include support for scanning the two different locations in the OOB.\n\nIn order to handle increases in variety of necessary scanning patterns,\nI implemented dynamic memory allocation of nand_bbt_descr structs\nin new function \u0027nand_create_default_bbt_descr()\u0027. This replaces\nsome increasingly-unwieldy, statically-declared descriptors. It can\nreplace several more (e.g. \"flashbased\" structs). However, I do not\ntest the flashbased options personally.\n\nHow this was tested:\n\nI referenced 30+ data sheets (covering 100+ parts), and I tested a\nselection of 10 different chips to varying degrees. Particularly, I\ntested the creation of bad-block descriptors and basic BB scanning on\nthree parts:\n\nST NAND04GW3B2D, 2K page\nST NAND128W3A, 512B page\nSamsung K9F1G08U0A, 2K page\n\nTo test these, I wrote some fake bad block markers to the flash (in OOB\nbytes 1, 6, and elsewhere) to see if the scanning routine would detect\nthem properly. However, this method was somewhat limited because the\ndriver I am using has some bugs in its OOB write functionality.\n\nSigned-off-by: Brian Norris \u003cnorris@broadcom.com\u003e\nSigned-off-by: Artem Bityutskiy \u003cArtem.Bityutskiy@nokia.com\u003e\nSigned-off-by: David Woodhouse \u003cDavid.Woodhouse@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bd697909db53a3ae4c76759e0a83298a68362954",
      "old_mode": 33188,
      "old_path": "drivers/mtd/nand/nand_base.c",
      "new_id": "c2901bd126f9bef70f6c791822f7b113a325b0f1",
      "new_mode": 33188,
      "new_path": "drivers/mtd/nand/nand_base.c"
    },
    {
      "type": "modify",
      "old_id": "ec1700eaf198dd7a737ac07c381ce4a0848af944",
      "old_mode": 33188,
      "old_path": "drivers/mtd/nand/nand_bbt.c",
      "new_id": "469de17107e5f7f5cecdbb300ebe3ca3175414b6",
      "new_mode": 33188,
      "new_path": "drivers/mtd/nand/nand_bbt.c"
    },
    {
      "type": "modify",
      "old_id": "8ad0b8629c3f86f06d8cec7ffd59798096e43de2",
      "old_mode": 33188,
      "old_path": "include/linux/mtd/bbm.h",
      "new_id": "a04b962492a8b4cddf5a44553fb0582dc5c9eeac",
      "new_mode": 33188,
      "new_path": "include/linux/mtd/bbm.h"
    }
  ]
}
