Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3851177pxb; Tue, 17 Nov 2020 05:23:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIN4oHES+286FfavmalRqLBbM+e6r5xWDSfMStPDbDKzRBF11TYhE9ik47vjlbw9tLsXvE X-Received: by 2002:a17:906:4c99:: with SMTP id q25mr20335780eju.67.1605619396234; Tue, 17 Nov 2020 05:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605619396; cv=none; d=google.com; s=arc-20160816; b=R4naL5nykN4LUs0jAgxcsqENUIDt0LTR/7BuNhnyiQ/4ryqMDWULi6XzfEpyUOSeyH EHEbOfms1z6Imq8rYlVLZPQZMtnRw7Z0zPTfIduI58C2bZ/8lejW8PJ6pAsVc+zA/KyZ efoZOPqregvTKNIDfxJD4ubbggnAY05cZtWKYrqaVmnSHpvdhIL2xh3EGRhheIR/5wgD 7PHt0IaBkw39vUvSWo1ZN6HFGAZIayqKFaqCqrPk+D0UOdKb5yIY7hWvgqx92B4FXKpd tsUg5WXqIPsnT385XaSz/x79lbxHd7MJ1qzt7CNkFjLFrdRGMc4tFtHJUAL0KgHQqiuY 66fw== 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=VbZbJKrNFPLeQkD/zA/kNVBkpZD9B6++RDuSIKA2kLU=; b=AxDojIFUnMTionFzjmz6zJbyejbzk59ueBWc21BeR1NWl7k4XRonK40ObclBiCGYtT TRY1YWXpNzMHgGXVQbgp8zuyB/elEvYQfSO22HAQ4q7a1oCxNd0MqL6HzyQVzK5IClhm Q+XZMyLKY6Ze1YvMAKzfyNd5VdJIbB2yDMbfl47y3uWngCysKK23u5aOTLkktSzsBt4s NFh7kE4yzSsNbjU9xZ7iLQdTRR/KalRuoV4StvSY/5hejKwA5oWUU97sTT+XfIIgH75S xyEe3337bYKlQGY+WTSPq4Jh9KwM4T5qIUTYl2qSiQ4PVySYoD4nnKRYt8YkEQaiveq2 S9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oHA9fFGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si13398161ejn.209.2020.11.17.05.22.48; Tue, 17 Nov 2020 05:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oHA9fFGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730157AbgKQNUm (ORCPT + 99 others); Tue, 17 Nov 2020 08:20:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:54038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730763AbgKQNUb (ORCPT ); Tue, 17 Nov 2020 08:20:31 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 9D101206D5; Tue, 17 Nov 2020 13:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619231; bh=kU+xot6k9g0hojGVcqo7iCvHCO2JOsUkcyjM6lPfuxo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oHA9fFGEcjWufFpALZD/XT+kEczKQ6BcdhaASAQb+tmntOhWrgY+e9V47r4jg04NP Gww+f5fKaIsEhaLnNbm/xip6KzfXukiQb1+vG46Q4SMmZDYiFJncONg0ASkHUxxPVz Je9t4apinAItV8ICvESjrikxM5lqIVUBKUM7sLRg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oliver Neukum , Chris Brandt Subject: [PATCH 4.19 070/101] usb: cdc-acm: Add DISABLE_ECHO for Renesas USB Download mode Date: Tue, 17 Nov 2020 14:05:37 +0100 Message-Id: <20201117122116.525125812@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Brandt commit 6d853c9e4104b4fc8d55dc9cd3b99712aa347174 upstream. Renesas R-Car and RZ/G SoCs have a firmware download mode over USB. However, on reset a banner string is transmitted out which is not expected to be echoed back and will corrupt the protocol. Cc: stable Acked-by: Oliver Neukum Signed-off-by: Chris Brandt Link: https://lore.kernel.org/r/20201111131209.3977903-1-chris.brandt@renesas.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/class/cdc-acm.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1738,6 +1738,15 @@ static const struct usb_device_id acm_id { USB_DEVICE(0x0870, 0x0001), /* Metricom GS Modem */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ }, + { USB_DEVICE(0x045b, 0x023c), /* Renesas USB Download mode */ + .driver_info = DISABLE_ECHO, /* Don't echo banner */ + }, + { USB_DEVICE(0x045b, 0x0248), /* Renesas USB Download mode */ + .driver_info = DISABLE_ECHO, /* Don't echo banner */ + }, + { USB_DEVICE(0x045b, 0x024D), /* Renesas USB Download mode */ + .driver_info = DISABLE_ECHO, /* Don't echo banner */ + }, { USB_DEVICE(0x0e8d, 0x0003), /* FIREFLY, MediaTek Inc; andrey.arapov@gmail.com */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ },