mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Moese <michael.moese@men.de>
To: <jthumshirn@suse.de>
Cc: <linux-kernel@vger.kernel.org>, Michael Moese <michael.moese@men.de>
Subject: [Add PCI DMA support to MCB 2/2] Add a dma_device to mcb_device
Date: Mon, 29 Aug 2016 14:08:23 +0200	[thread overview]
Message-ID: <d07553eb4c5ac9548dadf38276725da12e6eac86.1472470255.git.michael.moese@men.de> (raw)
In-Reply-To: <cover.1472470255.git.michael.moese@men.de>

Signed-off-by: Michael Moese <michael.moese@men.de>
---
 drivers/mcb/mcb-core.c | 1 +
 include/linux/mcb.h    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c
index 5306966..e74bfea 100644
--- a/drivers/mcb/mcb-core.c
+++ b/drivers/mcb/mcb-core.c
@@ -233,6 +233,7 @@ int mcb_device_register(struct mcb_bus *bus, struct mcb_device *dev)
 	dev->dev.bus = &mcb_bus_type;
 	dev->dev.parent = bus->dev.parent;
 	dev->dev.release = mcb_release_dev;
+	dev->dma_device = bus->carrier;
 
 	device_id = dev->id;
 	dev_set_name(&dev->dev, "mcb%d-16z%03d-%d:%d:%d",
diff --git a/include/linux/mcb.h b/include/linux/mcb.h
index ee5200d..4097ac9 100644
--- a/include/linux/mcb.h
+++ b/include/linux/mcb.h
@@ -76,6 +76,7 @@ struct mcb_device {
 	int rev;
 	struct resource irq;
 	struct resource mem;
+	struct device *dma_dev;
 };
 
 static inline struct mcb_device *to_mcb_device(struct device *dev)
-- 
2.6.6

  parent reply	other threads:[~2016-08-29 12:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29 12:08 [Add PCI DMA support to MCB 0/2] Michael Moese
2016-08-29 12:08 ` [Add PCI DMA support to MCB 1/2] Enable PCI bus mastering by default Michael Moese
2016-08-29 12:08 ` Michael Moese [this message]
2016-08-29 12:25 ` [Add PCI DMA support to MCB 0/2] michael.moese

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=d07553eb4c5ac9548dadf38276725da12e6eac86.1472470255.git.michael.moese@men.de \
    --to=michael.moese@men.de \
    --cc=jthumshirn@suse.de \
    --cc=linux-kernel@vger.kernel.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 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®