From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9492EC10DCE for ; Fri, 6 Mar 2020 19:00:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71E9E206CC for ; Fri, 6 Mar 2020 19:00:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726245AbgCFTAx (ORCPT ); Fri, 6 Mar 2020 14:00:53 -0500 Received: from mail-gateway-shared14.cyon.net ([194.126.200.67]:49926 "EHLO mail-gateway-shared14.cyon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbgCFTAx (ORCPT ); Fri, 6 Mar 2020 14:00:53 -0500 Received: from s013.cyon.net ([149.126.4.22]) by mail-gateway-shared14.cyon.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim) (envelope-from ) id 1jAIDJ-0003iQ-N4 for linux-usb@vger.kernel.org; Fri, 06 Mar 2020 20:00:51 +0100 Received: from [10.20.10.231] (port=57634 helo=mail.cyon.ch) by s013.cyon.net with esmtpa (Exim 4.92) (envelope-from ) id 1jAIDI-00A70o-GI; Fri, 06 Mar 2020 20:00:48 +0100 Received: from hansmi by silo.slz.hanselmann.tv with local (Exim 4.92) (envelope-from ) id 1jAIDH-00061A-Po; Fri, 06 Mar 2020 19:00:47 +0000 From: Michael Hanselmann To: linux-usb@vger.kernel.org, Johan Hovold Cc: Michael Hanselmann , Michael Dreher , Jonathan Olds Subject: [PATCH 0/4] ch341: Add support for HL340 devices Date: Fri, 6 Mar 2020 19:00:41 +0000 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s013.cyon.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hansmi.ch X-Get-Message-Sender-Via: s013.cyon.net: authenticated_id: mailrelay-cervus@hansmi.ch X-Authenticated-Sender: s013.cyon.net: mailrelay-cervus@hansmi.ch X-Source: X-Source-Args: X-Source-Dir: X-OutGoing-Spam-Status: No, score=-1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org A subset of CH341 devices does not support all features, namely the prescaler is limited to a reduced precision and there is no support for sending a RS232 break condition. These devices can usually be identified by an imprint of "340" on the turquoise-colored plug. They're also sometimes called "HL340", hence the terminology in this series and driver. This series adds detection of these devices, adjusts the divisor/prescaler setup and implements a simulated break condition. Michael Hanselmann (4): ch341: Name more registers ch341: Detect HL340 variant ch341: Limit prescaler on HL340 variant ch341: Simulate break condition on HL340 variant drivers/usb/serial/ch341.c | 196 +++++++++++++++++++++++++++++++++---- 1 file changed, 176 insertions(+), 20 deletions(-) -- 2.20.1