* omap5: dwc3 interface status in /sys
@ 2018-09-17 8:24 H. Nikolaus Schaller
2018-10-16 9:29 ` H. Nikolaus Schaller
0 siblings, 1 reply; 5+ messages in thread
From: H. Nikolaus Schaller @ 2018-09-17 8:24 UTC (permalink / raw)
To: Felipe Balbi, Roger Quadros; +Cc: LKML, linux-omap
Hi Felipe,
I have made otg mode work on the omap5-uevm with help from Roger
and now I wonder how to read the interface status for GUI display.
On omap3/twl4030 systems we can simply read
/sys/bus/platform/devices/musb-hdrc.0.auto/mode
and get reports e.g. "b_peripheral", "a_host", "b_idle" etc. which can easily
be translated into icons for GUI display.
We have not found a similar attribute for dwc3 (except part of this information
in
/sys/kernel/debug/4a030000.dwc3
but mounting debugfs for GUI purposes isn't a good idea).
So do you think it is possible to provide such information to
/sys/devices/platform/44000000.ocp/4a020000.omap_dwc3/4a030000.dwc3?
BR,
Nikolaus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: omap5: dwc3 interface status in /sys
2018-09-17 8:24 omap5: dwc3 interface status in /sys H. Nikolaus Schaller
@ 2018-10-16 9:29 ` H. Nikolaus Schaller
2018-10-16 10:27 ` Roger Quadros
0 siblings, 1 reply; 5+ messages in thread
From: H. Nikolaus Schaller @ 2018-10-16 9:29 UTC (permalink / raw)
To: Felipe Balbi
Cc: LKML, linux-omap, Roger Quadros, kernel,
Discussions about the Letux Kernel
Hi,
> Am 17.09.2018 um 10:24 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
>
> Hi Felipe,
> I have made otg mode work on the omap5-uevm with help from Roger
> and now I wonder how to read the interface status for GUI display.
>
> On omap3/twl4030 systems we can simply read
>
> /sys/bus/platform/devices/musb-hdrc.0.auto/mode
>
> and get reports e.g. "b_peripheral", "a_host", "b_idle" etc. which can easily
> be translated into icons for GUI display.
>
> We have not found a similar attribute for dwc3 (except part of this information
> in
>
> /sys/kernel/debug/4a030000.dwc3
>
> but mounting debugfs for GUI purposes isn't a good idea).
>
> So do you think it is possible to provide such information to
>
> /sys/devices/platform/44000000.ocp/4a020000.omap_dwc3/4a030000.dwc3?
any suggestions?
BR and thanks,
Nikolaus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: omap5: dwc3 interface status in /sys
2018-10-16 9:29 ` H. Nikolaus Schaller
@ 2018-10-16 10:27 ` Roger Quadros
2018-10-18 10:50 ` Felipe Balbi
0 siblings, 1 reply; 5+ messages in thread
From: Roger Quadros @ 2018-10-16 10:27 UTC (permalink / raw)
To: H. Nikolaus Schaller, Felipe Balbi
Cc: LKML, linux-omap, kernel, Discussions about the Letux Kernel
Felipe,
On 16/10/2018 12:29, H. Nikolaus Schaller wrote:
> Hi,
>
>> Am 17.09.2018 um 10:24 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
>>
>> Hi Felipe,
>> I have made otg mode work on the omap5-uevm with help from Roger
>> and now I wonder how to read the interface status for GUI display.
>>
>> On omap3/twl4030 systems we can simply read
>>
>> /sys/bus/platform/devices/musb-hdrc.0.auto/mode
>>
>> and get reports e.g. "b_peripheral", "a_host", "b_idle" etc. which can easily
>> be translated into icons for GUI display.
>>
>> We have not found a similar attribute for dwc3 (except part of this information
>> in
>>
>> /sys/kernel/debug/4a030000.dwc3
>>
>> but mounting debugfs for GUI purposes isn't a good idea).
>>
>> So do you think it is possible to provide such information to
>>
>> /sys/devices/platform/44000000.ocp/4a020000.omap_dwc3/4a030000.dwc3?
>
> any suggestions?
This question is not specific to omap5.
What is your opinion? If you think it is OK, I can provide a patch for it.
cheers,
-roger
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: omap5: dwc3 interface status in /sys
2018-10-16 10:27 ` Roger Quadros
@ 2018-10-18 10:50 ` Felipe Balbi
2018-10-18 10:57 ` Roger Quadros
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2018-10-18 10:50 UTC (permalink / raw)
To: Roger Quadros
Cc: hns, Kernel development list, Linux OMAP Mailing List, kernel,
letux-kernel
Hi,
On Tue, Oct 16, 2018 at 1:27 PM Roger Quadros <rogerq@ti.com> wrote:
>
> Felipe,
>
> On 16/10/2018 12:29, H. Nikolaus Schaller wrote:
> > Hi,
> >
> >> Am 17.09.2018 um 10:24 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
> >>
> >> Hi Felipe,
> >> I have made otg mode work on the omap5-uevm with help from Roger
> >> and now I wonder how to read the interface status for GUI display.
> >>
> >> On omap3/twl4030 systems we can simply read
> >>
> >> /sys/bus/platform/devices/musb-hdrc.0.auto/mode
> >>
> >> and get reports e.g. "b_peripheral", "a_host", "b_idle" etc. which can easily
> >> be translated into icons for GUI display.
> >>
> >> We have not found a similar attribute for dwc3 (except part of this information
> >> in
> >>
> >> /sys/kernel/debug/4a030000.dwc3
> >>
> >> but mounting debugfs for GUI purposes isn't a good idea).
> >>
> >> So do you think it is possible to provide such information to
> >>
> >> /sys/devices/platform/44000000.ocp/4a020000.omap_dwc3/4a030000.dwc3?
> >
> > any suggestions?
>
> This question is not specific to omap5.
> What is your opinion? If you think it is OK, I can provide a patch for it.
sounds like this should be part of DRD/OTG core, no?
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: omap5: dwc3 interface status in /sys
2018-10-18 10:50 ` Felipe Balbi
@ 2018-10-18 10:57 ` Roger Quadros
0 siblings, 0 replies; 5+ messages in thread
From: Roger Quadros @ 2018-10-18 10:57 UTC (permalink / raw)
To: Felipe Balbi
Cc: hns, Kernel development list, Linux OMAP Mailing List, kernel,
letux-kernel
On 18/10/2018 13:50, Felipe Balbi wrote:
> Hi,
>
> On Tue, Oct 16, 2018 at 1:27 PM Roger Quadros <rogerq@ti.com> wrote:
>>
>> Felipe,
>>
>> On 16/10/2018 12:29, H. Nikolaus Schaller wrote:
>>> Hi,
>>>
>>>> Am 17.09.2018 um 10:24 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
>>>>
>>>> Hi Felipe,
>>>> I have made otg mode work on the omap5-uevm with help from Roger
>>>> and now I wonder how to read the interface status for GUI display.
>>>>
>>>> On omap3/twl4030 systems we can simply read
>>>>
>>>> /sys/bus/platform/devices/musb-hdrc.0.auto/mode
>>>>
>>>> and get reports e.g. "b_peripheral", "a_host", "b_idle" etc. which can easily
>>>> be translated into icons for GUI display.
>>>>
>>>> We have not found a similar attribute for dwc3 (except part of this information
>>>> in
>>>>
>>>> /sys/kernel/debug/4a030000.dwc3
>>>>
>>>> but mounting debugfs for GUI purposes isn't a good idea).
>>>>
>>>> So do you think it is possible to provide such information to
>>>>
>>>> /sys/devices/platform/44000000.ocp/4a020000.omap_dwc3/4a030000.dwc3?
>>>
>>> any suggestions?
>>
>> This question is not specific to omap5.
>> What is your opinion? If you think it is OK, I can provide a patch for it.
>
> sounds like this should be part of DRD/OTG core, no?
Yes Felipe.
--
cheers,
-roger
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-10-18 10:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 8:24 omap5: dwc3 interface status in /sys H. Nikolaus Schaller
2018-10-16 9:29 ` H. Nikolaus Schaller
2018-10-16 10:27 ` Roger Quadros
2018-10-18 10:50 ` Felipe Balbi
2018-10-18 10:57 ` Roger Quadros
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).