From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: broonie@kernel.org, lgirdwood@gmail.com, sbkim73@samsung.com,
Marek Szyprowski <m.szyprowski@samsung.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ASoC: samsung: i2s: Fix the secondary platform device registration
Date: Mon, 18 Feb 2019 12:41:10 +0100 [thread overview]
Message-ID: <36e84820-f75a-4dbb-e148-1aebad0d26ba@samsung.com> (raw)
In-Reply-To: <CAJKOXPdViVjS9ZzbBy94+UPK6-DEbCdPx-vsAa-SvrntyNunAA@mail.gmail.com>
On 2/18/19 09:31, Krzysztof Kozlowski wrote:
> On Fri, 15 Feb 2019 at 15:48, Sylwester Nawrocki <s.nawrocki@samsung.com> wrote:
>> diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
>> index 6bf0f55d1e51..e36c44e2f1bb 100644
>> --- a/sound/soc/samsung/i2s.c
>> +++ b/sound/soc/samsung/i2s.c
>> @@ -1359,11 +1359,10 @@ static int i2s_create_secondary_device(struct samsung_i2s_priv *priv)
>>
>> static void i2s_delete_secondary_device(struct samsung_i2s_priv *priv)
>> {
>> - if (priv->pdev_sec) {
>> - platform_device_del(priv->pdev_sec);
>> - priv->pdev_sec = NULL;
>> - }
>> + platform_device_unregister(priv->pdev_sec);
>> + priv->pdev_sec = NULL;
>
> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
>
> Although I think that you might need to re-order calls in
> samsung_i2s_remove(). In general they should be in exact reverse order
> of probe(). In this case, clk_disable_unprepare(priv->clk) should be
> after unregistering secondary device. If order has to be different
> because of some reasons - could you document them in comment?
Makes sense, I will change the order and resend both patches.
Thanks,
Sylwester
prev parent reply other threads:[~2019-02-18 11:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190215144822epcas2p4a6187a4e4d45c7ac3ea067ac428b3678@epcas2p4.samsung.com>
2019-02-15 14:48 ` Sylwester Nawrocki
[not found] ` <CGME20190215144828epcas2p267aae592d0ebaaaa297ba1543463c204@epcas2p2.samsung.com>
2019-02-15 14:48 ` [PATCH 2/2] ASoC: samsung: i2s: Fix multiple "IIS multi" devices initialization Sylwester Nawrocki
2019-02-18 11:00 ` Krzysztof Kozlowski
2019-02-18 11:33 ` Sylwester Nawrocki
2019-02-18 11:17 ` Krzysztof Kozlowski
2019-02-18 8:31 ` [PATCH 1/2] ASoC: samsung: i2s: Fix the secondary platform device registration Krzysztof Kozlowski
2019-02-18 11:41 ` Sylwester Nawrocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36e84820-f75a-4dbb-e148-1aebad0d26ba@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=sbkim73@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®