Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1310332rwi; Thu, 13 Oct 2022 11:51:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HF1aZD5xOkOAljJqa3XeQtQRGfTxdROfZGNcrT0GhElr47TqqA/gTK7otP3/DES+Ce8lh X-Received: by 2002:a17:902:7598:b0:178:3f96:4ffc with SMTP id j24-20020a170902759800b001783f964ffcmr1158247pll.53.1665687069240; Thu, 13 Oct 2022 11:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665687069; cv=none; d=google.com; s=arc-20160816; b=HnAknHwNP63sJzd8kMG9aUppfYlw8U5u9sxVSpzmw3MfVj1XOrhGTK5Hg4vwfAUZnY KOaw4QR58XuIQgmm1XQsP/urfnBlxv19836dsQhZusZSkmLBgftxBjRdtNGVKg137FwO xpIyv3gloo2wxe2W9AU/LHISGSJrUMHbpNCsyojR4IoqX+i/cc97RUS/mCxqmHwaQpUX eu90yzwnQqOinWM1eDviYUzTldmqdhRH+XeLhlqZc0Zm5J4GQXImVv/fb2ZhVCJVwvhM LboxgU1pojvRC7OB0wXC0ACRFtDr7TOzjjQewpVWqgQIU6jCdx4uJ9vUPGnxE4QUYwjT ReUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tCD3gk8VuXfqTFHUEjR9yn+YiPr4skTXWsaoD5WM/8k=; b=BQ0fUtwrGlzTdH5a/htV+KcnwLoP//9m32b43+NwoPcK3UEDmZZ59nXZuQYjvF5m94 2vLkjhvHMBJ3yAi5UODOQ17D0TMNmyyUcpZq1rKpid+MNBp87fe6ZvUpt5HIglg5yz5W pfAQDm+Zs5glqXHPqlORDRbZ4jlnYeYPqyzYHjJ5zZIG7UJFqT3WrllqWdB7Kdn+zWzt tgIyrn94FGx+nJMVuTUdUvOs064bXfcZNtD8/Qi2DrbUM+IAJYKr/zMGbqyGzYGMg9wX nk2gOt57AuYWyfkrGXOgyofF8GbVPUa6xOyNSf/x2Gb+pqwOFR4Q3kDGmWo4F3PudMWe OTKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vfupg5a6; 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 nk5-20020a17090b194500b00202b984842csi320500pjb.35.2022.10.13.11.50.57; Thu, 13 Oct 2022 11:51:09 -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=vfupg5a6; 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 S229881AbiJMR4C (ORCPT + 99 others); Thu, 13 Oct 2022 13:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbiJMRyx (ORCPT ); Thu, 13 Oct 2022 13:54:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F5715745C; Thu, 13 Oct 2022 10:54:06 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2452F618F4; Thu, 13 Oct 2022 17:54:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FBCEC433C1; Thu, 13 Oct 2022 17:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683644; bh=MzYrXWVhulBt0LKl5EA0jZy1lD1nBI6+XYc3cUJlyAc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vfupg5a69itKEeavxMKBmYZYYuing10ELCGGZosi5niJfaK0p+wXfEFXbQP61H2Fc OH/FoMUZ37V/zWBTdUmy6huG8JCFtgwDUgnUNXBvPg1P6BtZfMEAEGaGXqTj1bJKQI 05Hr/r3guo/MPabscYt6T5ZYwEO0U+ZKgI3y51w8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cameron Gutman , Pavel Rojtberg , Dmitry Torokhov Subject: [PATCH 5.4 38/38] Input: xpad - fix wireless 360 controller breaking after suspend Date: Thu, 13 Oct 2022 19:52:39 +0200 Message-Id: <20221013175145.520626286@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175144.245431424@linuxfoundation.org> References: <20221013175144.245431424@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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 From: Cameron Gutman commit a17b9841152e7f4621619902b347e2cc39c32996 upstream. Suspending and resuming the system can sometimes cause the out URB to get hung after a reset_resume. This causes LED setting and force feedback to break on resume. To avoid this, just drop the reset_resume callback so the USB core rebinds xpad to the wireless pads on resume if a reset happened. A nice side effect of this change is the LED ring on wireless controllers is now set correctly on system resume. Cc: stable@vger.kernel.org Fixes: 4220f7db1e42 ("Input: xpad - workaround dead irq_out after suspend/ resume") Signed-off-by: Cameron Gutman Signed-off-by: Pavel Rojtberg Link: https://lore.kernel.org/r/20220818154411.510308-3-rojtberg@gmail.com Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/joystick/xpad.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -1983,7 +1983,6 @@ static struct usb_driver xpad_driver = { .disconnect = xpad_disconnect, .suspend = xpad_suspend, .resume = xpad_resume, - .reset_resume = xpad_resume, .id_table = xpad_table, };