From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:1098 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750698Ab0LGFAU (ORCPT ); Tue, 7 Dec 2010 00:00:20 -0500 Message-ID: <4CFDBF5D.1060806@codeaurora.org> Date: Tue, 07 Dec 2010 10:30:13 +0530 From: Pavan Kondeti MIME-Version: 1.0 Subject: Re: [RFC 1/2] USB: Notify OTG errors to user space via uevents References: <1291639071-10862-1-git-send-email-pkondeti@codeaurora.org> <20101206155826.GD23214@kroah.com> <20101207035004.GA28875@kroah.com> <4CFDB606.9000107@codeaurora.org> <20101207044241.GC29392@kroah.com> In-Reply-To: <20101207044241.GC29392@kroah.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-arm-msm-owner@vger.kernel.org List-ID: To: Greg KH Cc: gregkh@suse.de, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org On 12/7/2010 10:12 AM, Greg KH wrote: >>> > > Please don't, this is NOT the way to get errors from the kernel back out >>> > > to userspace, because, as you have noted, this is not how any other >>> > > subsystem does it. >>> > > >> > Thanks for your feedback. Is there any other way kernel can send errors >> > to user space asynchronously? is /dev/ interface acceptable? > Andi Kleen was working on a unified error reporting system for the > kernel for things like this and other subsystems. Try working with him > on this as it sounds like it would be what you need. Thanks for your inputs. I have looked at Andi Kleen's "Unified error reporting -- A worthy goal?" But it talks mostly about platform errors. I will work with him and find out if we can use his approach for notifying OTG errors to user space. -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.