Re: [RFC PATCH 04/14] sound: usb: card: Introduce USB SND vendor op callbacks

From: Takashi Iwai
Date: Thu Dec 29 2022 - 09:20:19 EST


On Thu, 29 Dec 2022 14:49:21 +0100,
Oliver Neukum wrote:
>
>
>
> On 24.12.22 00:31, Wesley Cheng wrote:
> > Allow for different vendors to be notified on USB SND connect/disconnect
> > seqeunces. This allows for vendor USB SND modules to properly initialize
> > and populate internal structures with references to the USB SND chip
> > device.
>
> Hi,
>
> this raises a design question. If the system is suspending or, worse,
> hibernating, how do you make sure the offloader and the device are
> suspended in the correct order?
> And what happens if you need to go into reset_resume() when resuming?

I guess we'd need to establish a device link when the binding from the
offload driver is done. Then the PM order will be assured.


Takashi