)]}'
{
  "commit": "688aa143b5ff46c66dcab3873bfbca9158a03445",
  "tree": "ffb5fd241012440c9da1e2da5f44a56c130504fc",
  "parents": [
    "5f4bfb61ad9782fc246086d06165b8db0f2b8d1e"
  ],
  "author": {
    "name": "Thomas Gleixner",
    "email": "tglx@linutronix.de",
    "time": "Tue Sep 12 21:04:02 2023 +0200"
  },
  "committer": {
    "name": "Thomas Gleixner",
    "email": "tglx@linutronix.de",
    "time": "Tue Sep 12 21:25:08 2023 +0200"
  },
  "message": "serial: xilinx_uartps: Use port lock wrappers\n\nWhen a serial port is used for kernel console output, then all\nmodifications to the UART registers which are done from other contexts,\ne.g. getty, termios, are interference points for the kernel console.\n\nSo far this has been ignored and the printk output is based on the\nprinciple of hope. The rework of the console infrastructure which aims to\nsupport threaded and atomic consoles, requires to mark sections which\nmodify the UART registers as unsafe. This allows the atomic write function\nto make informed decisions and eventually to restore operational state. It\nalso allows to prevent the regular UART code from modifying UART registers\nwhile printk output is in progress.\n\nAll modifications of UART registers are guarded by the UART port lock,\nwhich provides an obvious synchronization point with the console\ninfrastructure.\n\nTo avoid adding this functionality to all UART drivers, wrap the\nspin_[un]lock*() invocations for uart_port::lock into helper functions\nwhich just contain the spin_[un]lock*() invocations for now. In a\nsubsequent step these helpers will gain the console synchronization\nmechanisms.\n\nConverted with coccinelle. No functional change.\n\nSigned-off-by: Thomas Gleixner \u003ctglx@linutronix.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2e5e86a00a77d73e5192f5f3d6805d006fa75e35",
      "old_mode": 33188,
      "old_path": "drivers/tty/serial/xilinx_uartps.c",
      "new_id": "9c13dac1d4d1d534cc61fc98337d99931d96c443",
      "new_mode": 33188,
      "new_path": "drivers/tty/serial/xilinx_uartps.c"
    }
  ]
}
