Re: [Patch net-next 3/9] net: dsa: microchip: perform the compatibility check for dev probed

From: Vladimir Oltean
Date: Wed May 18 2022 - 07:51:16 EST


On Tue, May 17, 2022 at 03:13:27PM +0530, Arun Ramadoss wrote:
> This patch perform the compatibility check for the device after the chip
> detect is done. It is to prevent the mismatch between the device
> compatible specified in the device tree and actual device found during
> the detect. The ksz9477 device doesn't use any .data in the
> of_device_id. But the ksz8795_spi uses .data for assigning the regmap
> between 8830 family and 87xx family switch. Changed the regmap
> assignment based on the chip_id from the .data.
>
> Signed-off-by: Arun Ramadoss <arun.ramadoss@xxxxxxxxxxxxx>
> ---

Other than hoping this doesn't cause regressions:

Reviewed-by: Vladimir Oltean <olteanv@xxxxxxxxx>