From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:37559 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757406AbbKSUoy (ORCPT ); Thu, 19 Nov 2015 15:44:54 -0500 From: Robert Jarzmik To: Felipe Balbi Cc: Linux USB Mailing List , "# v3 . 10+" Subject: Re: [PATCH] usb: gadget: pxa27x: fix suspend callback References: <8737w1942u.fsf@belgarion.home> <1447962673-21509-1-git-send-email-balbi@ti.com> Date: Thu, 19 Nov 2015 21:44:47 +0100 In-Reply-To: <1447962673-21509-1-git-send-email-balbi@ti.com> (Felipe Balbi's message of "Thu, 19 Nov 2015 13:51:13 -0600") Message-ID: <87y4dt7m80.fsf@belgarion.home> MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: Felipe Balbi writes: > pxa27x disconnects pullups on suspend but doesn't > notify the gadget driver about it, so gadget driver > can't disable the endpoints it was using. > > This causes problems on resume because gadget core > will think endpoints are still enabled and just > ignore the following usb_ep_enable(). > > Fix this problem by calling > gadget_driver->disconnect(). > > Cc: # v3.10+ > Signed-off-by: Felipe Balbi Tested-by: Robert Jarzmik Cheers. -- Robert