Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5597477iog; Thu, 23 Jun 2022 01:06:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vI/huCth3NKy+ImGNN4gkoFBsd6HUcAtnGyXKfYCv/0aXv9XWyS3DHIip7sDXPfgor9er7 X-Received: by 2002:a17:907:3e8c:b0:712:c6d:46df with SMTP id hs12-20020a1709073e8c00b007120c6d46dfmr6910675ejc.314.1655971586217; Thu, 23 Jun 2022 01:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655971586; cv=none; d=google.com; s=arc-20160816; b=mePncWSrsOQAvDb9h8BZ5YXF1e4gh5iLKth3o0co/KYLBHSYW4heqCOnJMZTuSK8LX gGnKPXaxNNvL9+xg7SKu6NWSYAmZk9BnJqR4vqVa5kxZeyA8Fx4PJpI130Ovi1Bmq5fW YvhculNmi08rriJ3iX0CBjitUIQ6Vpayf2fCz9YfvIWGIL7iPfqVrl/WLhP3XHiKCI8D PeLzCZKNPgka+16Nrm8TMT0FJCd6iLCzFoZY3ehOprx7h4hzRSlR4F6DrRCrkPE6Ws1Q vu7TEAmZOV0DOqdPcDQ91tKiYlJoT7waTB0k6gF+zuz+kRWJ4yG0/oXU/qHpRpeGMPC+ oXDQ== 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=8XdAdPLqO2iIRDqP2AfQmxWPmzjrEE7Ri9t6xBT1rTo=; b=Yuk+KEc1e99fxa2k6NdwMKr5ypewEkXwyxFofMIuLjvKTk8Tb1dBge3MDjpdQYvr2B IyjvNYH+VbhC4YQtpaA7BQuk3tcwqtmUmDfjmfDpSZEe96vuiRlzGoPyDd2io1JGLDF6 YnOUIWVz5VZcgTMu+0OotczDesXiom7Vae2kqg1JfQFSyTXSA8Q5ovYcwajcAi54VevQ q1eALuzbCaaV0KYmjvfHUK1eROm6LnK8tzQUlZcIkqIIJbISQ8PyHvFwMHTlWXwznEi9 5mrLEjOfXaLbl+HmF/PtHueAiLaq5jqZtUCnWMu+w8ORU+VUrQORJGqEFkfOMJ5mr4K7 h5Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PvnVX3ep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a1709066a8d00b006e86856a2c0si21665654ejr.704.2022.06.23.01.06.00; Thu, 23 Jun 2022 01:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PvnVX3ep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230442AbiFWHwx (ORCPT + 99 others); Thu, 23 Jun 2022 03:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbiFWHwt (ORCPT ); Thu, 23 Jun 2022 03:52:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6F147055; Thu, 23 Jun 2022 00:52:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F3657B821F6; Thu, 23 Jun 2022 07:52:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EEC6C341C0; Thu, 23 Jun 2022 07:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655970766; bh=huoNFgn3HfD3bERTBZf4NaZJjzvcYRnDGxOvI/0th/A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PvnVX3ep5DOt+vooFv5V7AUs1dYZJ7YhvBZ1h1QMtjlWAXF46yRpArkIafhPCGklL rwhAxTkcivPQWRgt55ePtkUKi2G3NmCrDZrfCw98z4RnA1zjv36AK5gq40f71gLcB/ wlmqtP6YcrJNkiJAfySb8SeW4q9NZoW30tK6rz2k= Date: Thu, 23 Jun 2022 09:52:43 +0200 From: Greg Kroah-Hartman To: Neal Liu Cc: Felipe Balbi , Alan Stern , Roger Quadros , Miaohe Lin , Wesley Cheng , "Eric W . Biederman" , Matthew Wilcox , Nikita Yushchenko , Cai Huoqing , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, BMC-SW@aspeedtech.com Subject: Re: [PATCH RESEND] usb: gadget: f_mass_storage: Make CD-ROM emulation works with Windows OS Message-ID: References: <20220623030405.1922980-1-neal_liu@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220623030405.1922980-1-neal_liu@aspeedtech.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 23, 2022 at 11:04:05AM +0800, Neal Liu wrote: > Add read TOC with format 2 to support CD-ROM emulation with > Windows OS. > This patch is tested on Windows OS Server 2019. > > Signed-off-by: Neal Liu > --- > drivers/usb/gadget/function/f_mass_storage.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c > index 3a77bca0ebe1..3c2a5f1e8b66 100644 > --- a/drivers/usb/gadget/function/f_mass_storage.c > +++ b/drivers/usb/gadget/function/f_mass_storage.c > @@ -1209,6 +1209,7 @@ static int do_read_toc(struct fsg_common *common, struct fsg_buffhd *bh) > > switch (format) { > case 0: > + case 1: > /* Formatted TOC */ > len = 4 + 2*8; /* 4 byte header + 2 descriptors */ > memset(buf, 0, len); > -- > 2.25.1 > Why was this a "RESEND"? Always put the reason why below the --- line so we know what is going on... thanks, greg k-h