lkml.org 
[lkml]   [2009]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/10] ehci-dbgp,ehci: Allow early or late use of the dbgp device
Alan Stern wrote:
> On Mon, 20 Jul 2009, Jason Wessel wrote:
>> + /* optional debug port, normally in the first BAR */
>> + temp = pci_find_capability(pdev, 0x0a);
>
> This isn't going to work very well on systems with non-PCI EHCI
> controllers. Maybe you should leave debug-port detection in
> ehci-pci.c. The controller doesn't get reset very much in any case.
>

I'll take a deeper look as to why it didn't work correctly where the
code was originally sitting. It had something to do with the reset
clearing the debug controller settings.

This chunk got moved prior to creating the reset_prep logic, so in all
likely hood it should go back to where it was, because we do want this
to work with the pci and non-pci case.

>> + if (!dbgp_reset_prep() || !(temp & DBGP_ENABLED))
>
> This sort of thing is better handled by defining dhbp_reset_prep() as
> an inline routine or macro always returning 1 if
> CONFIG_EARLY_PRINTK_DBGP isn't set.
>
>> + dbgp_external_startup();
>
> Similarly here, make dgbp_external_startup() an empty inline function
> or an empty macro.
>

Sure, I'll fix these for a round #2 after any other comments come back.

Thanks for the comments,
Jason.


\
 
 \ /
  Last update: 2009-07-20 23:41    [W:0.047 / U:18.300 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site