From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Stam, Michel [FINT]" <M.Stam@fugro.nl>
Cc: barebox@lists.infradead.org
Subject: Re: Barebox x86 IDE support
Date: Tue, 25 Mar 2014 09:18:15 +0100 [thread overview]
Message-ID: <20140325081815.GM17250@pengutronix.de> (raw)
In-Reply-To: <C89EFD3CD56F64468D3D206D683A8D2203154121@ldam-msx2.fugro-nl.local>
Hi Michel,
On Mon, Mar 24, 2014 at 10:37:48AM +0100, Stam, Michel [FINT] wrote:
> Hello maintainers,
>
> I was wondering if one of you has had time to verify these patches and apply them to trunk?
Could you send the patches as a series so that it's easier to comment on
the patches on the list?
There are some things to comment on, I think the most important one is
this:
> +/*
> + * request an io region inside the io space
> + */
> +struct resource *request_io_region(const char *name,
> + resource_size_t start, resource_size_t end,int type)
> +{
> + return request_region(&iomem_resource, name, start, end, type);
> +}
>
You request here from the iomem resource, but ioports are a completely
separate resource, so you have to use a new toplevel resource like
this:
/* The root resource for the whole io space */
struct resource io_resource = {
.start = 0,
.end = 0xffffffff,
.name = "ioport",
.children = LIST_HEAD_INIT(io_resource.children),
};
/*
* request an io region inside the io space
*/
struct resource *request_io_region(const char *name,
resource_size_t start, resource_size_t end)
{
return request_region(&io_resource, name, start, end, IORESOURCE_IO);
}
The 'type' argument to request_io_region is unnecessary since the
function name already implies it, right?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-03-25 8:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 9:37 Stam, Michel [FINT]
2014-03-25 8:18 ` Sascha Hauer [this message]
2014-03-25 11:04 ` Michel Stam
-- strict thread matches above, loose matches on Subject: below --
2014-03-14 17:01 Stam, Michel [FINT]
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=20140325081815.GM17250@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=M.Stam@fugro.nl \
--cc=barebox@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox