Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2895796rdb; Mon, 4 Dec 2023 10:19:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXDv97UpDPW8cN+D3iOzKoYneYR6vGZAs0r7Gyg+1BIvAUG6Lnk7qyYsWiDtwMU2DFf5rL X-Received: by 2002:a17:902:b70a:b0:1d0:700b:3f8b with SMTP id d10-20020a170902b70a00b001d0700b3f8bmr135447pls.69.1701713975161; Mon, 04 Dec 2023 10:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701713975; cv=none; d=google.com; s=arc-20160816; b=htkivmY4c8s2YjdWco9jYU/V0WNuXr16JDnqDDnha3ibzfkAm4gM8drmQTRgadnwlq GIaMygMlJduqZA3O8Olp5VTw62heFR1gTRRBPpVuzwBRdqJlUZ55TsgzIofQcpizgodK 3HEaVmL5mYNlEVAlNayq65yGm45ePWLtheuVnIWnlPedCfdQujarZbGi+BPteBVIO1JZ jQ0xrF5TkhgBToQAxgRNWWrRD+iy+PykE53uJGGICiDpqPdnVdO9dfiAAwr4r5t0seP7 YF0tatSJG+tj4EgzbJXJp91UgyDiuutiCwHY8vM2XOlDlpCNMY+vOI8VRmyHumNVS71V Vl7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dBNv3IbWjBVpXKO0KWS/oZmgI8ueyLpWoqPSPTS7jmA=; fh=t27Tib4UCBso065rFoXKl3c2Ol6NuJ4hG35i26bdZQ0=; b=sYT/kcGstihPGf77pJe0PzPlasGCt/WrDYeyXdNqrF6KTKoqTi5iCP1bsBhu7lgiXo qmp3clAK3rQdEwMTBea0UkC8h818Kaaj78GqzmojQIa+WohK2fxUmGX9fURIqVxAz5QJ 8q92JiY0hQTMMdSBosUimtd7Y7dSxY5wtgKdh7qPXLbGgN38FAQ2OwKOjMyDlnMhCeRl l5GRncq8Qq/WHRYZdPZ5JYUeoji57lkkJBf+4WWuEp4uM6IdRK6HcHRiXQtv77Zi7+TI eHIWhspanLvpmmo+WTGgvie/ygmMLpBnycIP+8XxF+R/2IiPu0IqzQEvdKNxANiuY6uU 7Hag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=aVw1RKlX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id q10-20020a170902788a00b001cfc4d8eddbsi8191381pll.173.2023.12.04.10.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 10:19:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=aVw1RKlX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DEE6180C61B6; Mon, 4 Dec 2023 10:19:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231783AbjLDSTR (ORCPT + 99 others); Mon, 4 Dec 2023 13:19:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjLDSTQ (ORCPT ); Mon, 4 Dec 2023 13:19:16 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE946D2 for ; Mon, 4 Dec 2023 10:19:22 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-35d626e4f79so1781275ab.0 for ; Mon, 04 Dec 2023 10:19:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1701713962; x=1702318762; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dBNv3IbWjBVpXKO0KWS/oZmgI8ueyLpWoqPSPTS7jmA=; b=aVw1RKlXrDKEN0YrryTeh/rTuxdOqB2pOzFua2DZTCVv5uAlE97wXwb9ko3uKAABoM gsHAzWccKhmMX2ze4YeMY19VPpB2ps/2blXMhQYSfGyfWHD0iERHRDLJZbYJ575CrWgE X1GprKRlB4PGgmceUMzrpmothSZwlBPYVmXKw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701713962; x=1702318762; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dBNv3IbWjBVpXKO0KWS/oZmgI8ueyLpWoqPSPTS7jmA=; b=MFB3NSs24gZIdqBWzVc1ZHWAc0TpqmbVCd/oZGUsM6R5siXpgkk7zxuDCxx3VFzI8z XSjazfst2vFd+MG+Cqk2YsfDJN2mwjyv/9+4pKQ7FDx+PjERa7fYbTKFSmFSbHLmsIqm gAnNl88BrRocbqZqeCUPeeF7/l7Yfl71Z3S97hhyktTGZzTuxoWqenkQXxGH0BiHdj3O 8Z9d/9Mvwz2LKpMw8/byVMwc4vFqTeWCaQqYmakzW+XSRQELucszbHfET/J/kdSC5hK7 xhOcOPzl6l7rvhjOFnOp6ddW62DTG7IMl+h9hTsLk9zCipGQm5I2LRLI1Qo9WsLOqIeq Kjvg== X-Gm-Message-State: AOJu0YwcjcCxBWWFhefBt0K0blY9JOcHaubsIMuD2h9z8bRdHspsyyUy ERSouhXe7g3VAfVCgettIO67IQ== X-Received: by 2002:a05:6e02:2167:b0:35d:4688:e9aa with SMTP id s7-20020a056e02216700b0035d4688e9aamr14115886ilv.1.1701713962134; Mon, 04 Dec 2023 10:19:22 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id bg15-20020a056e02310f00b0035d30f0675csm51564ilb.5.2023.12.04.10.19.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 10:19:21 -0800 (PST) Message-ID: <834f187e-a469-4457-b4fa-6a6eb0419ea8@linuxfoundation.org> Date: Mon, 4 Dec 2023 11:19:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] usbip: Don't submit special requests twice Content-Language: en-US To: Simon Holesch , Valentina Manea , Shuah Khan , Hongren Zheng , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20231130231650.22410-1-simon@holesch.de> From: Shuah Khan In-Reply-To: <20231130231650.22410-1-simon@holesch.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 10:19:33 -0800 (PST) On 11/30/23 16:10, Simon Holesch wrote: > Skip submitting URBs, when identical requests were already sent in > tweak_special_requests(). Instead call the completion handler directly > to return the result of the URB. > > Even though submitting those requests twice should be harmless, there > are USB devices that react poorly to some duplicated requests. > > One example is the ChipIdea controller implementation in U-Boot: The > second SET_CONFIURATION request makes U-Boot disable and re-enable all > endpoints. Re-enabling an endpoint in the ChipIdea controller, however, > was broken until U-Boot commit b272c8792502 ("usb: ci: Fix gadget > reinit"). > > Signed-off-by: Simon Holesch > --- > > Changes in v3: > - handle errors in tweak_* routines: send URB if tweaking fails > > Changes in v2: > - explain change in commit message > > Thanks again for the feedback! Looks good to me. Acked-by: Shuah Khan thanks, -- Shuah