[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <68A53B8B-6646-4A99-B1E3-FAC3D550D67E@public-files.de>
Date: Wed, 12 Aug 2020 21:59:48 +0200
From: Frank Wunderlich <frank-w@...lic-files.de>
To: linux-mediatek@...ts.infradead.org,
Philipp Zabel <p.zabel@...gutronix.de>,
Wenbin Mei <wenbin.mei@...iatek.com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Rob Herring <robh+dt@...nel.org>
CC: devicetree@...r.kernel.org, srv_heupstream@...iatek.com,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
Chaotian Jing <chaotian.jing@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 3/3] mmc: mediatek: add optional module reset property
Tested with these 2 changes below too.
Am 12. August 2020 14:08:19 MESZ schrieb Philipp Zabel <p.zabel@...gutronix.de>:
>> + if (!IS_ERR(host->reset)) {
>> + reset_control_assert(host->reset);
>> + usleep_range(10, 50);
>> + reset_control_deassert(host->reset);
>> + }
>> +
>
>This should be:
>
> if (host->reset) {
> reset_control_assert(host->reset);
> usleep_range(10, 50);
> reset_control_deassert(host->reset);
> }
>
>> + host->reset = devm_reset_control_get_optional_exclusive(&pdev->dev,
>> + "hrst");
>> + if (PTR_ERR(host->reset) == -EPROBE_DEFER)
>> + return PTR_ERR(host->reset);
>> +
>
>This should be:
>
> host->reset = devm_reset_control_get_optional_exclusive(&pdev->dev,
> "hrst");
> if (IS_ERR(host->reset))
> return PTR_ERR(host->reset);
>
>With these two changes,
>
>Reviewed-by: Philipp Zabel <p.zabel@...gutronix.de>
regards Frank
Powered by blists - more mailing lists