Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5979455ybc; Wed, 27 Nov 2019 12:48:15 -0800 (PST) X-Google-Smtp-Source: APXvYqysaxjsZ/szDuXytKh3qyjYWoeChGDcrojizJ8CpC3P1qNBWoSmR3R/hM9wGcoxHwxn3chp X-Received: by 2002:aa7:ca54:: with SMTP id j20mr4753043edt.179.1574887695237; Wed, 27 Nov 2019 12:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887695; cv=none; d=google.com; s=arc-20160816; b=T3OAf0L8h8sMZ9qXEtL9WU9DP/PLKWs/uIqVn3POSs/wyLygtTMjwobLIysiU/X3Qc UyT637l6l1cxT7bOrjY9Q6cXV5N+X8QBwQCsKU72cVHEIot1UfdNtE/gDWpe2ijHjG8k bR0FPlTsthOU5mmHAJtnEDiA27Br3HO7S5onxK4zTUquqeCZtB/XktcSW++rf79RTj16 X4Y2SVySmeBSnLN7PNPEMkUwkPE1SXnuud0p1eQreGiNQeCqzE6Oad/2MVB0p9JUSDoV QYU///4yL8uELFcuhpJw0RlCazemJyoGnpz6PTnPLHIoGNNMHADnsx2wrhG0Piq+P8y7 iPVA== 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=QN7ZvSxqMqHgJ/NmXnEcosaKNgwgjoz9TYZZLQLJGL4=; b=DJyAtCZxC7DXUuY6/y7UJa/VehUr1kUHQaTubwhXkKahWNvbvXDniwkRWfyFtGGDZD U4jHGqN7G68WTkRMxeVrKsv/oWQAZmSXE588K7H85lsWNEnUUJQ1YJHGwQzvFM8zeZ4A U68KJBE4DPHO0O6Xp25OLUAqPmCRIu6L0ZPovsIdpfj7LcSF5N9RD6f1vnrxos3tYUg6 XsvgAKMQR47NDc0JIBT4ALL0HR5/7/VW8QNJ7T2zZ5p+gTzFPhL4j2bs+18QSpP43c/J q4aZmQJF97G1/Vl1J2bVtgfUK71PegroadWU2soGNj0HGa4ayyq0tBmw2Wd2G+r4BVw4 pyWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GbSziume; 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 c26si11917636edc.416.2019.11.27.12.47.52; Wed, 27 Nov 2019 12:48:15 -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=GbSziume; 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 S1728971AbfK0Upd (ORCPT + 99 others); Wed, 27 Nov 2019 15:45:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:56326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729258AbfK0Up2 (ORCPT ); Wed, 27 Nov 2019 15:45:28 -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 E1FB321741; Wed, 27 Nov 2019 20:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887528; bh=mG7tyWKBsFvSSI8JljWLG7ERevr6fOTFUrMhQgCm37o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GbSziumenpDxhLR+CukuEFKzPXvi/Q2qYT+KJKiDPmVQY45JL6MpEtdEr6iiSVRLW KSJ+1oAAZcgOYD9dtnotkf23B7V/aTa8TIlDuIuuJMEPkpigAkEopbXA13kzmQ5g/Y EU2JDTV3lVhWjVAAvDu8N2L1HmdmtpAAf3RfUr6Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold Subject: [PATCH 4.9 145/151] USB: serial: mos7840: fix remote wakeup Date: Wed, 27 Nov 2019 21:32:08 +0100 Message-Id: <20191127203047.366932195@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203000.773542911@linuxfoundation.org> References: <20191127203000.773542911@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 92fe35fb9c70a00d8fbbf5bd6172c921dd9c7815 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: 3f5429746d91 ("USB: Moschip 7840 USB-Serial 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/mos7840.c | 5 ----- 1 file changed, 5 deletions(-) --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c @@ -2361,11 +2361,6 @@ out: goto error; } else dev_dbg(&port->dev, "ZLP_REG5 Writing success status%d\n", status); - - /* setting configuration feature to one */ - usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), - 0x03, 0x00, 0x01, 0x00, NULL, 0x00, - MOS_WDR_TIMEOUT); } return 0; error: