[PATCH] PCI/AER: Use pci_clear_and_set_config_dword() to simplify mask updates

2025-05-04 Thread Hans Zhang
Replace the manual read-modify-write sequences in pci_aer_unmask_internal_errors()with pci_clear_and_set_config_dword(). This function performs the read/write operations atomically and reduces code duplication. Signed-off-by: Hans Zhang <18255117...@163.com> --- drivers/pci/pcie/aer.c | 11 --

Re: [PATCH v2 6/6] powerpc: sysdev: use lock guard for mutex

2025-05-04 Thread Shrikanth Hegde
Hi On 4/30/25 18:40, Srikar Dronamraju wrote: * Shrikanth Hegde [2025-03-14 17:15:02]: Hi Srikar. use guard(mutex) for scope based resource management of mutex This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.ker