How to get faster SPI with Xiao SAMD21?

Without applying a patch to SPI.cpp, the maximum output is 6 MHz, but with the patch applied, it can reach 24 MHz. Please try it out.