[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7bea4fc0-9c9b-d4fa-b996-4271a1cb8ad7@loongson.cn>
Date: Sat, 15 Apr 2023 09:42:42 +0800
From: zhuyinbo <zhuyinbo@...ngson.cn>
To: Mark Brown <broonie@...nel.org>
Cc: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
linux-spi@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Jianmin Lv <lvjianmin@...ngson.cn>,
wanghongliang@...ngson.cn, Liu Peibao <liupeibao@...ngson.cn>,
loongson-kernel@...ts.loongnix.cn, zhuyinbo@...ngson.cn
Subject: Re: [PATCH v7 2/2] spi: loongson: add bus driver for the loongson spi
controller
在 2023/4/15 上午2:32, Mark Brown 写道:
> On Wed, Apr 12, 2023 at 12:51:52PM +0800, Yinbo Zhu wrote:
>
>> +static int __maybe_unused loongson_spi_suspend(struct device *dev)
>> +{
>> + struct loongson_spi *loongson_spi;
>> + struct spi_master *master;
>> +
>> + master = dev_get_drvdata(dev);
>> + loongson_spi = spi_master_get_devdata(master);
>> +
>> + loongson_spi->spcr = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPCR_REG);
>
> This is missing a call to spi_controller_suspend(), and similarly resume
> is missing a call to spi_controller_resume(). Otherwise this looks
> good.
okay, I will add it.
Thanks.
>
Powered by blists - more mailing lists