From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v2 6/6] ASoC: Intel: Skylake: remove call to pci_dev_put Date: Wed, 16 Mar 2016 12:35:08 +0100 Message-ID: References: <1458040168-3769-1-git-send-email-vinod.koul@intel.com> <1458040168-3769-7-git-send-email-vinod.koul@intel.com> <20160316100829.GS2566@sirena.org.uk> <20160316105244.GR13211@localhost> <20160316110310.GT2566@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id A6FBE265DE3 for ; Wed, 16 Mar 2016 12:35:09 +0100 (CET) In-Reply-To: <20160316110310.GT2566@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Vinod Koul , liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org, Jeeja KP , patches.audio@intel.com List-Id: alsa-devel@alsa-project.org On Wed, 16 Mar 2016 12:03:10 +0100, Mark Brown wrote: > > On Wed, Mar 16, 2016 at 04:22:44PM +0530, Vinod Koul wrote: > > On Wed, Mar 16, 2016 at 10:08:29AM +0000, Mark Brown wrote: > > > > Why is the fix for this not to call pci_dev_get()? > > > Why do I need either, I see no reason why driver should be doing this, > > so removed :) > > Well, the PCI documentation says that drivers are expected to record a > reference to their devices in probe(). This is a bit unusual given that > normally the driver core takes a reference to the device for us but > presumably there's some reason for this? Maybe the document is obsoleted. The PCI core, at least the probe / remove via the normal PCI bus, takes pci_dev_get() and pci_dev_put() already there. Takashi