Emil,>> + if (rs->slavemode)here is a mistake it is : rs->slave_modeand the use of rs->slave_mode in the rockchip_spi_config()