All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@ti.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>,
	Felipe Balbi <balbi@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-omap <linux-omap@vger.kernel.org>,
	<kernel@pyra-handheld.com>,
	Discussions about the Letux Kernel 
	<letux-kernel@openphoenux.org>
Subject: Re: omap5: dwc3 interface status in /sys
Date: Tue, 16 Oct 2018 13:27:39 +0300	[thread overview]
Message-ID: <7a765a99-f273-e92c-1437-f3e5535fbaaf@ti.com> (raw)
In-Reply-To: <33FDF48F-4B64-4CE4-BC95-43BAB70B6C37@goldelico.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: Roger Quadros <rogerq@ti.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>,
	Felipe Balbi <balbi@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-omap <linux-omap@vger.kernel.org>,
	kernel@pyra-handheld.com,
	Discussions about the Letux Kernel <letux-kernel@openphoenux.org>
Subject: Re: omap5: dwc3 interface status in /sys
Date: Tue, 16 Oct 2018 13:27:39 +0300	[thread overview]
Message-ID: <7a765a99-f273-e92c-1437-f3e5535fbaaf@ti.com> (raw)
In-Reply-To: <33FDF48F-4B64-4CE4-BC95-43BAB70B6C37@goldelico.com>

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

  reply	other threads:[~2018-10-16 10:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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  9:29   ` H. Nikolaus Schaller
2018-10-16 10:27   ` Roger Quadros [this message]
2018-10-16 10:27     ` Roger Quadros
2018-10-18 10:50     ` Felipe Balbi
2018-10-18 10:57       ` Roger Quadros
2018-10-18 10:57         ` Roger Quadros

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a765a99-f273-e92c-1437-f3e5535fbaaf@ti.com \
    --to=rogerq@ti.com \
    --cc=balbi@kernel.org \
    --cc=hns@goldelico.com \
    --cc=kernel@pyra-handheld.com \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.