Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6001434ybc; Wed, 27 Nov 2019 13:11:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwXU5GqIwYM3fOfcAL9MeFn5s26k4qxmRF0fnAgQB25cUxGieRwByD0q36NtaFpQmKWZGtY X-Received: by 2002:aa7:df8e:: with SMTP id b14mr34709493edy.59.1574889106068; Wed, 27 Nov 2019 13:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889106; cv=none; d=google.com; s=arc-20160816; b=bRZuk2Ml1Q1EGRg7zxILSk4uS36SroXwPb/jO62Drw49HWqXyndWpm0l7HYDeFbAfO yqpxe5MYxcs2Q469kw60C02bbwnqtMfd/diz1piSi+PX4Tk6Zh7iZ0f8HBTyVf9v6j+r OLIRgAn/cViBYABXu4e3sHjtVFaPVUMVdjyMLl6XPTGzvDwFuU5+u6C5lZN4kqJRLlcR zRZENOt/qJQ60inoxKqDr1mO1xDgwNuXcLnACLQMeEilGtWelo71oE7YAW4bu4wLXjjl clL6uPGZ+nWZVG6mh8Qk/ZmGUo7xBUHus2CZbxoxmPqWaiwx1attBce721a5Ol4lsz87 F3Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sa8ahF5e4W5TeYF/fRt+IWmtU7rHjpzzxM3JRtMWh5s=; b=OGlw3HjfKyDWuz+BInjJof1mY2nD/pdM6FgzUzchWs4hot8NW4kDiSxZqE6eJun9gX 9ScmwWbx590FVu0EmU6E/dANfrUddo36IDY5BxDLl/32Y/82Hj4/O+w/d9O0ffSWUYFB BnwDkA/GoaQNtGmqfUFDSGgHobAL9jikJu66wprBeGJpZZddjo191gifaC1aD/K1SpLj RCQ80jNEAqO2QZkwaHoF+A9ZQsdyAbmmA0R2XwlDzmwIbSHQGbIUJyEt15tXUzltm8W8 bAyQVZ+jRtnuMv+CRPkQ3U0e/ATgXCrSysSJVxgiH20Lcdu84HBnXqZm98X7fP5WCp+K R35g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="A+/KiL1K"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si10285270ejj.188.2019.11.27.13.11.22; Wed, 27 Nov 2019 13:11:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="A+/KiL1K"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732648AbfK0VHs (ORCPT + 99 others); Wed, 27 Nov 2019 16:07:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:33978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732644AbfK0VHo (ORCPT ); Wed, 27 Nov 2019 16:07:44 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 59E8020637; Wed, 27 Nov 2019 21:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888863; bh=7I0lFTe+1NEhYKeuw5K4FxjfDiPjGAU8oZZn+LzRD6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A+/KiL1Kusauhpfm/2RyxsLHYLpIfsrUPLIXiQUpj2GR6Bcv1hvJ7KQf0q3NYzpFf Lf2ryCK8frwLhODjWVBlnqWzn658EDfpL1hGJ3FUOdS1gpeXYGZi1qfzybCLI7Jaz6 w7yOlLQEo8f0tqBgzA6H88ihggcG+JQnUoBM1skE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold Subject: [PATCH 4.19 299/306] USB: serial: mos7720: fix remote wakeup Date: Wed, 27 Nov 2019 21:32:29 +0100 Message-Id: <20191127203136.572198965@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johan Hovold commit ea422312a462696093b5db59d294439796cba4ad upstream. The driver was setting the device remote-wakeup feature during probe in violation of the USB specification (which says it should only be set just prior to suspending the device). This could potentially waste power during suspend as well as lead to spurious wakeups. Note that USB core would clear the remote-wakeup feature at first resume. Fixes: 0f64478cbc7a ("USB: add USB serial mos7720 driver") Cc: stable # 2.6.19 Reviewed-by: Greg Kroah-Hartman Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/mos7720.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c @@ -1894,10 +1894,6 @@ static int mos7720_startup(struct usb_se product = le16_to_cpu(serial->dev->descriptor.idProduct); dev = serial->dev; - /* setting configuration feature to one */ - usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), - (__u8)0x03, 0x00, 0x01, 0x00, NULL, 0x00, 5000); - if (product == MOSCHIP_DEVICE_ID_7715) { struct urb *urb = serial->port[0]->interrupt_in_urb;