On Wed, Nov 27, 2024 at 12:32:54PM +0100, Niklas Cassel wrote: > On Wed, Nov 27, 2024 at 12:23:02PM +0100, Niklas Cassel wrote: > > > > Once all EPC drivers have implemented .align_addr(), we could change > > pci-epf-test.c to unconditionally set the CAP_UNALIGNED_ACCESS capability. > > ...and it would also allow us to get rid of everything related to alignment > in drivers/misc/pci_endpoint_test.c. On futher thought, we probably want to keep that code in drivers/misc/pci_endpoint_test.c, such that it can be backwards compatible with pci-epf-test.c drivers that are old (before CAP_UNALIGNED_ACCESS). So I still think that having a CAP_UNALIGNED_ACCESS is the best we can do. Kind regards, Niklas