)]}'
{
  "commit": "eea365ed283cb2a7418b277fef87b462418e2283",
  "tree": "79dddd1f874a991a11d7f6eedddbe7b988053de2",
  "parents": [
    "49d8bbc21244f0c2d2ebf5ee03fb7352ff019ecc"
  ],
  "author": {
    "name": "Coia Prant",
    "email": "coiaprant@gmail.com",
    "time": "Fri Oct 23 15:52:13 2026 +0800"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Wed Oct 28 17:29:38 2026 -0700"
  },
  "message": "net: pcs: xpcs-plat: fix clock lifecycle for !CONFIG_PM builds\n\nWith CONFIG_PM disabled, pm_runtime_enable() and the runtime resume path\nare compiled out, so the CSR clock is never prepared/enabled. On\nplatforms that provide a real \"csr\" clock this makes register access\nfail.\n\nHandle this by preparing/enabling the CSR clock manually in the !PM case\nand disabling it in the devm cleanup action. The CONFIG_PM path is left\nunchanged and still relies on runtime PM to gate the clock.\n\nUse RUNTIME_PM_OPS() and pm_ptr() for the PM ops as well, so that in\n!CONFIG_PM builds the runtime callbacks are still referenced and .pm is\nNULL rather than pointing at an empty ops structure. This also drops the\n__maybe_unused annotations from the callbacks, which were only needed\nbecause SET_RUNTIME_PM_OPS() expands to nothing when CONFIG_PM is\ndisabled. Both changes are no-ops when CONFIG_PM is enabled.\n\nThe CSR clock is optional (devm_clk_get_optional()), so platforms\nwithout a clock keep working in both cases, and clk_prepare_enable()\non a NULL clock is a no-op. Because the !PM case is handled in the\ndriver, there is no need to select or depend on PM in Kconfig for all\nplatforms; keep the current Kconfig as-is to preserve compile coverage.\n\nSigned-off-by: Coia Prant \u003ccoiaprant@gmail.com\u003e\nLink: https://patch.msgid.link/20261023075214.1793922-4-coiaprant@gmail.com\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "11c4239bfd74e3f9d834dc24f4bed0b5628e011c",
      "old_mode": 33188,
      "old_path": "drivers/net/pcs/pcs-xpcs-plat.c",
      "new_id": "c4404500bac60e01656e18ea48ebe7003c0e8d82",
      "new_mode": 33188,
      "new_path": "drivers/net/pcs/pcs-xpcs-plat.c"
    }
  ]
}
