Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp956414ybp; Wed, 9 Oct 2019 06:51:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjkVYHXbAWoXO7mm2oVjzmwkGzQqMAEWl/N2Rvw9nllGzlL2l3+zIOdEcILTvsO6gyf7zQ X-Received: by 2002:a05:6402:1492:: with SMTP id e18mr3063440edv.140.1570629108948; Wed, 09 Oct 2019 06:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570629108; cv=none; d=google.com; s=arc-20160816; b=SEuMK6qjyZGzKAr/xmIwyMpOw4plIsWel9dbGPSWgOEoGlzTulVyMkKW4ykXkSrysI DjBf5jAw6T4bsepKhM2FavVP0Duco4Fi21yl9LRJJ5z2TMnjYTytYrtVD3wBDL11FMOM c85W5XV1wuc1iWoUH/7YIOOWef3hu+Fit5+52AU0co8VlBTyyXPc5u2bf9Ng5i3x9z/5 /gjXCz+hIBz4LkRH9lBX9xHbzAEGYRc0leonN4KDBDn26TbmaWNHDda5IBI0GYM8eqqs PIf5h5bribR/mfNF2xpAtLem6LNY88Z4ia36ZTqgHOvE8Ar8OrOFcsLrQ5O227WWPeVC Th8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aDMkgJ6As2ITUR97XtoWkxRL978K35Np9E194tf40gc=; b=SednfLPxIEfqLIUoDuYRCiH68Cuk6EtXm8zjrZXddjOcZuzgP4CRkY69gkUmhPVDWD iPU8U1I8Sa92PjX3ZSPeJUeUct9CTi+CtWtJNXwLJL0KKUgDyuI/Ssi6dfqBP7tpzmzl fABRkIxWQRCmjqn9kQMQ7Tsx3DhdqrhPJgKDyOAt28CrjaS0DsE88kIbeIg/6pS5gYBo 7BKMDCOxCtsZADc6Y7qbFwvqz7RZCZjK5SZ56+Xhs81OnZoVhRdUTXbJAn1SErMgK5/0 WMyx9rk2064CgIecpS/yZGH0+Z9wySIkZhOSFMzr6q3jvPp05QNpS3tmtBmPs6clpCkf xaIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CtbMOKFs; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si1143758ejx.426.2019.10.09.06.51.24; Wed, 09 Oct 2019 06:51:48 -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=@ti.com header.s=ti-com-17Q1 header.b=CtbMOKFs; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731212AbfJINvA (ORCPT + 99 others); Wed, 9 Oct 2019 09:51:00 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47934 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729883AbfJINu7 (ORCPT ); Wed, 9 Oct 2019 09:50:59 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x99Dorv0099169; Wed, 9 Oct 2019 08:50:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570629053; bh=aDMkgJ6As2ITUR97XtoWkxRL978K35Np9E194tf40gc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=CtbMOKFs1SFYTEzRJGXh8pFoYIHerhlxDF5mT6JYJBmZghZkDBNqi695zzp74MU/Z g4ZNMr/LFo+YlHjDzrr43xGvZLrkbwiAJRx5gASA0HWke8YOzUq4B6NB3o1Ohy/BPM VEcWe/xMbEiswClf52kjh4fRS9tjxAA+yzJzqFJ8= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x99Dor7Q082395 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Oct 2019 08:50:53 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 9 Oct 2019 08:50:51 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 9 Oct 2019 08:50:51 -0500 Received: from [192.168.2.14] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x99Don2b093308; Wed, 9 Oct 2019 08:50:49 -0500 Subject: Re: [PATCH] usb:cdns3: Fix for CV CH9 running with g_zero driver. To: Pawel Laszczak , Felipe Balbi , Peter Chen CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jbergsagel@ti.com" , "nsekhar@ti.com" , "nm@ti.com" , Suresh Punnoose , Rahul Kumar References: <1570430355-26118-1-git-send-email-pawell@cadence.com> <20191008065619.GE5670@b29397-desktop> <87a7abv1f2.fsf@gmail.com> From: Roger Quadros Message-ID: <80047a82-4b01-8f54-7efa-c32f696ced43@ti.com> Date: Wed, 9 Oct 2019 16:50:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pawel, On 09/10/2019 06:58, Pawel Laszczak wrote: > Hi, > >> >> 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 ;-) > > So, if my understanding is correct in new production systems > using legacy gadget drivers is not recommended and we are not going to fix > any more bugs there. We can't really control who uses what. So we need to support legacy drivers as well. The issue detected by using g_zero is a controller driver issue and not an issue with g_zero itself. cheers, -roger > > The legacy gadget drivers remains in the kernel only to support the old > products. > > So because we introduce new driver we should not worry about legacy > gadget drivers. > > Is my understanding correct ? > > pawell > >> >>>> 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. >> >> -EAGAIN, IIRC is only supposed to be used for IN endpoint stalls. >> >> -- >> balbi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki