Re: [PATCH] drivers: spi: cadence: set cqspi to the driver_data field of struct device

From: Mark Brown
Date: Thu Mar 11 2021 - 08:26:09 EST


On Thu, Mar 11, 2021 at 05:12:20PM +0800, Meng.Li@xxxxxxxxxxxxx wrote:
> From: Meng Li <Meng.Li@xxxxxxxxxxxxx>
>
> When initialize cadence qspi controller, it is need to set cqspi
> to the driver_data field of struct device, because it will be
> used in function cqspi_remove/suspend/resume(). Otherwise, there
> will be a crash trace as below when invoking these finctions.
> Call trace:
> cqspi_suspend+0x14/0x44
> dpm_run_callback+0x50/0x1c0
> __device_suspend+0x114/0x514

Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.

Attachment: signature.asc
Description: PGP signature