From patchwork Thu Jan 5 19:15:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 9499595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69C00606B5 for ; Thu, 5 Jan 2017 19:27:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50A612842D for ; Thu, 5 Jan 2017 19:27:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42DA628450; Thu, 5 Jan 2017 19:27:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7B0E269A3 for ; Thu, 5 Jan 2017 19:27:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763567AbdAET1J (ORCPT ); Thu, 5 Jan 2017 14:27:09 -0500 Received: from muru.com ([72.249.23.125]:55068 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760690AbdAET0H (ORCPT ); Thu, 5 Jan 2017 14:26:07 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 6120B82B7; Thu, 5 Jan 2017 19:16:22 +0000 (UTC) Date: Thu, 5 Jan 2017 11:15:45 -0800 From: Tony Lindgren To: Bin Liu Cc: Boris Brezillon , Greg Kroah-Hartman , Andreas Kemnade , Felipe Balbi , George Cherian , Kishon Vijay Abraham I , Ivaylo Dimitrov , Johan Hovold , Ladislav Michl , Laurent Pinchart , Sergei Shtylyov , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH] usb: musb: Add support for optional VBUS irq to dsps glue layer Message-ID: <20170105191544.GR4310@atomide.com> References: <20170105191259.28723-1-tony@atomide.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170105191259.28723-1-tony@atomide.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP * Tony Lindgren [170105 11:14]: > We can now configure the PMIC interrupt to provide us VBUS > events. In that case we don't need to constantly poll the > status and can make it optional. This is only wired up > for the mini-B interface on beaglebone. > > Note that eventually we should get also the connect status > for the host interface when the am335x internal PM coprocessor > provides us with an IRQ chip. For now, we still need to poll > for the host mode status. And here's a related patch I can queue separately to configure it. Regards, Tony 8< --------------------------------- From: Tony Lindgren Date: Tue, 27 Dec 2016 08:03:41 -0800 Subject: [PATCH] ARM: dts: Configure BeagleBone peripheral USB VBUS irq This prevents having to poll peripheral USB port cable status. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/am335x-bone-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -207,6 +207,8 @@ &usb0 { status = "okay"; dr_mode = "peripheral"; + interrupts-extended = <&intc 18 &tps 0>; + interrupt-names = "mc", "vbus"; }; &usb1 {