Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp349903ybp; Tue, 8 Oct 2019 19:31:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6fB3yXYOHCwoNKoFiy3OuoOiafnpn+kwDHzWlFBwLdcjkq7DGSWQlhI3j27RXYlzoqwVC X-Received: by 2002:a17:906:5fc1:: with SMTP id k1mr724762ejv.268.1570588292360; Tue, 08 Oct 2019 19:31:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570588292; cv=pass; d=google.com; s=arc-20160816; b=UWGi54GzQQQBPvULsvU70gnzFSuz5HvL797nzuZDw8V7/bgym0cX7CmnKiWVnRUMTU dHqVPV/O2QGKDhap0kpOyAnrWfgoni1Kqj2RKpkbMUbN8W16D+148ZwvlVdA7pp11aAc PuxlUdkAG+OnqWMZFzGHOqyHQCTunoT4K+rlT+DV9/kuPxF2hHeJcl0sY4nYxYGmWXRF ao5JdOrpS5Sj2IX8ZFKK+81YUAeo7YlxG62AAEw2nm8eZ2/KATJXrokCQAqv9kKzEYDp NbrwvGN4QC7yqLdEk8FnN+YbTM7LALYHwROVCA+gf2YC8NALMDdlEqUG5H6WblZqh66J V4/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=o5WEI/TlYv+OWpJGItC85RQvnEpV7LOb+ccGbt0aEs4=; b=QC0v1YGudMPgBEAVxB7mCrmm+Os+rQZDHQTsqrytmTSILEac98ZZq39ONq0ObLxOqL +6DUkxMAVypM9Blqu9BMRL+J9Iq1W/0Hk2wbD/ptORC8n6tda5mC64CiNaVN1g7JGp8I QSliQz3l/9NoW7C9osuNMphyodmJSMvYJGfu6ObgNrwObVYwqp+ED08lnIBAIkICXPRa zJjIryjH9AWZ1cSqaffXL3AKPCSba5Ld7bOst4p97fWRpKlVPHZyZgLsV91rlPe4lSrv 6ximaNCFtK6Xpwo1ppE7BcM0JIhZrwzio8OPFZPKmqGJ8GLSsA2K4wkGZeWT63I4PILC ZZaQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="jfey/RUe"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si541761edm.183.2019.10.08.19.31.08; Tue, 08 Oct 2019 19:31: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; dkim=pass header.i=@nxp.com header.s=selector2 header.b="jfey/RUe"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729906AbfJIC2g (ORCPT + 99 others); Tue, 8 Oct 2019 22:28:36 -0400 Received: from mail-eopbgr140050.outbound.protection.outlook.com ([40.107.14.50]:13379 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726490AbfJIC2f (ORCPT ); Tue, 8 Oct 2019 22:28:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=npm01p7ID+kf8WrtlNxcrIqYhMd8oUD5x9W+UJ/kh70h2RINP+3rRW0NPZAmEZZmPQ1ZM8HM/pvA3CIsBE6zlTRzpjWkllIZh/hwsGzW2WUICspYyTcs5TNIke4nX8j+2x9EdsVwb1CY+cBy5M9mIxSOE3MdipYgBvVkfU/vygS/yUEZQdRa4o1VRx/HiDcP5JT1AJFqLPYMVsuWtpbTblvwIbqAI2ffPshMjjFZ/wI7aRE95/y+XI0GeUm1zazKzh49rXyyjMlXmIga76jpbcqyKlkzqhhBULPrwqtL2KyTAOKPDOcCfTFaSKuODZcuvGVo2LnDympDcoCWRo7ucQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o5WEI/TlYv+OWpJGItC85RQvnEpV7LOb+ccGbt0aEs4=; b=agYAW5jk9tE6fdLvkg45gybzh09zLTEjzfXteW5Y6YGCAbO0WOJzsTH2gmVt9nNO6CUcqMFF5j8vObpsAm8R3Dm8xDaSwcvmXAXh1u8ZX5w3uAgjDrLD15XFIygznYDZ7WZH53EkcvYMyLYNku1sWB+ePwYRHQPbyi+GYRXYVzVVfRHN3MSBqbkr2Q0g/0gTvfa63N/n4RH+XZaB9QlY/2/AWiCzTahzJDuXn2cyWyHVApNTyJ/riECvkaZoIP40aqd6ZYvu4S6emOpaYCgLWqCd26LIXrXAQOpw6uO1boK9LvMsF2y5zYoZRBv4mGQkzsnnBMGSru++UCT28Jpwag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o5WEI/TlYv+OWpJGItC85RQvnEpV7LOb+ccGbt0aEs4=; b=jfey/RUeOIHxrGCebMLKgSV0XicqEA6dHtw0qfwTwhhpJcWlfUv8aA2poK1k8RifiAGGZhlbGhcpsFDSmn+aIHo6gFPtqOfafplrqjUwd8dzZpFrsuBD1QvRFJ9RnthjtC1XjuYb+yx579ZLMBVmNC8l8E4fIXoIvgD2rtskfUY= Received: from VI1PR04MB5327.eurprd04.prod.outlook.com (20.177.52.16) by VI1PR04MB3198.eurprd04.prod.outlook.com (10.170.228.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2327.24; Wed, 9 Oct 2019 02:28:32 +0000 Received: from VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::1da:26dc:6373:4ab0]) by VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::1da:26dc:6373:4ab0%3]) with mapi id 15.20.2327.026; Wed, 9 Oct 2019 02:28:32 +0000 From: Peter Chen To: Felipe Balbi CC: Pawel Laszczak , "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. Thread-Topic: [PATCH] usb:cdns3: Fix for CV CH9 running with g_zero driver. Thread-Index: AQHVfNoJ++ECtmBATUSOETiOVkdrz6dQUUWAgABlUYCAAOIegA== Date: Wed, 9 Oct 2019 02:28:31 +0000 Message-ID: <20191009022815.GI5670@b29397-desktop> References: <1570430355-26118-1-git-send-email-pawell@cadence.com> <20191008065619.GE5670@b29397-desktop> <87a7abv1f2.fsf@gmail.com> In-Reply-To: <87a7abv1f2.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peter.chen@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: daf0d558-640c-4ded-f821-08d74c6060c9 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VI1PR04MB3198: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 018577E36E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(4636009)(7916004)(136003)(376002)(39860400002)(366004)(396003)(346002)(189003)(199004)(66476007)(66556008)(64756008)(66446008)(54906003)(186003)(66946007)(5660300002)(86362001)(102836004)(305945005)(7736002)(6436002)(6486002)(66066001)(476003)(9686003)(6512007)(486006)(446003)(11346002)(91956017)(316002)(6246003)(44832011)(33656002)(4326008)(26005)(76116006)(229853002)(2906002)(1076003)(25786009)(71190400001)(71200400001)(81156014)(53546011)(6916009)(14454004)(76176011)(14444005)(256004)(6506007)(7416002)(478600001)(8936002)(8676002)(99286004)(33716001)(3846002)(81166006)(6116002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3198;H:VI1PR04MB5327.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nASzDPMnNgzJPv2p/qGKVPacyX8Rb4B6CxH1weSGtOQ/1ycIGlVS9CQ/c+zveOO7dxxFwLih9CuqV1cAc7KKkx3OBIom02M6vB/lAErzX4JngWrQq2nVSO3HtGJw7cFu7qT5GB4+6Xeh07SHzC/NVIIOlvmcKQG6N6hP6eRMLJw6Eq9Y/7KdA59gESIwPrVfRU74qcM3AINOyd9XQRO0qwDIWtTsXnNlQ16qW3pgPsaIAUpjp0IpsQOBPsE/yC37ThW/9JEhY4k93YbV4vbL/9FAFBZF6FUaS7RJhb/GGlMlAgYF3g4NzpIU4x272QoGH3R2MlEIAB+jK93eVfNvbspRDpS8PhA02VZMl4EtJfR1JbODzDyM8/CdXfeKsNt9JzUq63dILxRRNV5OE/O8hwhHE21eYzpm7eXh9dYYY7U= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <44072C5C5C95F541BD4D0C19BD176C39@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: daf0d558-640c-4ded-f821-08d74c6060c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2019 02:28:31.9985 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IvkGGTWgBonFUv38Z73+C41ShHHp/Qj8MFDQ4UyNEL55DXuUPEBF5mAsZTsrADtgCTHAQfv9SMPTT3ePffBEvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3198 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-10-08 15:58:57, Felipe Balbi wrote: >=20 > Hi, >=20 > 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. >=20 > We still want fixes for those ;-) Yes, g_zero also uses source_sink and loopback, we just suggest the user configfs instead of legacy modules. >=20 > >> 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. >=20 > -EAGAIN, IIRC is only supposed to be used for IN endpoint stalls. >=20 Yes, you are right. --=20 Thanks, Peter Chen=