mmind00 has quit [Quit: No Ping reply in 180 seconds.]
stikonas has quit [Remote host closed the connection]
nashpa has quit [Ping timeout: 258 seconds]
nashpa has joined #linux-rockchip
vstehle has quit [Ping timeout: 268 seconds]
anarsoul|2 has quit [Ping timeout: 268 seconds]
via has quit [Ping timeout: 268 seconds]
via has joined #linux-rockchip
via has quit [Ping timeout: 268 seconds]
via has joined #linux-rockchip
aalm has quit [*.net *.split]
BenG83 has quit [*.net *.split]
akaizen has quit [*.net *.split]
beeble has quit [*.net *.split]
aalm has joined #linux-rockchip
field^Zzz4 has joined #linux-rockchip
field^Zzz3 has quit [Ping timeout: 268 seconds]
somy has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
lurchi_ has joined #linux-rockchip
lurchi_ has quit [Ping timeout: 240 seconds]
vstehle has joined #linux-rockchip
somy has quit [Remote host closed the connection]
matthias_bgg has joined #linux-rockchip
nsaenz has joined #linux-rockchip
<DuClare>
So uh
<DuClare>
There's pdata support in ehci-platform but from the looks of it, it's hardly used anywhere
<DuClare>
Is that right? Instead of defining platform data, the way of the land is to start with a tweaked copy of ehci-platform.c and call it a new driver?
<eballetbo[m]>
Hi, I'm having some problems trying to switch between USB roles on my kevin, trying to debug a little bit the issue and having a USB hub connected I just noticed that the driver of the usb phyter is reporting OTG_STATE_B_IDLE instead of OTG_STATE_A_HOST, that looks weird to me but the port is working ... anyone knows about this?
mmind00 has joined #linux-rockchip
BenG83 has joined #linux-rockchip
BenG83 has quit [Ping timeout: 268 seconds]
<DuClare>
mmind00: Am I going to make a copy of the ehci platform driver just so I can poke a register or two? Or do I add pdata?
<DuClare>
I get the impression that pdata is discouraged
<mmind00>
DuClare: I'd think the copy might be the way to go ... i.e. pdata is mostly from the time where boards where defined in c-board-files, so there isn't really a way to infer that from the devicetree
<DuClare>
Yea
<DuClare>
Kinda weird to see a whole bunch of these copies though.. especially since most of them do the same thing, more or less, and ehci-platform has most of the right hooks for the custom bits
<DuClare>
Another thing I worry about is how'd you differentiate between the different types of phy?
<DuClare>
phy-rockchip-usb assumes they are all alike, poking the same bits in each phy's corresponding register
<DuClare>
But that is not right for hsic
<mmind00>
DuClare: you want a separate phy-driver ... like phy-rockchip-hsic or so
<DuClare>
Aha
<mmind00>
DuClare: i.e. you can see multiple phys already ... phy-rockchip-usb is used for the Designware blocks, phy-rockchip-usb2 is used by the Innosilicon usb2 phys, etc
<DuClare>
I see
<mmind00>
(correction, phy-rockchip-inno-usb2 of course)
<DuClare>
I don't think I have any way to test or verify that any of the CONFIG_PM_SLEEP bits work properly.. so is it better to leave that code out entirely?
<mmind00>
DuClare: if it's just a copy of the generic ehci driver, you should be able to leave it in
<DuClare>
I guess it can be a straight copy, or a stripped down copy without all the parts that try to make it generic (and which don't really apply in this case)
<DuClare>
I don't know if it's cool to duplicate all the generic driver logic if it's never going to be used with this driver? Although I suppose the suspend parts could be left in
<mmind00>
DuClare: generic stuff like these then unused hook-function-calls should not be copied of course