Hello Issuer,
For the slave device, the /SS input will need to be driven from the master, or alternatively might be tied permanently active low.
However, if the latter case is used, the setting CPHA = 1 is required (it will not work for CPHA = 0). The settings for both CPHA and CPOL must be identical for master and slave.
Your Port M output would seem unnecessary for the slave end. At the master end, if the /SS pin is configured as /SS input, this should be tied to Vdd. However, if configured as a /SS output, it could be connected to /SS input at the slave.
Regards,
Mac