/* Set frame size (making an assumption that the supplied size is supported by this controller)  */
static int spi_stm32_hw_bt_set(struct spi_stm32 *c, int bt)
/* Set frame size (making an assumption that the supplied size is supported by this controller)  */
static int spi_stm32_hw_bt_set(struct spi_stm32 *c, int bt)
{
	unsigned int v = readl(&SPI(c)->spi_cr1);
	int ret = 0;
	if (bt == 8) {
		v &= ~SPI_CR1_DFF;
	}
	else {
		v |= SPI_CR1_DFF;
	}
	writel(v, &SPI(c)->spi_cr1);
	d_printk(2, "bus=%d,bt=%d,spi_cr1=%x,ret=%d\n", 
		 c->bus, bt, readl(&SPI(c)->spi_cr1), ret);
	return ret;
}