Re: [PATCH v1] spi: mxs: implement runtime pm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 26, 2017 at 10:10:28PM +0200, Uwe Kleine-König wrote:

> +	int ret;
> +
> +	ret = pm_runtime_get_sync(ssp->dev);
> +	if (ret < 0) {
> +		dev_err(ssp->dev, "Failed to runtime resume for transfer\n");
> +		return ret;
> +	}

There's a flag auto_runtime_pm the driver can set which should do what
you're doing here in the core (with the very slight advantage that it'll
hold the device on while the queue is busy so we don't bounce the power
in the event that there's transactions queued up).

Otherwise this looks good to me.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux