Received: by 10.192.165.148 with SMTP id m20csp2493156imm; Sun, 22 Apr 2018 08:09:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+cBX6z7cDjSIl9xrA0ybM50ZodOPzxPsLQnx4jj36bSYzIQ4+XfqVLbv16VSsV8S4K2USQ X-Received: by 10.101.78.134 with SMTP id b6mr14059069pgs.392.1524409772218; Sun, 22 Apr 2018 08:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524409772; cv=none; d=google.com; s=arc-20160816; b=LR+/YbOzoj2xokOnxJmqDZcUGLOi6PhrEQSBlV5Dk7Pvthr8JsgsKKCmkRr38lJYTK EvTCE9g/llw+7Liw8AJAzd58GBNN2gF95+1S14Q3A8YjVYHUBkz9gP2hvTSyr6Qbx3TD EexPLzVupysxSBKWvQYpx75i7PrrmJU0BmX+48GKvzkfU/v/GFopaYXocxSgm16SOKya 6nyNEtFEsyoMmRuRB4HLyBI5QDogMyOtpcHUtJ2PHej6se/iUeyraRc0BM0jYoCMRXrA HzRwQ9CVcWobo/D6Z/UG80UmX6oxSsa7umxQ4UXp7FSOvIoNCI8NsQHLbS79Srr0Uz+v +NFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=672FQMKbF6XikzFKMx3kINkSkMQTGynqajO2c0D3FcM=; b=UmNxVKy5NaJjsSeWWEAcjFh2V2FulX09jU20caGkbQdCjC+gNvY8bysqAsc5fb8E86 WeiXx4D4ebO0c/uomF7ZlEkpwktUIjvtF/DqRhcZiyuTGM1URFg2oor4SYnrjPFqyeq4 8C/SOXhGz2gfH0q8+AcMJhlxCQ2qfxtYlyQ6KeeIkWMnmgdmG0Fy4iw35zNZyJVgI/HN MDRE5VI4lO+KRXiJRer4BTSs5oGCnRB6F85R2nQwx24+1MklwOKqKgLlQJwBu8qA+hsP OHDGAl9qBHxXDsE6NGbC/tj281icaXad+FZoEZQ66Cw0IwJbT45ehFb2SeT9C/T6iL35 IFMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14-v6si4157618pli.250.2018.04.22.08.09.18; Sun, 22 Apr 2018 08:09:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755639AbeDVPIV (ORCPT + 99 others); Sun, 22 Apr 2018 11:08:21 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54226 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756449AbeDVOLN (ORCPT ); Sun, 22 Apr 2018 10:11:13 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C41C1CB0; Sun, 22 Apr 2018 14:11:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felipe Balbi Subject: [PATCH 4.9 11/95] usb: gadget: udc: core: update usb_ep_queue() documentation Date: Sun, 22 Apr 2018 15:52:40 +0200 Message-Id: <20180422135210.885025428@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135210.432103639@linuxfoundation.org> References: <20180422135210.432103639@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felipe Balbi commit eaa358c7790338d83bb6a31258bdc077de120414 upstream. Mention that ->complete() should never be called from within usb_ep_queue(). Signed-off-by: Felipe Balbi Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/core.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -248,6 +248,9 @@ EXPORT_SYMBOL_GPL(usb_ep_free_request); * arranges to poll once per interval, and the gadget driver usually will * have queued some data to transfer at that time. * + * Note that @req's ->complete() callback must never be called from + * within usb_ep_queue() as that can create deadlock situations. + * * Returns zero, or a negative error code. Endpoints that are not enabled * report errors; errors will also be * reported when the usb peripheral is disconnected.