From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Felipe Balbi <balbi@ti.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Alan Cox <alan@linux.intel.com>,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 2/4] ACPI / platform: provide default DMA mask
Date: Tue, 23 Sep 2014 16:52:01 +0200 [thread overview]
Message-ID: <1487657.QLes1WRKBI@vostro.rjw.lan> (raw)
In-Reply-To: <20140923121712.GD18814@xps8300>
On Tuesday, September 23, 2014 03:17:12 PM Heikki Krogerus wrote:
> On Wed, Aug 20, 2014 at 02:55:26PM +0300, Heikki Krogerus wrote:
> > Most devices are configured for 32-bit DMA addresses.
> > Setting the mask to 32-bit here removes the need for the
> > drivers to do it separately.
>
> Rafael, is this OK?
Fine by me, but it should go in via dwc3 I think.
> > Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> > ---
> > drivers/acpi/acpi_platform.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c
> > index 2bf9082..8d099e6 100644
> > --- a/drivers/acpi/acpi_platform.c
> > +++ b/drivers/acpi/acpi_platform.c
> > @@ -16,6 +16,7 @@
> > #include <linux/err.h>
> > #include <linux/kernel.h>
> > #include <linux/module.h>
> > +#include <linux/dma-mapping.h>
> > #include <linux/platform_device.h>
> >
> > #include "internal.h"
> > @@ -102,6 +103,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev)
> > pdevinfo.res = resources;
> > pdevinfo.num_res = count;
> > pdevinfo.acpi_node.companion = adev;
> > + pdevinfo.dma_mask = DMA_BIT_MASK(32);
> > pdev = platform_device_register_full(&pdevinfo);
> > if (IS_ERR(pdev))
> > dev_err(&adev->dev, "platform device creation failed: %ld\n",
>
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2014-09-23 14:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 11:55 [PATCH 0/4] usb: dwc3: ACPI support Heikki Krogerus
2014-08-20 11:55 ` [PATCH 1/4] usb: dwc3: pci: Add PCI ID for Intel Braswell Heikki Krogerus
2014-08-20 11:55 ` [PATCH 2/4] ACPI / platform: provide default DMA mask Heikki Krogerus
2014-09-23 12:17 ` Heikki Krogerus
2014-09-23 14:52 ` Rafael J. Wysocki [this message]
2014-09-23 14:52 ` Felipe Balbi
2014-09-23 15:17 ` Rafael J. Wysocki
2014-09-23 15:29 ` Felipe Balbi
2014-09-23 16:05 ` Rafael J. Wysocki
2014-09-24 6:30 ` Heikki Krogerus
2014-08-20 11:55 ` [PATCH 3/4] usb: dwc3: core: only setting the dma_mask when needed Heikki Krogerus
2014-08-20 11:55 ` [PATCH 4/4] usb: dwc3: add ACPI support Heikki Krogerus
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=1487657.QLes1WRKBI@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=alan@linux.intel.com \
--cc=balbi@ti.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael.j.wysocki@intel.com \
/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