I think I found why you are having the issue.
I managed to replicate your issue by not having the clock to the SPI peripheral enabled.
ClkDis() disables the clocks to the peripherals that you don't need to use, and enables the rest.
By default the clocks to many peripherals are disabled (i2c, spi uart, PWM etc) (CLKDIS is the actual register modified by ClkDis())