Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp712758pxb; Wed, 16 Feb 2022 02:44:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBD3IjjCs46tmUS/c46yQWcw49G0EAJMLAr/OL0jQlzPmxgZrgkbhjtl3wLLyLO3AYDCsG X-Received: by 2002:a17:90b:1c8c:b0:1b8:5adb:fd84 with SMTP id oo12-20020a17090b1c8c00b001b85adbfd84mr996649pjb.238.1645008286235; Wed, 16 Feb 2022 02:44:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645008286; cv=none; d=google.com; s=arc-20160816; b=jGmyJyUgdZqQXcl157mCmxlXF/pNZ7NdGcDiPRVMfdiGYZDdc1V1mAryykRNyupIwU PNx6hXYTSBM6JnGtkFp9LG3tNqGt+Vs+h4wcGWI6C0bCKfb5ySFiItHhfvklAtIEG4Ay Fc2zDgzoO7KkPLw4Fq5TTz9XB0MKqx3zzVs2PIrWPArbqBaBJbOuh3UbexuXY9pQcFw0 AXmZXwRPH8ZmIVzC5wzcIJGP5shdTlMW4wOBDom4fscbEIznXDiYv9t24i2QWW4V3Hym 7YZsRW9a9C+mo18Qj9RJgvi+x2GlQZWwVXj5kwwPaVhBaAdHewTMjX39TmzETY4evfX3 RzPw== 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=A9gSdw11rgwK1QCbp3EMCjOq3ttUrTRvFWARrZcvQCQ=; b=VkZ2bqHqV3R2Le0WInvk8KzBydOIXySseaYYhJtJM0HPk6fmWccF5NDrO7agqogIfD bLnUsXSm28+gp3+on1u0+IRMCyzZMqFDFYk+WD6Ler0a7r3s8TqOfUcxmOPvGbNWLrAA r0KKE1xXOsF8d6bl/Rhj3PlcK77MfepRJLG4N6S8XLkrbLzqEowl5vvzGADK3m01X4Vt 6rzXsvaArThPdao1Npshls+ORJAVaP5gZriYaF6neW/Jwq3mommrw7co1leZrlL7JDP+ 6Y4pdjTkcBVJGZla9/tsNFguvSS0md7F5aEs7018+fNzPPc1ikLjZs6Bmoisi6h02y+8 6TtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2pgzuVzn; 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 w141si2596969pfc.374.2022.02.16.02.44.31; Wed, 16 Feb 2022 02:44:46 -0800 (PST) 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=2pgzuVzn; 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 S229976AbiBPKgt (ORCPT + 99 others); Wed, 16 Feb 2022 05:36:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbiBPKgs (ORCPT ); Wed, 16 Feb 2022 05:36:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D1965F8; Wed, 16 Feb 2022 02:36:36 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C78966197F; Wed, 16 Feb 2022 10:36:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F406C004E1; Wed, 16 Feb 2022 10:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645007795; bh=7vyvE44KD4wwP3WaOdcKYQykL1+Q5lIEa0k28fE0Z1Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2pgzuVznt4LOGYWVP7ib1zPf5LD+pa7GUTVAGvUraZfWQPz/KW6eTTHJ/M6hBCE7E fT0LwBgSQ05X3xxVDbwCAlAdDwXdKqT7DOgnDODVvFfvD6EOYYCLZTrEQXYpNEBaHh z97uexsghJfPhJwVL7qgqXrxxW7Id/TVOfGlLrw8= Date: Wed, 16 Feb 2022 11:36:32 +0100 From: Greg KH To: 3090101217@zju.edu.cn Cc: balbi@kernel.org, ruslan.bilovol@gmail.com, pavel.hofman@ivitera.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jing Leng Subject: Re: [PATCH] usb: gadget: f_uac1: add set requests support Message-ID: References: <20220216094301.2448-1-3090101217@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216094301.2448-1-3090101217@zju.edu.cn> X-Spam-Status: No, score=-7.2 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 Wed, Feb 16, 2022 at 05:43:01PM +0800, 3090101217@zju.edu.cn wrote: > From: Jing Leng > > Currently the f_uac1 driver only supports UAC_SET_CUR request. > > But when uac1 device is plugged to Ubuntu 20.04 PC, at the stage > of setup, the PC will send UAC_SET_RES request, If the device > doesn't respond to the request, the PC will abort the setup process > and uac1 device can't be recognized on Ubuntu 20.04 PC. So is this a bug in the Host side to not do stuff like this? Why not fix it there instead? Where is the requirement that this command must be handled by the device? thanks, greg k-h