Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, tiwai@suse.de,
	liam.r.girdwood@linux.intel.com, patches.audio@intel.com,
	Jeeja KP <jeeja.kp@intel.com>,
	"Subhransu S. Prusty" <subhransu.s.prusty@intel.com>
Subject: Re: [PATCH v7 2/4] ASoC: Intel - add Skylake HDA audio driver
Date: Thu, 9 Jul 2015 09:53:33 +0530	[thread overview]
Message-ID: <20150709042333.GE836@localhost> (raw)
In-Reply-To: <20150708190114.GE11162@sirena.org.uk>


[-- Attachment #1.1: Type: text/plain, Size: 1239 bytes --]

On Wed, Jul 08, 2015 at 08:01:14PM +0100, Mark Brown wrote:
> On Mon, Jul 06, 2015 at 08:54:24AM +0530, Vinod Koul wrote:
> 
> > +static irqreturn_t skl_interrupt(int irq, void *dev_id)
> > +{
> > +	struct hdac_ext_bus *ebus = dev_id;
> > +	struct hdac_bus *bus = ebus_to_hbus(ebus);
> > +	u32 status;
> > +
> > +#ifdef CONFIG_PM
> > +	if (!pm_runtime_active(bus->dev))
> > +		return IRQ_NONE;
> > +#endif
> 
> There's a stub for pm_runtime_active for !PM which does the right thing
> here, no need for ifdefs.

Ah yes, I will fix it here and as well as HDA driver :)
 
> > +	/*configure PM */
> > +	pm_runtime_set_autosuspend_delay(bus->dev, SKL_SUSPEND_DELAY);
> > +	pm_runtime_use_autosuspend(bus->dev);
> > +	pm_runtime_put_noidle(bus->dev);
> > +	pm_runtime_allow(bus->dev);
> > +
> > +	pci_set_drvdata(skl->pci, ebus);
> 
> Shouldn't you be setting the driver data before you register the device
> and enable PM?  Otherwise the PM callbacks might run without it being
> set.
Right, will update

> 
> > +out_free:
> > +	skl->init_failed = 1;
> > +	skl_free(ebus);
> > +	pci_set_drvdata(skl->pci, NULL);
> 
> No need to set the driver data to NULL, the driver core will do it.
Ok

-- 
~Vinod

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2015-07-09  4:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  3:24 [PATCH v7 0/4] ASoC: intel - add skylake PCM driver Vinod Koul
2015-07-06  3:24 ` [PATCH v7 1/4] ASoC: Intel: add Skylake HDA platform driver Vinod Koul
2015-07-08 18:56   ` Mark Brown
2015-07-09  4:20     ` Vinod Koul
2015-07-06  3:24 ` [PATCH v7 2/4] ASoC: Intel - add Skylake HDA audio driver Vinod Koul
2015-07-08 19:01   ` Mark Brown
2015-07-09  4:23     ` Vinod Koul [this message]
2015-07-06  3:24 ` [PATCH v7 3/4] ASoC: Intel - add makefile support for SKL driver Vinod Koul
2015-07-06  3:24 ` [PATCH v7 4/4] ASoC: intel - adds support for decoupled mode in skl driver Vinod Koul

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=20150709042333.GE836@localhost \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jeeja.kp@intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=patches.audio@intel.com \
    --cc=subhransu.s.prusty@intel.com \
    --cc=tiwai@suse.de \
    /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