From: Mike Frysinger <vapier.adi@gmail.com>
To: Ben Dooks <ben-linux@fluff.org>
Cc: gregkh@suse.de, bigeasy@linuxtronix.de,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
Michael Hennerich <michael.hennerich@analog.com>,
Bryan Wu <cooloney@kernel.org>
Subject: Re: [PATCH] USB: isp1760: allow platform devices to customize devflags
Date: Tue, 23 Jun 2009 09:46:25 -0400 [thread overview]
Message-ID: <8bd0f97a0906230646l248aa5e2t2922a3ba7bdc19d9@mail.gmail.com> (raw)
In-Reply-To: <20090623133954.GA11764@fluff.org.uk>
On Tue, Jun 23, 2009 at 09:39, Ben Dooks wrote:
> On Tue, Jun 23, 2009 at 09:18:34AM -0400, Mike Frysinger wrote:
>> From: Michael Hennerich <michael.hennerich@analog.com>
>>
>> Platform device support was merged earlier, but support for boards to
>> customize the devflags aspect of the controller was not. We want this on
>> Blackfin systems to control the bus width, but might as well expose all of
>> the fields while we're at it.
>>
>> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
>> Signed-off-by: Bryan Wu <cooloney@kernel.org>
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>> ---
>> drivers/usb/host/isp1760-hcd.c | 4 ++++
>> drivers/usb/host/isp1760-hcd.h | 2 ++
>> drivers/usb/host/isp1760-if.c | 21 ++++++++++++++++++++-
>> include/linux/usb/isp1760.h | 18 ++++++++++++++++++
>> 4 files changed, 44 insertions(+), 1 deletions(-)
>> create mode 100644 include/linux/usb/isp1760.h
>>
>> diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c
>> index 1543846..9600a58 100644
>> --- a/drivers/usb/host/isp1760-hcd.c
>> +++ b/drivers/usb/host/isp1760-hcd.c
>> @@ -386,6 +386,10 @@ static int isp1760_hc_setup(struct usb_hcd *hcd)
>> hwmode |= HW_DACK_POL_HIGH;
>> if (priv->devflags & ISP1760_FLAG_DREQ_POL_HIGH)
>> hwmode |= HW_DREQ_POL_HIGH;
>> + if (priv->devflags & ISP1760_FLAG_INTR_POL_HIGH)
>> + hwmode |= HW_INTR_HIGH_ACT;
>> + if (priv->devflags & ISP1760_FLAG_INTR_EDGE_TRIG)
>> + hwmode |= HW_INTR_EDGE_TRIG;
>
> better move these to the irq resource flags from the resource array
> in the platfrom device.
dont really know what you mean. the setup() function is shared
between multiple bus types (pci/platform/...), so the bits cant really
be pushed from the setup() to the platform resources ...
-mike
next prev parent reply other threads:[~2009-06-23 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 13:18 Mike Frysinger
2009-06-23 13:39 ` Ben Dooks
2009-06-23 13:46 ` Mike Frysinger [this message]
2009-07-15 16:08 ` Mike Frysinger
2009-07-16 2:17 ` Greg KH
2009-07-16 2:29 ` Mike Frysinger
2009-07-16 3:03 ` Greg KH
2009-07-16 3:22 ` Mike Frysinger
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=8bd0f97a0906230646l248aa5e2t2922a3ba7bdc19d9@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=ben-linux@fluff.org \
--cc=bigeasy@linuxtronix.de \
--cc=cooloney@kernel.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=michael.hennerich@analog.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
all inboxes | Powered by JetHome®