From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E693C3A5A1 for ; Mon, 26 Aug 2019 02:20:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 27121206BB for ; Mon, 26 Aug 2019 02:20:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726649AbfHZCUG (ORCPT ); Sun, 25 Aug 2019 22:20:06 -0400 Received: from gate.crashing.org ([63.228.1.57]:48021 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726215AbfHZCUG (ORCPT ); Sun, 25 Aug 2019 22:20:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x7Q2JsxC008958; Sun, 25 Aug 2019 21:19:55 -0500 Message-ID: <507ef2a33079c35ad9cf3fa4f0acc585b401893e.camel@kernel.crashing.org> Subject: Re: f_mass_storage vs drivers/target From: Benjamin Herrenschmidt To: Alan Stern Cc: USB list , Sebastian Andrzej Siewior Date: Mon, 26 Aug 2019 12:19:53 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Fri, 2019-08-23 at 11:21 -0400, Alan Stern wrote: > > I wonder since f_tcm is also the only user, whether we could change > > the > > matching logic to either: > > > > - Don't try to match, return streams is available. This could be > > problematic if the UDC supports streams on some EPs and not others > > however. > > > > - Do two passes: one pass trying to match the streams, and one > > patch > > without matching them if the first one fails. > > > > Then f_tcm could check whether it got EPs with streams and enable > > stream usage accordingly. > > > > Opinions ? Other option ? > > I like the two-pass option better. Maybe Felipe will weigh in when > he's back from vacation. Yup, I prefer it too. I'll cook up something in the meantime so I have a patch to show. Cheers, Ben.