)]}'
{
  "commit": "1f32ca31e7409d37c1b25e5f81840fb184380cdf",
  "tree": "e587c85b46b04dbbb5987e2a4986ab174f3bd6fa",
  "parents": [
    "bbe413b4fc7f791248c7ee00ce7b3778491a3700"
  ],
  "author": {
    "name": "Bjorn Helgaas",
    "email": "bjorn.helgaas@hp.com",
    "time": "Fri Jun 27 16:57:17 2008 -0600"
  },
  "committer": {
    "name": "Andi Kleen",
    "email": "andi@basil.nowhere.org",
    "time": "Wed Jul 16 23:27:07 2008 +0200"
  },
  "message": "PNP: convert resource options to single linked list\n\nISAPNP, PNPBIOS, and ACPI describe the \"possible resource settings\" of\na device, i.e., the possibilities an OS bus driver has when it assigns\nI/O port, MMIO, and other resources to the device.\n\nPNP used to maintain this \"possible resource setting\" information in\none independent option structure and a list of dependent option\nstructures for each device.  Each of these option structures had lists\nof I/O, memory, IRQ, and DMA resources, for example:\n\n  dev\n    independent options\n      ind-io0  -\u003e ind-io1  ...\n      ind-mem0 -\u003e ind-mem1 ...\n      ...\n    dependent option set 0\n      dep0-io0  -\u003e dep0-io1  ...\n      dep0-mem0 -\u003e dep0-mem1 ...\n      ...\n    dependent option set 1\n      dep1-io0  -\u003e dep1-io1  ...\n      dep1-mem0 -\u003e dep1-mem1 ...\n      ...\n    ...\n\nThis data structure was designed for ISAPNP, where the OS configures\ndevice resource settings by writing directly to configuration\nregisters.  The OS can write the registers in arbitrary order much\nlike it writes PCI BARs.\n\nHowever, for PNPBIOS and ACPI devices, the OS uses firmware interfaces\nthat perform device configuration, and it is important to pass the\ndesired settings to those interfaces in the correct order.  The OS\nlearns the correct order by using firmware interfaces that return the\n\"current resource settings\" and \"possible resource settings,\" but the\noption structures above doesn\u0027t store the ordering information.\n\nThis patch replaces the independent and dependent lists with a single\nlist of options.  For example, a device might have possible resource\nsettings like this:\n\n  dev\n    options\n      ind-io0 -\u003e dep0-io0 -\u003e dep1-\u003eio0 -\u003e ind-io1 ...\n\nAll the possible settings are in the same list, in the order they\ncome from the firmware \"possible resource settings\" list.  Each entry\nis tagged with an independent/dependent flag.  Dependent entries also\nhave a \"set number\" and an optional priority value.  All dependent\nentries must be assigned from the same set.  For example, the OS can\nuse all the entries from dependent set 0, or all the entries from\ndependent set 1, but it cannot mix entries from set 0 with entries\nfrom set 1.\n\nPrior to this patch PNP didn\u0027t keep track of the order of this list,\nand it assigned all independent options first, then all dependent\nones.  Using the example above, that resulted in a \"desired\nconfiguration\" list like this:\n\n  ind-\u003eio0 -\u003e ind-\u003eio1 -\u003e depN-io0 ...\n\ninstead of the list the firmware expects, which looks like this:\n\n  ind-\u003eio0 -\u003e depN-io0 -\u003e ind-io1 ...\n\nSigned-off-by: Bjorn Helgaas \u003cbjorn.helgaas@hp.com\u003e\nSigned-off-by: Andi Kleen \u003cak@linux.intel.com\u003e\nAcked-by: Rene Herman \u003crene.herman@gmail.com\u003e\nSigned-off-by: Len Brown \u003clen.brown@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "360c6385686c60486f9573c3664e7d4e61cfd7cf",
      "old_mode": 33188,
      "old_path": "drivers/pnp/base.h",
      "new_id": "e3fa9a2d9a3d3a2a9124bd334c54632aeb760f94",
      "new_mode": 33188,
      "new_path": "drivers/pnp/base.h"
    },
    {
      "type": "modify",
      "old_id": "7182da92aec3b26f489614ce720a8df29f265bca",
      "old_mode": 33188,
      "old_path": "drivers/pnp/core.c",
      "new_id": "a411582bcd72d3caf7638fc1ede2a0747498af6e",
      "new_mode": 33188,
      "new_path": "drivers/pnp/core.c"
    },
    {
      "type": "modify",
      "old_id": "7a9fb5544b80926f61644aaa883662c19adf3d8d",
      "old_mode": 33188,
      "old_path": "drivers/pnp/interface.c",
      "new_id": "a876ecf7028c06c003d5fc1aed974bb9f5f97f98",
      "new_mode": 33188,
      "new_path": "drivers/pnp/interface.c"
    },
    {
      "type": "modify",
      "old_id": "53cc4d6133e6bebe77237ed1e3c912bd1c273cff",
      "old_mode": 33188,
      "old_path": "drivers/pnp/isapnp/core.c",
      "new_id": "101a835e8759fb3f757d72426cfc05c2d678865c",
      "new_mode": 33188,
      "new_path": "drivers/pnp/isapnp/core.c"
    },
    {
      "type": "modify",
      "old_id": "a20accb5ef8fe16ce5486f6e9747ea5111a463e7",
      "old_mode": 33188,
      "old_path": "drivers/pnp/manager.c",
      "new_id": "b526eaad3f6c4e069360b9167b83ae786ccf511b",
      "new_mode": 33188,
      "new_path": "drivers/pnp/manager.c"
    },
    {
      "type": "modify",
      "old_id": "e114b3d2b93397b6f911b9593484340cc2a834df",
      "old_mode": 33188,
      "old_path": "drivers/pnp/pnpacpi/rsparser.c",
      "new_id": "c2f59f4d20bc81f66e1506533abc36082dcda240",
      "new_mode": 33188,
      "new_path": "drivers/pnp/pnpacpi/rsparser.c"
    },
    {
      "type": "modify",
      "old_id": "db23ba78d39c13afaa59dc9d3caa1d57bf271a4f",
      "old_mode": 33188,
      "old_path": "drivers/pnp/pnpbios/rsparser.c",
      "new_id": "ca567671379e73985863538650f37609b360fc32",
      "new_mode": 33188,
      "new_path": "drivers/pnp/pnpbios/rsparser.c"
    },
    {
      "type": "modify",
      "old_id": "e8515ce0d296abf29cff2402407ed0cf99d81781",
      "old_mode": 33188,
      "old_path": "drivers/pnp/quirks.c",
      "new_id": "55f55ed72dc7a69019d9c948c35c827d918955bd",
      "new_mode": 33188,
      "new_path": "drivers/pnp/quirks.c"
    },
    {
      "type": "modify",
      "old_id": "a795864dc69528bb210757975c3cc0153dcdd20e",
      "old_mode": 33188,
      "old_path": "drivers/pnp/resource.c",
      "new_id": "d6388970a1a4cda8595717c5b03282e30fc6fafb",
      "new_mode": 33188,
      "new_path": "drivers/pnp/resource.c"
    },
    {
      "type": "modify",
      "old_id": "0ad42db948843ed4a761ff50367d02a3c309195b",
      "old_mode": 33188,
      "old_path": "drivers/pnp/support.c",
      "new_id": "bbf78ef4ba024932af837e18f16503daf8c9ce4a",
      "new_mode": 33188,
      "new_path": "drivers/pnp/support.c"
    },
    {
      "type": "modify",
      "old_id": "785126ffcc110c99d845fcfab5aa9ba35afabe7f",
      "old_mode": 33188,
      "old_path": "include/linux/pnp.h",
      "new_id": "1ce54b63085dd09b1ee5826694294969fe2a1f78",
      "new_mode": 33188,
      "new_path": "include/linux/pnp.h"
    }
  ]
}
