)]}'
{
  "commit": "b718989da7cf1f77ed5665dba0d2c73bd9dfe2d7",
  "tree": "e0fbe08f7240bf58e6c8fdf6c14e175f3d5764bb",
  "parents": [
    "017fc480cc8cc0594dc250951d78e814667ae4c2"
  ],
  "author": {
    "name": "Benjamin Herrenschmidt",
    "email": "benh@kernel.crashing.org",
    "time": "Thu Dec 20 15:28:08 2007 +1100"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@suse.de",
    "time": "Fri Feb 01 15:04:27 2008 -0800"
  },
  "message": "PCI: Add pci_enable_device_{io,mem} intefaces\n\nThe pci_enable_device_bars() interface isn\u0027t well suited to PCI\nbecause you can\u0027t actually enable/disable BARs individually on\na device. So for example, if a device has 2 memory BARs 0 and 1,\nand one of them (let\u0027s say 1) has not been successfully allocated\nby the firmware or the kernel, then enabling memory decoding\nshouldn\u0027t be permitted for the entire device since it will decode\nwhatever random address is still in that BAR 1.\n\nSo a device must be either fully enabled for IO, for Memory, or\nfor both. Not on a per-BAR basis.\n\nThis provides two new functions, pci_enable_device_io() and\npci_enable_device_mem() to replace pci_enable_device_bars(). The\nimplementation internally builds a BAR mask in order to be able\nto use existing arch infrastructure.\n\nSigned-off-by: Benjamin Herrenschmidt \u003cbenh@kernel.crashing.org\u003e\nAcked-by: Ivan Kokshaysky \u003cink@jurassic.park.msu.ru\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\n\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7248e9fb12bdc7e9d3bc1b1705d7c270eb58d233",
      "old_mode": 33188,
      "old_path": "drivers/pci/pci.c",
      "new_id": "5027e4d08b488baec2439646ea4566ac7893c226",
      "new_mode": 33188,
      "new_path": "drivers/pci/pci.c"
    },
    {
      "type": "modify",
      "old_id": "4b4d711a5da88adbab85d47a211b71a76fff6005",
      "old_mode": 33188,
      "old_path": "include/linux/pci.h",
      "new_id": "e4c1dacb663627a643c1cd4487b5a317bbde4aa6",
      "new_mode": 33188,
      "new_path": "include/linux/pci.h"
    }
  ]
}
