Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5621593ybp; Tue, 8 Oct 2019 06:00:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUzIRNtdevNlmnvn0F5QU4Wh+SSc9nTTqB1LBlkU/IJ1KUHrVQpL4KzhbbiRhT0zN2u22C X-Received: by 2002:a50:ac0a:: with SMTP id v10mr33628839edc.83.1570539600524; Tue, 08 Oct 2019 06:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570539600; cv=none; d=google.com; s=arc-20160816; b=rw+xQAoW/o19D5CtzsNfefuWZ2R8ineP5mBRGiICFnPm9TQEdB1B5V7P4zlyf6TeKm 32zVeB+Tfo9p1oy5Lq8yJ1IDCmvrcELFEWX/KfN0LL8FnmwSaHZ+cjHSdVes6xVmRJWi MZOGAf+lYB0dzOMqKWME+mRLUORucqvhWITVLhv8sy7fXvrfgIPdHJe6bRxKBg21AS4k BHRg0yB+HwXeFmV3TcEvyUV6Q1jSUJjMNkfbVagyruhXr4IsYEaC6tc1DysfBS+NNIT8 MkWXFvLWx9MS++oYPvAJ4fGxX8S3M9Vdc8DHYo/REfro7acSxwBrsPHmYqBP1ZH4q27k IVLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=S5/NIBKA2YbUs2+6G+T+4zfHqQLuwnLd/dubVvd0/xo=; b=UnKrNoi622nb7nT132OEalwYbhu/9jfASSDKVdMSeMBSnTBc78FXj+OW2IReHWJqaZ 2syv8blT1wsMmnk2pGwThkgsylvx9hTN//+G35SAQ6nCVfamCYNnaNQb+dRGXjCKo48j BnQMfpCcY3s5kmgpA+udbvlSuoI2+mlfEufAbb/hst4mMDGW2eLU6SebAq3TkjWeElki WtI1fp1AvtF/J/4h0lzx8KTJs9ZZYJRVgE/n+vsilIg1k/ntLh2IJECIL6T0RoFolD5c u1f2qVP1nr+ERffB6Ki+O/knAtWUWIFfDoZ6urOYisN6b3T5aDFWxL+dt5/Ba7Ehj1p0 Ouvw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ng7si8758496ejb.91.2019.10.08.05.59.37; Tue, 08 Oct 2019 06:00:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731086AbfJHM7F (ORCPT + 99 others); Tue, 8 Oct 2019 08:59:05 -0400 Received: from mga02.intel.com ([134.134.136.20]:33053 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730705AbfJHM7F (ORCPT ); Tue, 8 Oct 2019 08:59:05 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2019 05:59:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,270,1566889200"; d="asc'?scan'208";a="192568244" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga008.fm.intel.com with ESMTP; 08 Oct 2019 05:59:01 -0700 From: Felipe Balbi To: Peter Chen , Pawel Laszczak Cc: "gregkh\@linuxfoundation.org" , "linux-usb\@vger.kernel.org" , "rogerq\@ti.com" , "linux-kernel\@vger.kernel.org" , "jbergsagel\@ti.com" , "nsekhar\@ti.com" , "nm\@ti.com" , "sureshp\@cadence.com" , "kurahul\@cadence.com" Subject: Re: [PATCH] usb:cdns3: Fix for CV CH9 running with g_zero driver. In-Reply-To: <20191008065619.GE5670@b29397-desktop> References: <1570430355-26118-1-git-send-email-pawell@cadence.com> <20191008065619.GE5670@b29397-desktop> Date: Tue, 08 Oct 2019 15:58:57 +0300 Message-ID: <87a7abv1f2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Peter Chen writes: > On 19-10-07 07:39:11, Pawel Laszczak wrote: >> Patch fixes issue with Halt Endnpoint Test observed > > %s/Endnpoint/Endpoint > >> >> during using g_zero >> driver as DUT. Bug occurred only on some testing board. > > g_zero is legacy, please use configfs function source_sink or loopback > instead. We still want fixes for those ;-) >> Endpoint can defer transition to Halted state if endpoint has pending >> requests. > > The implementation of halt handling is a little complicated, you may > consider return -EAGAIN for functional stall through usb_ep_set_halt > from function driver if the requests are pending, it doesn't need to > defer such kinds of functional stall. =2DEAGAIN, IIRC is only supposed to be used for IN endpoint stalls. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl2ciBEACgkQzL64meEa mQbb8hAAomfKJn0CSDdwf7TlgIBVDMs499S0HgMYnKdya2wxFewm2Fmp5b8pVaEO sdNweEVC9C8G/+iOdCXrJC4Yix6O7CjK34qxcMT52Hh1I4Ay0WZTYoiHenA8rzos AxPXLtZG2iY0gvbdjS6l8rZcYi/T7Hv2aesLv8UJ4OT17Wt8Zb2IZU7gdphUOOme XJFy/42lpLaQSf8tfW8yqgnZFqCwNeDgLXA40YVtzDZJnB9Mvfklr+jxlSCqI+Lf 2m3Es+JgAyg7W8ATaj3ehmjA/bJlVczYy69wgd4bCWiPW6xsofZu+dMsTvgoy8xu sxCqsCfCWgoOrtttOQzwf4oV4Bv0a3ykvN3zRmRuRIEqgnikF1PJN6IYpmI7QDpu ytzUFzoVhago1LJczNJs1bb1oNfUWspTetaU7KaauJbZemyOHz1qMfK50i7QJOKU tzNrujMIVrC9U+4H80bQUj3imtA07YoY3XlLmUdwsfuB8M5H9B4+qs4vynJT9TXA tUeITszbLGoYavxA4xqjAUqswdmp7G1Kj8lXqjqe8KJV02FuA7v4zpy5uf8/RKFZ AXlofJI9vyG0YGCkZr7IVG6R5ttoZ42nn4vWNTCaRB6dEpEO85fGzGGWbjx+SbEN 9YlTiWeNAnd84DpTWIbP1cXE254bO5n7IJr16caefX/ta0t/QPA= =IlzZ -----END PGP SIGNATURE----- --=-=-=--