)]}'
{
  "commit": "0167522794a2e66f00248347122c1bb8ce3b001d",
  "tree": "ac01ed9312b2946bdcdbe1abf1078b69f6117183",
  "parents": [
    "236a38cc46ac810d0be679402bb21e83aebcb8b9"
  ],
  "author": {
    "name": "Nikolai Artemiev",
    "email": "nartemiev@google.com",
    "time": "Wed Oct 20 22:30:41 2021 +1100"
  },
  "committer": {
    "name": "Nico Huber",
    "email": "nico.h@gmx.de",
    "time": "Fri Dec 30 01:16:43 2022 +0100"
  },
  "message": "spi25_statusreg: make register read/write functions generic\n\nThis patch adds new spi_{read,write}_register() functions that take the\nsource/destination register as an argument. Currently they can only\naccess SR1, support for other registers will be added in another patch.\n\nSince we\u0027re refactoring things, this commit also makes\nspi_read_register() return an error code, making it possible to identify\nerror conditions that spi_read_status_register() concealed.\n\nThis also removes the initial 100ms delay between writing a register and\nthe first attempt to check the chip\u0027s status. An initial delay was added\nto avoid needing to read the status register multiple times, but that is\nunlikely to cause problems on modern flash chips.\n\nTested: flashrom -{r,w,E}\nTested: flashrom --wp-{enable,disable,range,list,status} at end of patch series\n\nChange-Id: I0a3951bbf993f2d8d830143b29d3ce16cc6901d7\nSigned-off-by: Nikolai Artemiev \u003cnartemiev@google.com\u003e\nOriginal-Reviewed-on: https://review.coreboot.org/c/flashrom/+/58475\nOriginal-Reviewed-by: Nico Huber \u003cnico.h@gmx.de\u003e\nOriginal-Reviewed-by: Anastasia Klimchuk \u003caklm@chromium.org\u003e\nOriginal-Reviewed-by: Edward O\u0027Callaghan \u003cquasisec@chromium.org\u003e\nReviewed-on: https://review.coreboot.org/c/flashrom-stable/+/70964\nReviewed-by: Nico Huber \u003cnico.h@gmx.de\u003e\nTested-by: build bot (Jenkins) \u003cno-reply@coreboot.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3c7d1466c1f640652d3a9d869f0e593d9cc91732",
      "old_mode": 33188,
      "old_path": "chipdrivers.h",
      "new_id": "9e2b44b1a7076166c855421b5d2c19c2039abbca",
      "new_mode": 33188,
      "new_path": "chipdrivers.h"
    },
    {
      "type": "modify",
      "old_id": "8e67fa74184998966ba6e1dba6aacefc8ff12074",
      "old_mode": 33188,
      "old_path": "flash.h",
      "new_id": "de4a21067d622dc24f4c61e757bad38f3783bc82",
      "new_mode": 33188,
      "new_path": "flash.h"
    },
    {
      "type": "modify",
      "old_id": "a0b0fcf5e20d26e50b387332f76c49514e6dc9dc",
      "old_mode": 33188,
      "old_path": "spi25_statusreg.c",
      "new_id": "0d7bc25b926d8e86cf29c580338304ad47b95b36",
      "new_mode": 33188,
      "new_path": "spi25_statusreg.c"
    }
  ]
}
