Re: [PATCH v6 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-11 Thread Alexandre Belloni
On 07/06/2018 14:00:17+0300, Radu Pirea wrote: > +static int at91_usart_mode_probe(struct platform_device *pdev) > +{ > + struct mfd_cell cell; > + u32 opmode; This has to be initialized to AT91_USART_MODE_SERIAL... > + int err; > + > + err = device_property_read_u32(&pdev->dev, "

[PATCH v6 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-07 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring --- drivers/mfd/Kc