From patchwork Fri Aug 10 19:32:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Stern X-Patchwork-Id: 10563105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1CD7013BB for ; Fri, 10 Aug 2018 19:32:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B1282B377 for ; Fri, 10 Aug 2018 19:32:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3AC12B575; Fri, 10 Aug 2018 19:32:13 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 EB9FD2B377 for ; Fri, 10 Aug 2018 19:32:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726781AbeHJWDY (ORCPT ); Fri, 10 Aug 2018 18:03:24 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:58392 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726446AbeHJWDY (ORCPT ); Fri, 10 Aug 2018 18:03:24 -0400 Received: (qmail 5026 invoked by uid 2102); 10 Aug 2018 15:32:10 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Aug 2018 15:32:10 -0400 Date: Fri, 10 Aug 2018 15:32:10 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Felipe Balbi cc: USB list Subject: [PATCH 0/2] USB: gadget core: Call ->disconnect() from usb_gadget_disconnect() Message-ID: MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Felipe: The following patches concern ->disconnect() callbacks made when a gadget's D+ pullup is turned off. Currently we don't have a fixed rule for such callbacks. The first patch makes usb_gadget_disconnect() issue the callback automatically, so that it will always happen and UDC drivers don't need to worry about it. The second patch removes a callback from net2280's pullup routine, because it is now unneeded. Other UDC drivers may also need to have their callbacks removed; the only one I have checked is dummy-hcd (which is okay). Alan Stern