Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6007045ybc; Wed, 27 Nov 2019 13:17:15 -0800 (PST) X-Google-Smtp-Source: APXvYqy9erQZQSjT/xeY16sZVuf6hP2A6DHPntmDZ+jMgt+gx/JEF/4A0PMt5AjXx4xJ0QHAJe1/ X-Received: by 2002:a17:906:5256:: with SMTP id y22mr677549ejm.192.1574889435528; Wed, 27 Nov 2019 13:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889435; cv=none; d=google.com; s=arc-20160816; b=Uc6MGrt1Fks2Hz/GDpWwsdrDjVtgCE4XxjBJ/EExE4ezauEr127JtdDTdLtxDgsfpC AXGKCqXoCXLMBmY++tkw5fHVUzzf3JVHQ/VXr4Zon1EEJYNecnJB230CBUIi2GNHGaWp G6Pcberks4wp7J4SUmAVVe11BufcvACaHbhX+2ECb6Gl8WYeUHqSldDI0fxbwK5l/xZU CEJk+XzOnJeRI62JM7NL1sTmo1q5w/Z25/RAbXR9M1er8u2MwYWMbQ1uOf5PNGCRY6zM ZZqzGHqwdnAyOUDUp55vAziKwC+pVRleQxN8Wo1bf46mxKTjyV5oJmZJ0vQfms7kFD5c EfnQ== 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=q9Pi3QyronEZFCN1B65qkHEED3rgqUDqezQ6U+KjU1M=; b=w1lji+O8KXKKcceetmwN9jEn2QGntUHltw9txdd9vpkR5kpGvaltjA6T3bhxi65RNp mf5vRhSLqVlDCe2/cxj+S2XajZOnoR7lqcNH54o6VvMMax8aspMGw5rQ9NPQPbhlONUw wsDtqb0nG3DiUxZYQqfONBYB2jkgOeU6RBbnMhm+Lb3QhRq52s/CLNjr6/DlXZ4uKzLU AK7Ph1TRVC/ydoRlk+XbB5I/8xqcARuwnEHh5tPholJbEzGrjZwuLs4KWd+y7xbrHqZM v7BakPuFqmKEvRG1ysbxsST7vo4lcJdj5BHhoyGlzBX8gv5fUxsmItACbj9Awv6Y0Qoy 2/qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GM1xUhjP; 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 y18si3727980edu.289.2019.11.27.13.16.51; Wed, 27 Nov 2019 13:17: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=GM1xUhjP; 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 S1733293AbfK0VMc (ORCPT + 99 others); Wed, 27 Nov 2019 16:12:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:43312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732768AbfK0VMb (ORCPT ); Wed, 27 Nov 2019 16:12:31 -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 49BA72176D; Wed, 27 Nov 2019 21:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574889150; bh=29b7VrHROTMlit8ERvOnu2DmGqWVGdm3/WYYa9MMMK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GM1xUhjP8SUBqc1cILdIpDGVFMKph66tzBFcLcUxBBr+fX8+gcAKmOiY+vUJyzFMy /TOFWGv4ZZYPIAsL09g+z4Hc9d4RgUERnriouonmDK3Xtd/aGFbeGykSW7tYQEYq/R Rra3aSCCCBU9ZhuSGQdpMjPQq3cRvvoFhyvBQix4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold Subject: [PATCH 5.3 88/95] USB: serial: mos7720: fix remote wakeup Date: Wed, 27 Nov 2019 21:32:45 +0100 Message-Id: <20191127202957.096500648@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127202845.651587549@linuxfoundation.org> References: <20191127202845.651587549@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 @@ -1833,10 +1833,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;