From: Adrian Hunter <adrian.hunter@intel.com>
To: Vinod Koul <vkoul@infradead.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
vinod.koul@intel.com, Dan Williams <dan.j.williams@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
Kristen Carlson Accardi <kristen@linux.intel.com>
Subject: Re: [PATCH 3/3] dmaengine: intel_mid_dma: remove legacy pm interface
Date: Tue, 20 Dec 2011 11:29:07 +0200 [thread overview]
Message-ID: <4EF05563.8070203@intel.com> (raw)
In-Reply-To: <1324372396.1641.10064.camel@vkoul-udesk3>
On 20/12/11 11:13, Vinod Koul wrote:
> On Fri, 2011-12-16 at 11:01 +0200, Adrian Hunter wrote:
>> From: Kristen Carlson Accardi <kristen@linux.intel.com>
>>
>> Drivers should not support both legacy pm and new framework.
>>
>> Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
> There seems to be a similar patch from Kristen sent by Alan??
Apologies to all.
The patches are identical except for subject and signed-off.
Please take Alan's.
>
>> ---
>> drivers/dma/intel_mid_dma.c | 12 +++++++-----
>> drivers/dma/intel_mid_dma_regs.h | 2 +-
>> 2 files changed, 8 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
>> index bbcd470..74f70aa 100644
>> --- a/drivers/dma/intel_mid_dma.c
>> +++ b/drivers/dma/intel_mid_dma.c
>> @@ -873,7 +873,7 @@ static int intel_mid_dma_alloc_chan_resources(struct dma_chan *chan)
>> pm_runtime_get_sync(&mid->pdev->dev);
>>
>> if (mid->state == SUSPENDED) {
>> - if (dma_resume(mid->pdev)) {
>> + if (dma_resume(&mid->pdev->dev)) {
>> pr_err("ERR_MDMA: resume failed");
>> return -EFAULT;
>> }
>> @@ -1346,8 +1346,9 @@ static void __devexit intel_mid_dma_remove(struct pci_dev *pdev)
>> *
>> * This function is called by OS when a power event occurs
>> */
>> -int dma_suspend(struct pci_dev *pci, pm_message_t state)
>> +static int dma_suspend(struct device *dev)
>> {
>> + struct pci_dev *pci = to_pci_dev(dev);
>> int i;
>> struct middma_device *device = pci_get_drvdata(pci);
>> pr_debug("MDMA: dma_suspend called\n");
>> @@ -1371,8 +1372,9 @@ int dma_suspend(struct pci_dev *pci, pm_message_t state)
>> *
>> * This function is called by OS when a power event occurs
>> */
>> -int dma_resume(struct pci_dev *pci)
>> +int dma_resume(struct device *dev)
>> {
>> + struct pci_dev *pci = to_pci_dev(dev);
>> int ret;
>> struct middma_device *device = pci_get_drvdata(pci);
>>
>> @@ -1438,6 +1440,8 @@ static const struct dev_pm_ops intel_mid_dma_pm = {
>> .runtime_suspend = dma_runtime_suspend,
>> .runtime_resume = dma_runtime_resume,
>> .runtime_idle = dma_runtime_idle,
>> + .suspend = dma_suspend,
>> + .resume = dma_resume,
>> };
>>
>> static struct pci_driver intel_mid_dma_pci_driver = {
>> @@ -1446,8 +1450,6 @@ static struct pci_driver intel_mid_dma_pci_driver = {
>> .probe = intel_mid_dma_probe,
>> .remove = __devexit_p(intel_mid_dma_remove),
>> #ifdef CONFIG_PM
>> - .suspend = dma_suspend,
>> - .resume = dma_resume,
>> .driver = {
>> .pm = &intel_mid_dma_pm,
>> },
>> diff --git a/drivers/dma/intel_mid_dma_regs.h b/drivers/dma/intel_mid_dma_regs.h
>> index c6de919..c83d35b 100644
>> --- a/drivers/dma/intel_mid_dma_regs.h
>> +++ b/drivers/dma/intel_mid_dma_regs.h
>> @@ -296,6 +296,6 @@ static inline struct intel_mid_dma_slave *to_intel_mid_dma_slave
>> }
>>
>>
>> -int dma_resume(struct pci_dev *pci);
>> +int dma_resume(struct device *dev);
>>
>> #endif /*__INTEL_MID_DMAC_REGS_H__*/
>
>
>
>
next prev parent reply other threads:[~2011-12-20 9:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 9:01 [PATCH 0/3] dmaengine: intel_mid_dma: fixes Adrian Hunter
2011-12-16 9:01 ` [PATCH 1/3] dmaengine: intel_mid_dma: locking and freeing fixes Adrian Hunter
2011-12-16 9:01 ` [PATCH 2/3] dmaengine: intel_mid_dma: error path fix Adrian Hunter
2011-12-16 9:01 ` [PATCH 3/3] dmaengine: intel_mid_dma: remove legacy pm interface Adrian Hunter
2011-12-20 9:13 ` Vinod Koul
2011-12-20 9:29 ` Adrian Hunter [this message]
2011-12-20 10:56 ` Alan Cox
2011-12-23 16:34 ` [PATCH 0/3] dmaengine: intel_mid_dma: fixes 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=4EF05563.8070203@intel.com \
--to=adrian.hunter@intel.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dan.j.williams@intel.com \
--cc=kristen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vinod.koul@intel.com \
--cc=vkoul@infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.