Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp652147pxb; Tue, 5 Apr 2022 17:22:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyltgCGP1pf52X3cy9kQ3O5n0I33Dc6cZjBTYYX3oaLblCfG6anYyiAB8TKm6vW61uaJrd8 X-Received: by 2002:a63:907:0:b0:374:b3c2:2df2 with SMTP id 7-20020a630907000000b00374b3c22df2mr4878862pgj.614.1649204577412; Tue, 05 Apr 2022 17:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204577; cv=none; d=google.com; s=arc-20160816; b=Rub/w4XaLjE06cPPmjYj2CmurJkDyenUR55op7Ctf8iVflhBhLFIUVBT8dAZbTGzBB FZIBNBL19+XeAS+vhL59muhL4pf3qJOJ5Kla8jIl0n6Z1yFpJ1yCn6wWp119szmfM3yQ Y2E5qdYFygpQ5wjPPVTibehD/0m0Zm81c+ng6EPvF6HR+fCRHAxZZT1FLbaKO8nUmH7/ xyAXWGYhMZvWzbS6Q/4/e8g+Xk4d2oBWDZFZ2jPXC4cF7WaF8F2Rc454ejoc6N+jT1+s bp6sMxAJA6naA9cdfT7OK4PkZ3ey3hP7LIf4YQjX/qc2N0SFRFOEr2hrQZOUOj3sRLc7 ydXA== 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=SrW+So8/HvuLhoPuO1icjjaghU8xzvzbxff06gLskqo=; b=zo5pPALe2aONEFTjsKdR5DVSgPxuaq1mvt5tKDd8hQTsHAx1R4++C9flmYQ3PuG6/w 4Lz9tfHtDwUNSEqYMBAT6a6CFdctI7J/hgPacVuzlH7X4A9ZSACqEfRgc6EL1F43yWJe escAl4dWFRYec5lk4EvnMHAQJnm8tcUH06kaqK+3dm5DVrW3BRdLl9Gtx9+GEJkrjDi/ 8obCF/pgGQUbb5mSh16ozBaud7m7OOTvl/JpsvAV0sETpMH8qKrE/ieShefkZtPFxKyH EIKa8+eL4M/lRuWo17zSlkflEx9JjL5eW7N22ZKY++ekD763vAfPlIp7Sd3ip/3IwY22 669Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="oHa5cuV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p4-20020a637f44000000b003816043ef7asi16773910pgn.367.2022.04.05.17.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 17:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="oHa5cuV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48CC2208252; Tue, 5 Apr 2022 17:09:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbiDEKxw (ORCPT + 99 others); Tue, 5 Apr 2022 06:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241747AbiDEIfR (ORCPT ); Tue, 5 Apr 2022 04:35:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 096AD13CED; Tue, 5 Apr 2022 01:32:12 -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 593FD60B0E; Tue, 5 Apr 2022 08:32:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64EFBC385A1; Tue, 5 Apr 2022 08:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147530; bh=up/dd1x1ze4xIvI4L8PDVed9sHZe0DHRytKUsawlFDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oHa5cuV/VLcdo9x/ro956uFrDtsP0v9WRo5gbkPYeg9xvl5HhhHc2GfR+JvWaN1ew ssLGysjP4EsmsOv5wnHwGj5OLARpBcVTMHden1v5chCJd7DVKzF4Y2ycZt3BOIDsYK H54dXdOVoF41NNd0LjhSx5bIJIEmTRdRxn2YwDjs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Maty=C3=A1=C5=A1=20Kroupa?= , Johan Hovold Subject: [PATCH 5.16 0004/1017] USB: serial: pl2303: fix GS type detection Date: Tue, 5 Apr 2022 09:15:17 +0200 Message-Id: <20220405070354.298239119@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Johan Hovold commit 5b6ab28d06780c87320ceade61698bb6719c85db upstream. At least some PL2303GS have a bcdDevice of 0x605 instead of 0x100 as the datasheet claims. Add it to the list of known release numbers for the HXN (G) type. Fixes: 894758d0571d ("USB: serial: pl2303: tighten type HXN (G) detection") Reported-by: Matyáš Kroupa Link: https://lore.kernel.org/r/165de6a0-43e9-092c-2916-66b115c7fbf4@gmail.com Cc: stable@vger.kernel.org # 5.13 Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/pl2303.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c @@ -436,6 +436,7 @@ static int pl2303_detect_type(struct usb case 0x105: case 0x305: case 0x405: + case 0x605: /* * Assume it's an HXN-type if the device doesn't * support the old read request value.