linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC8323 USB Host
@ 2009-09-14 12:49 spa_kk
  2009-09-14 13:59 ` Anton Vorontsov
  0 siblings, 1 reply; 3+ messages in thread
From: spa_kk @ 2009-09-14 12:49 UTC (permalink / raw)
  To: linuxppc-dev


Hello,
 
This is regarding the MPC8323 in-built USB controller driver,
Environment:
LTIB: ltib-mpc832x_rdb-20070507
Linux: linux-2.6.20
In built usb driver is been ported from linux-2.6.30 to linux-2.6.20
(File: drivers/usb/host/fhci-hcd.c is been ported from
kernel.org/linux-2.6.30)
 
Problem description:
File: "drivers/usb/host/fhci-hcd.c "
In this file probe function:
of_fhci_probe(struct of_device *ofdev, const struct of_device_id *ofid)
is getting loaded successfully &  
FHCI Host Controller, interrupt and timer are getting registered
 
File:"drivers/usb/host/fhci-hub.c"
In this file function 
fhci_hub_status_data(struct usb_hcd *hcd, char *buf) 
is been polled continuosly, which is checking for the port change and port
status of the our virtual hub using
fhci->vroot_hub->port.wPortChange &
fhci->vroot_hub->port.wPortStatus
 
The value in this variable are not getting changed even after connecting &
disconnection the device. 
 
We have manual checked the USBRXP pin, this pin is 
HIGH => when device is connected
LOW => when device is not connected.
 
Kindly let us know how should we debug/proceed.
 
Thanks and regards,
Krishna kumar M.S & Arif
-- 
View this message in context: http://www.nabble.com/MPC8323-USB-Host-tp25435195p25435195.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MPC8323 USB Host
  2009-09-14 12:49 MPC8323 USB Host spa_kk
@ 2009-09-14 13:59 ` Anton Vorontsov
  2009-09-15  5:45   ` spa_kk
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Vorontsov @ 2009-09-14 13:59 UTC (permalink / raw)
  To: spa_kk; +Cc: linuxppc-dev

Hello,

On Mon, Sep 14, 2009 at 05:49:01AM -0700, spa_kk wrote:
> 
> Hello,
[...]
> The value in this variable are not getting changed even after connecting &
> disconnection the device.

Could be pins multiplexing or USB clocks misconfiguration.

> We have manual checked the USBRXP pin, this pin is 
> HIGH => when device is connected
> LOW => when device is not connected.
>  
> Kindly let us know how should we debug/proceed.

You might find this useful:

http://lkml.org/lkml/2009/4/1/481

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MPC8323 USB Host
  2009-09-14 13:59 ` Anton Vorontsov
@ 2009-09-15  5:45   ` spa_kk
  0 siblings, 0 replies; 3+ messages in thread
From: spa_kk @ 2009-09-15  5:45 UTC (permalink / raw)
  To: linuxppc-dev


Hi,
Thanks for the suggestion,
pins & clock configuration seems to be ok,
Need a help in understanding which register of MPC8323 is been mapped to 
fhci->vroot_hub->port.wPortChange & 
fhci->vroot_hub->port.wPortStatus
As this are the variable which is been checked while polling

File: "drivers/usb/host/fhci.h"
struct virtual_root_hub {
    int dev_num;    /* USB address of the root hub */
    u32 feature;    /* indicates what feature has been set */
    struct usb_hub_status hub;
    struct usb_port_status port;
};

File: "drivers/usb/core/hub.h"
/*
 * Hub Status and Hub Change results
 * See USB 2.0 spec Table 11-19 and Table 11-20
 */
struct usb_port_status {
    __le16 wPortStatus;
    __le16 wPortChange;
} __attribute__ ((packed));

struct usb_hub_status {
    __le16 wHubStatus;
    __le16 wHubChange;
} __attribute__ ((packed));

Need support in understand where is virtual_root_hub.hub and
virtual_root_hub.port are initialized

Thanks and best regards,
Krishna


Anton Vorontsov-2 wrote:
> 
> Hello,
> 
> On Mon, Sep 14, 2009 at 05:49:01AM -0700, spa_kk wrote:
>> 
>> Hello,
> [...]
>> The value in this variable are not getting changed even after connecting
>> &
>> disconnection the device.
> 
> Could be pins multiplexing or USB clocks misconfiguration.
> 
>> We have manual checked the USBRXP pin, this pin is 
>> HIGH => when device is connected
>> LOW => when device is not connected.
>>  
>> Kindly let us know how should we debug/proceed.
> 
> You might find this useful:
> 
> http://lkml.org/lkml/2009/4/1/481
> 
> -- 
> Anton Vorontsov
> email: cbouatmailru@gmail.com
> irc://irc.freenode.net/bd2
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/MPC8323-USB-Host-tp25435195p25448161.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-15  5:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14 12:49 MPC8323 USB Host spa_kk
2009-09-14 13:59 ` Anton Vorontsov
2009-09-15  5:45   ` spa_kk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).