Re: [PATCH] bus: fsl-mc: don't assume child devices are all fsl-mc devices

From: Greg KH
Date: Tue Jan 31 2023 - 06:56:43 EST


On Fri, Jan 27, 2023 at 03:16:36PM +0200, laurentiu.tudor@xxxxxxx wrote:
> From: Laurentiu Tudor <laurentiu.tudor@xxxxxxx>
>
> Changes in VFIO caused a pseudo-device to be created as child of
> fsl-mc devices causing a crash [1] when trying to bind a fsl-mc
> device to VFIO. Fix this by checking the device type when enumerating
> fsl-mc child devices.

What changes? What commit id does this fix? Does it need to be
backported?

And what type of "pseudo device" is being created? Why would it be
passed to this driver if it's the wrong type?

this feels wrong...

thanks,

greg k-h