[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210305184944.GC4552@sirena.org.uk>
Date: Fri, 5 Mar 2021 18:49:44 +0000
From: Mark Brown <broonie@...nel.org>
To: Lucas Tanure <tanureal@...nsource.cirrus.com>
Cc: James Schulman <james.schulman@...rus.com>,
David Rhodes <david.rhodes@...rus.com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Richard Fitzgerald <rf@...nsource.cirrus.com>,
alsa-devel@...a-project.org, patches@...nsource.cirrus.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 06/15] ASoC: cs42l42: Remove power if the driver is
being removed
On Fri, Mar 05, 2021 at 05:34:33PM +0000, Lucas Tanure wrote:
> - /* Hold down reset */
> - gpiod_set_value_cansleep(cs42l42->reset_gpio, 0);
> + disable_irq(i2c_client->irq);
> + pm_runtime_suspend(&i2c_client->dev);
> + pm_runtime_disable(&i2c_client->dev);
You should be unregistering the interrupt, not disabling it - this will
better support any shared IRQ usage that appears and is much, much more
idiomatic.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists