Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2255610pxf; Sat, 27 Mar 2021 06:37:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOCxBWvq3M8o6fBWBPSppCAgqORQeQd44rQgf4ibxSR0bZluyV67tW0Ygpsgbef25xZFdN X-Received: by 2002:a17:906:c143:: with SMTP id dp3mr19937680ejc.499.1616852255798; Sat, 27 Mar 2021 06:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616852255; cv=none; d=google.com; s=arc-20160816; b=vUVwqvTFASGigGS6kJ5O+ZfxJ8W/4bilA6u5ESmNZTuBSj5n7SSxWpQTKlxXrR+ts0 LWWpaqjmzT6DDoB76su8Lp321KYo3orZOgliJ/nxxt7Bvu3bDkHatb0N75H10j14ublA dxJGeoBwqxuFXyQPGWexiXKLlAbE+GRSNPeqMxfVbrgl4i8jG31k08UDG8Lr0ldLYW3/ 2aVHMPlpAwV0FrCc05Af+EwPttuRKND1yAHtvCnXhgS5np5FHku+LONGRHuQSUDdlwy6 vCnhf6FDjGM5AixF4CQ7QgL2jBedVlIdg0mcOZVebcS7zSEaBcF/eny+SPapSX/1MXy6 SpoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DIyt7HTva1O4KxHWt8xO2hha3bYtqfmNg1V4ZNDehBY=; b=ns0aTvwBgxfHnIomScY5m/Z/xLDoROFNsZWtRqVVKsGafkI6wuYoswEqOPoPBqH0b3 oO0GH6qdRbQFHVfCYimYwmVbiuikEBi3EMcq5dPDIZlfcZwFOAh6OTstW/xmVTK9tsbJ ML/HoPxAawdJ9KKLXtQ+u0AIwqLBK5vdLWe4IS2WbWF69X9MyGBIBFmxLUReIHdWBLpp xNm1VO6Va7GP3jU7hGOwCsddrdxCkDwqotKdAo2ctin268VikN7fL4ytWGoLbNXeeMUO mEb/isYwJYa+TqCLmVTIVgZRZK3ciFm2n+2AHQL1sJnWd3g9Aa7sh7LngkKpboKFaGns PVnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ITLqQbDc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si8952551ejj.88.2021.03.27.06.37.12; Sat, 27 Mar 2021 06:37:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ITLqQbDc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbhC0NgE (ORCPT + 99 others); Sat, 27 Mar 2021 09:36:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:37858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhC0Nfb (ORCPT ); Sat, 27 Mar 2021 09:35:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3BF4E619B4; Sat, 27 Mar 2021 13:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616852130; bh=Nupl1h4L3SrvV6jeooPg4igwqzoBR9zVxBIfDnVt+Ws=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ITLqQbDcNg1pWJF9wcg8RmMX/7LtRW/YIho350gj34w4jlAhVkVBf2JdhrKrW+cw0 vg6RY0hxOogsN3GUC1pWxVCWE9uukKh7tvcNE2o4MYKpGgsKdMjmAnHocvACG/CuP9 r771hR11e5tzq4Ua/7p75ofXEgFdv7GswvPp0bxQ= Date: Sat, 27 Mar 2021 14:35:27 +0100 From: Greg KH To: Ray Chi Cc: balbi@kernel.org, Thinh.Nguyen@synopsys.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, albertccwang@google.com Subject: Re: [Patch v3] usb: dwc3: add cancelled reasons for dwc3 requests Message-ID: References: <20210327132202.1759953-1-raychi@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210327132202.1759953-1-raychi@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 27, 2021 at 09:22:02PM +0800, Ray Chi wrote: > Currently, when dwc3 handles request cancelled, dwc3 just returns > -ECONNRESET for all requests. It will cause USB function drivers > can't know if the requests are cancelled by other reasons. > > This patch will replace DWC3_REQUEST_STATUS_CANCELLED with the > reasons below. > - DWC3_REQUEST_STATUS_DISCONNECTED > - DWC3_REQUEST_STATUS_DEQUEUED > - DWC3_REQUEST_STATUS_STALLED > > Signed-off-by: Ray Chi > --- > drivers/usb/dwc3/core.h | 12 +++++++----- > drivers/usb/dwc3/gadget.c | 24 ++++++++++++++++++++---- > drivers/usb/dwc3/gadget.h | 6 ++++-- > 3 files changed, 31 insertions(+), 11 deletions(-) What changed from the previous versions? that should always go below the --- line as documented. Please fix up and submit a v4 with that information. thanks, greg k-h