From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] Fix mis-reporting USB Mode on sysfs Date: Thu, 3 May 2007 20:11:59 +0000 Message-ID: <20070503201158.GJ28985@atomide.com> References: <31e679430705031244rc7018b8o5cf0025e63058b3b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <31e679430705031244rc7018b8o5cf0025e63058b3b@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: Felipe Balbi Cc: Linux-OMAP List-Id: linux-omap@vger.kernel.org * Felipe Balbi [070503 19:45]: > This small patch fixes the mode reporting on sysfs. > Whithout this, we will always see the device as in > otg mode. Hmmm, it should not be necessary to change the mode here as if the mode changes, the interrupt should set it correctly. Maybe should have some additional modes though: host peripheral otg_host otg_peripheral I guess host and peripheral should be possible to compile in without OTG eventually. And if just say otg, we don't know if it's currently host or peripheral. Tony