Re: [PATCH v6 3/5] drm/nouveau: Fix deadlock with fb_helper with async RPM requests

From: Ilia Mirkin
Date: Mon Aug 13 2018 - 15:11:32 EST


On Mon, Aug 13, 2018 at 3:07 PM, Lyude Paul <lyude@xxxxxxxxxx> wrote:
> +bool
> +nouveau_fbcon_hotplugged_in_suspend(struct nouveau_fbdev *fbcon)
> +{
> + bool hotplug;
> +
> + if (!fbcon)
> + return false;
> +
> + mutex_lock(&fbcon->hotplug_lock);
> + hotplug = fbcon->hotplug_waiting;
> + mutex_unlock(&fbcon->hotplug_lock);
> +
> + return hotplug;
> +}

I'm probably missing it, but where is this function used?