lkml.org 
[lkml]   [2009]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] USB: isp1760: allow platform devices to customize devflags
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-06-23 15:49    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site