Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp364831ybt; Tue, 30 Jun 2020 23:56:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVsoFYagmB1/+8lgNmF7h6TJq+zQwrzzmF1t9bJSQqKGpb2B7zP/NlGHasJWbDRgpVfW6I X-Received: by 2002:a05:6402:2065:: with SMTP id bd5mr23479956edb.67.1593586599558; Tue, 30 Jun 2020 23:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593586599; cv=none; d=google.com; s=arc-20160816; b=jQ6Mc/c2vYCK/ccHCofbJQqssfijeS+kVklS27hS8Li3Ng4ST5tXtThLS8AO4wU7fh Gpbt1Np6ZTyfY74LPjBHgjwtjfB/e5dtydLencJIz0S0NsE8vmHaajdbM18cJiRhW8Fa 1DmAOtImvaM2NBxhY3RZzYODLt0nSg6guUOIAIMY30PrDiZihCS8EKRm/I1WeQwf2Ya1 yTbs0U0Zj4/5mBrTHIuZ2LjCX0Iymm8bBZWhTiN1B1hxNE3cedskfwO/j2yRjPGh244r +I8yNJwCuVVdCN8T1FK5p4C0UI3tNxy+NTLEswiQK+Cxz9+puXh1Y6w3bvLxGExr4/ng 2Ehg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=Fqs/N/rO+/7/27zLn1NjeBPX6gogMZPC9+Bx69TLz98=; b=yc7k794WyO9ItDzuvOpsmWWl3btOy5DFFs3R1lELGhGN6XOFQFFTRLQpuhB2AmGOuk RFd2jTir/6vWeze1VBS/nXCA89j7fjLPneWUp70Niu3oljBnb+ti1kQKM1R+UTh54nX1 wXcFxg3rBfdl1PKJlIQSSGavT8UCABskhap3HFlpouSS6Vm9CuUN0NzNq+vD9cruyJ12 Y5hGlxYBe1CR0OCmc3mg8oeezWYbl4e/sd36Jjq9DJSxk0pCvnEdYIye7afuo7AkRDaj 096xN2gCaGRD3c52C3bVc0Rl/CPTfe3MGffOfVNMRyp4DnguGtsWla59boGAnWbxQ2px AJ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KhHrOzp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si3119733ejw.53.2020.06.30.23.56.15; Tue, 30 Jun 2020 23:56:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KhHrOzp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727997AbgGAGyB (ORCPT + 99 others); Wed, 1 Jul 2020 02:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgGAGyB (ORCPT ); Wed, 1 Jul 2020 02:54:01 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7ECC061755; Tue, 30 Jun 2020 23:54:00 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id n23so25663951ljh.7; Tue, 30 Jun 2020 23:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=Fqs/N/rO+/7/27zLn1NjeBPX6gogMZPC9+Bx69TLz98=; b=KhHrOzp+5hON1PGwZCOHUxadlzCY6D/Ywg1sxRsU9bdO+DktULgAFyIImiPKwzsXBl tTvr4vsJ0YDPCiCqEtSYlVcv8IaV/R4rt284mBbrgOYXyZxZoNjVnWaIaJvTtPhyZGw8 4CrZ6u/NLrURii8r04tBsPotQCAlgnAUjTblpops2/qVSoR8igMYJ+ciY9HI2XVh4yuX aXqksIxW8TkVEeWApSu8eqyj3wjxHVoUh+JkECF8YESl0jnZEoEUWfYLjBBXv4wDr4do atiN4hh+QQWSAhwksgASYHUIaBBxcGBY2w0k3hbgZY0RqdLiSXjwwfVCghZNky7EG6sE dVaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=Fqs/N/rO+/7/27zLn1NjeBPX6gogMZPC9+Bx69TLz98=; b=Lj31X3SakkPoKaIWguFRIdzYp4JaPdaUyUG2K+F6huNLaDiZerJaCDz4bFKLM7Ng5g mHi+Pgyz4+e4QW2fhy8JJjhdpMUGRlIA4y5pI6ke3yay0/G0+loBhzhm+xqL7mKiXPN1 Kk8jf5VcCmNXx/hCX6+zZIR0VQoV4MtMHq5xMWgb8Cz1YBAD2Uiu6KFfHAhj0gW8NNem Qp+8+D2K2RN/uc+yDSl8Y1cAB184A5V4pmSbLx9Z9vEUbbhpzATIWVmsU8Uj7XHe+4ga rX1Zn9zeXzTbHZRaUZKEh8fgkZrdxr+O8jR+wdP9gb7JQm3kbaR4b5R5YyBah8t2h3W4 4c+w== X-Gm-Message-State: AOAM531uzDfbLu//Fe4TsUWO1UAmQLPdLEe1k4u7/3UB+dQWxAFjukwY jCiR77CWoYk9IlZqZzkYF78fLOTm X-Received: by 2002:a2e:5c44:: with SMTP id q65mr11783055ljb.156.1593586439010; Tue, 30 Jun 2020 23:53:59 -0700 (PDT) Received: from saruman (91-155-214-58.elisa-laajakaista.fi. [91.155.214.58]) by smtp.gmail.com with ESMTPSA id p2sm1489475ljg.95.2020.06.30.23.53.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jun 2020 23:53:58 -0700 (PDT) From: Felipe Balbi To: Peter Chen , =?utf-8?Q?Micha=C5=82_Miros=C5=82aw?= Cc: Greg Kroah-Hartman , "linux-usb\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: RE: [PATCH] usb: gadget: f_acm: don't disable disabled EP In-Reply-To: References: <237e4bc8c63680f9ce0388d35b4c34a856ed8595.1590690518.git.mirq-linux@rere.qmqm.pl> <20200529081104.GD32755@b29397-desktop> <20200529135524.GA14614@qmqm.qmqm.pl> Date: Wed, 01 Jul 2020 09:53:54 +0300 Message-ID: <87zh8j7mkd.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Peter Chen writes: >=20=20 >> > > @@ -425,9 +425,11 @@ static int acm_set_alt(struct usb_function *f, = unsigned >> intf, unsigned alt) >> > > /* we know alt =3D=3D 0, so this is an activation or a reset */ >> > > >> > > if (intf =3D=3D acm->ctrl_id) { >> > > - dev_vdbg(&cdev->gadget->dev, >> > > - "reset acm control interface %d\n", intf); >> > > - usb_ep_disable(acm->notify); >> > > + if (acm->notify->enabled) { >> > > + dev_vdbg(&cdev->gadget->dev, >> > > + "reset acm control interface %d\n", intf); >> > > + usb_ep_disable(acm->notify); >> > > + } >> > >> > But it does not fix any issues, the usb_ep_disable checks 'enabled' fl= ag. >>=20 >> It generates spurious trace events if you enable them. >>=20 > > You mean the trace events from core.c? If it is, we could try to improve = it > and indicate it is already enabled or disabled. I agree :-) =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl78MwIACgkQzL64meEa mQaEhA/9FX2Rt90P2cv0yV8OH6+R6yinveawhOOllasJKyZZ8AiPo/63DpV3Yq/M b7MkdyqExd0OTZTZ5fEeBRE/P8QoMpUYFfztAzM6jE6mz+Vun42B6xgPf0D5w8AP OQGV2ZBBPoPNzTTA+3mYY8sUevKSWfFTl2srrQSYEvmQMWzlXuMZn1deUsSEf3e8 JLi7SvgFEhqMS2Er/1LoHF++zZSlMQFUir0rNoLdaSX6Cp7TwMGmwm6Dt9MOlByz sXvBR4mC8LY0iA5NyR0BVl0D4RUwPG9BxyXDOIJ8sGeIVvkrPz0omUUf+6y9uzlf r/VJk9wOKBbuoosSalYUo50SxSYvReNxMbAENuXf6S3yJ4iq1/71xKBKcr0pkyzi CXhbJJhXCKGOAWyZV7tM+n6sRDdpLIB7/qcTxKsZOGcBGb7qoydcpVKYu8f+yUq/ nu23yRjbGzeL5QwcP6ZsO+s1H+CE9o7pLizKIdSHEhVbMg1dkWKdwr8uJRbb8mjY 2NKVm+I7iNGOZDQtOgkmHi1FascF5+Qfe3H/E/qbFgnuIQGyiDzozoRk9xYzR+Hq 1WrKXPbdIWienJA1H/ecshyKd7tUm0nzRqeNZnsXrucHbjliHxWEUvuqGN7Vh2NZ o1K8X7QOScZeCEY1TquXDuKylONHyzzuXTVsFLc3XZrekQ0I6nU= =R+dN -----END PGP SIGNATURE----- --=-=-=--