)]}'
{
  "commit": "5a6824a41c00d98bc90dfa901d88b14669981dae",
  "tree": "e88729054e4fd990406c65351ededbf4f858c7a4",
  "parents": [
    "83777f1cebc4cb330b8e09cee565b5cdb2a0d7f7"
  ],
  "author": {
    "name": "Enmanuel Parache",
    "email": "enmanuelparache@gmail.com",
    "time": "Wed Nov 18 14:01:41 2026 -0400"
  },
  "committer": {
    "name": "Enmanuel Parache",
    "email": "EnmanuelParache@users.noreply.github.com",
    "time": "Thu Nov 19 21:11:03 2026 -0600"
  },
  "message": "ast10x0: make SCU unlock nesting-safe and re-lock after boot\n\nunlock_and_lock_after now tracks a nesting depth so only the outermost\ncall unlocks and re-locks the SCU. An inner call no longer re-locks the\nSCU under an enclosing closure.\n\nNow that the SCU is re-locked, writes that relied on it staying\nunlocked would be silently dropped, so:\n- gate/ungate_clock_mask, assert/deassert_reset_mask,\n  apply_pinctrl_group and dcache_invd_all take the lock themselves.\n- The I3C reset/clock writes and the SGPIOM pin enable in spim_wiring\n  go through ScuRegisters instead of raw PAC writes.\n- HACE only holds the SCU unlocked for its clock and reset writes.\n- pre_init re-locks the SCU after init_cache.\n\nFix the unlock_and_lock_after documentation and the stale \"call\nunlock_write_protection()\" comments.\n\nValidated on the AST1060 EVB: 25/25 non-manual hardware tests pass (rebased on main).\n\nCo-Authored-By: Claude Sonnet 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "051c8609017ae31f78934bbf454079872036eef0",
      "old_mode": 33188,
      "old_path": "target/ast10x0/board/src/spim_wiring.rs",
      "new_id": "df206e6e59448bdc0569802124849fe91aae42ce",
      "new_mode": 33188,
      "new_path": "target/ast10x0/board/src/spim_wiring.rs"
    },
    {
      "type": "modify",
      "old_id": "a668bce775f30e958cd9a4bc8d8562423465ce98",
      "old_mode": 33188,
      "old_path": "target/ast10x0/entry.rs",
      "new_id": "38a2ba988fcd21aaaaf5d1bf84ef400b4f0a5688",
      "new_mode": 33188,
      "new_path": "target/ast10x0/entry.rs"
    },
    {
      "type": "modify",
      "old_id": "846d3784e5eb8ef19292778bcf9647cc6b52da7e",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/hace/device.rs",
      "new_id": "44539b4f5febe7f4acdcd7e90ad3daaa2bd3d646",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/hace/device.rs"
    },
    {
      "type": "modify",
      "old_id": "f8913871c5ddd142ba08104264be6d351ad71c49",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/i3c/registers.rs",
      "new_id": "d3ef0769cf1cfb9e34244e3498d1170d4efa3e24",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/i3c/registers.rs"
    },
    {
      "type": "modify",
      "old_id": "0e8a20f5dd00402371c18efd3398934364cbc20f",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/scu/cache.rs",
      "new_id": "19bebb3a1a22b3f56c64fe6547a3d11e0196e949",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/scu/cache.rs"
    },
    {
      "type": "modify",
      "old_id": "e258112f632965ec066aff1a0de7664c3dddc37b",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/scu/clock.rs",
      "new_id": "4867933cc2d833c4b9ab041566c15ba8b2bcd972",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/scu/clock.rs"
    },
    {
      "type": "modify",
      "old_id": "ac6447090ae00569d358a0f80dcabbca15754836",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/scu/pinctrl.rs",
      "new_id": "7f554fdf5c4f155e834c20636e770152781113dc",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/scu/pinctrl.rs"
    },
    {
      "type": "modify",
      "old_id": "2b7769d123aa8cfe11485aa361443faf43ae46a5",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/scu/registers.rs",
      "new_id": "0dec408f0a2cbeab6a6f8fcaf2c1dbf3faf21b4a",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/scu/registers.rs"
    },
    {
      "type": "modify",
      "old_id": "73dc09afc1c63c70af8e746788261cf8d28a2acc",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/scu/reset.rs",
      "new_id": "db5c4a9eeadcd19e4030ade389d1ed328398b58c",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/scu/reset.rs"
    },
    {
      "type": "modify",
      "old_id": "8c9f011090db0da29825fa7c7d9b7b8ff301a1aa",
      "old_mode": 33188,
      "old_path": "target/ast10x0/tests/flash/target.rs",
      "new_id": "524a73d36bceb8930bf4b48f1ec5f3665abb2a8b",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/flash/target.rs"
    },
    {
      "type": "modify",
      "old_id": "e7cfabc3a1acc6dfb925d31bbfb22d4a0a4a7fa1",
      "old_mode": 33188,
      "old_path": "target/ast10x0/tests/flash_service/target.rs",
      "new_id": "f90039c90b7e1fa8f7ba31f4c6b642215103b12b",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/flash_service/target.rs"
    }
  ]
}
