Re: [PATCH 3/3] spi: dw: Drop default number of CS setting

From: Andy Shevchenko
Date: Thu Feb 15 2024 - 14:32:55 EST


On Thu, Feb 15, 2024 at 09:00:48PM +0300, Serge Semin wrote:
> DW APB/AHB SSI core now supports the procedure which automatically
> determines the number of native CS. Thus there is no longer point in
> defaulting to four CS if platform doesn't specify the real number.

..

> - num_cs = 4;

Simply update the default here?

> - device_property_read_u32(&pdev->dev, "num-cs", &num_cs);
> -
> - dws->num_cs = num_cs;

--
With Best Regards,
Andy Shevchenko