)]}'
{
  "commit": "2fc70dcfe988928e97e69e98d91e7e3999ecd352",
  "tree": "b9d2b757606242debe22d8107fbae41c668937a9",
  "parents": [
    "27835eaf1a0384293dcd1f3ad6ad506d919f3b43"
  ],
  "author": {
    "name": "Sergii Dmytruk",
    "email": "sergii.dmytruk@3mdeb.com",
    "time": "Mon Nov 08 01:38:52 2021 +0200"
  },
  "committer": {
    "name": "Nico Huber",
    "email": "nico.h@gmx.de",
    "time": "Thu Jan 05 16:35:01 2023 +0000"
  },
  "message": "dummyflasher: enforce write protection for W25Q128FV\n\nStart taking bits related to write protection into account.\n\nAlso add \"hwwp\" parameter for dummy programmer that sets state of WP\npin (not inverted value).\n\nTested: use command-line interface to run WP-related commands\n\ndummyflasher doesn\u0027t store state of the chip between runs and flashrom\nallows running only one command, so testing WP in this way is limited.\nHowever, WP options can be combined with other operations and are\nexecuted prior to them, so certain scenarios can be checked.\n\nList possible ranges:\n    flashrom -p dummy:emulate\u003dW25Q128FV,hwwp\u003dyes --wp-list\n\nSet a particular range and check status is correct:\n    flashrom -p dummy:emulate\u003dW25Q128FV,hwwp\u003dyes \\\n             --wp-enable \\\n             --wp-range\u003d0x00100000,0x00f00000 \\\n             --wp-status\n\nEnable write protection and try erasing/writing (erasing here):\n    # this fails\n    flashrom -p dummy:emulate\u003dW25Q128FV,hwwp\u003dyes \\\n             --wp-range\u003d0,0x00c00000 \\\n             --wp-enable \\\n             --erase\n\nWrite protecting empty range has no effect:\n    # this succeeds\n    flashrom -p dummy:emulate\u003dW25Q128FV,hwwp\u003dyes \\\n             --wp-range\u003d0,0 \\\n             --wp-enable \\\n             --erase\n\nDisabling WP is possible if hwwp is off:\n    # this fails\n    flashrom -p dummy:emulate\u003dW25Q128FV,spi_status\u003d0x80,hwwp\u003dyes \\\n             --wp-disable\n    # this succeeds\n    flashrom -p dummy:emulate\u003dW25Q128FV,spi_status\u003d0x80,hwwp\u003dno \\\n             --wp-disable\n\nChange-Id: I9fd1417f941186391bd213bd355530143c8f04a0\nSigned-off-by: Sergii Dmytruk \u003csergii.dmytruk@3mdeb.com\u003e\nOriginal-Reviewed-on: https://review.coreboot.org/c/flashrom/+/59074\nOriginal-Reviewed-by: Anastasia Klimchuk \u003caklm@chromium.org\u003e\nOriginal-Reviewed-by: Thomas Heijligen \u003csrc@posteo.de\u003e\nOriginal-Reviewed-by: Edward O\u0027Callaghan \u003cquasisec@chromium.org\u003e\nReviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71459\nReviewed-by: Nico Huber \u003cnico.h@gmx.de\u003e\nReviewed-by: Angel Pons \u003cth3fanbus@gmail.com\u003e\nTested-by: build bot (Jenkins) \u003cno-reply@coreboot.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3090197c1d7a01ab4576548cbe088bd123b8015f",
      "old_mode": 33188,
      "old_path": "dummyflasher.c",
      "new_id": "768ec8979dc2dc62933c11036a522b55d502239d",
      "new_mode": 33188,
      "new_path": "dummyflasher.c"
    },
    {
      "type": "modify",
      "old_id": "7b973de1ccfb417e1df4d69e3b9365f4b90150a5",
      "old_mode": 33188,
      "old_path": "flashrom.8.tmpl",
      "new_id": "2ab5c757dde75f74c483adde7bbfccaba3320ca2",
      "new_mode": 33188,
      "new_path": "flashrom.8.tmpl"
    }
  ]
}
