Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1379097ybl; Wed, 29 Jan 2020 21:49:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxxIKuGpteExmHQ/2zqtoiLh7RxKpTgjzMjWTl38n4OsHNcZXAyBz1hEzn4C1qCQNPtkfTt X-Received: by 2002:aca:5188:: with SMTP id f130mr1900775oib.47.1580363362979; Wed, 29 Jan 2020 21:49:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580363362; cv=none; d=google.com; s=arc-20160816; b=dP+71Nv5uwVBReL/TmiRpp4+xmTSmD46Uc8R+uxUo63GHaG7OylAUpWHetl1ca+LfG wor2o4nx/YIpUKaaXvmY0cAvyJBxO5wyax5fg1zYAfKgtkCkKXFAp589d5CjiaVE7Oag hZXq4TTvq1fQLPAfwVZbckXWjsiYYw2MszVeu8Xc+T6RJQVaZD+4/6x63YUYDG+EqM++ eZ1O7QNbciESF8xorJgvjX6rx0mGYnFEegICMfl/1sk+G5iQDL1MOSfWzxE+Bzbm8PpY dVWGBW2YkH/m5VTdc4ZKh/vIf8TLI8bZX853tN6OJOQhctd7rSSGP32an8SLyf7TbLIn n5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=JgTX40zcozu1pIq38hokOFeu1RslbKauSmp+/sBiQgY=; b=ipsfQF5X82vf4yNrKmyTsqzUHO00j4AVfv8mV2akm9sDZn2celNHrrFeKf2Ck8xo6R 2kMl0TkHejoqMBvkFvLPClffCGzThLTq2qiZKiqXW5kWw18sBkiCQuA1JC7CzwKeKQt9 1NOFih+c4Pb5kvH8HBoiEAaIIrS9XVdA0JLbJGthh8iV+c/hqbJ0TGgbNbPsQuUjDCnL POyDqvRV74tyAYRL94wYlhovQKjyfasfotOaAY7rN9yFTjA1slXXnQ9f6wdr5o5ti1qH WPBURlEOObNzOv99BCc92g9+ZhvkDpASmh9E23OPF/vdIR5GDZIOAYgtn9T1d23jJfW/ 4GPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bapl5xqA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si2345419oth.26.2020.01.29.21.48.56; Wed, 29 Jan 2020 21:49:22 -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=@gmail.com header.s=20161025 header.b=bapl5xqA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbgA3Fr5 (ORCPT + 99 others); Thu, 30 Jan 2020 00:47:57 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39901 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbgA3Fr5 (ORCPT ); Thu, 30 Jan 2020 00:47:57 -0500 Received: by mail-pg1-f193.google.com with SMTP id 4so1056841pgd.6; Wed, 29 Jan 2020 21:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=JgTX40zcozu1pIq38hokOFeu1RslbKauSmp+/sBiQgY=; b=bapl5xqAOEbJm4v5NM89kCOkaf95CdGOFMi8UIv3ub9+diADUePj1yJinvZDZuvAKn Zz13DBHIVI5ky3TjS3O5f15mvkJQ4+gRHwqYiLgCe1SPhaWBaB/tEDKVUJXBoddk5Mbk loE1eRLtUxf9gxxsZ1g1rOKwDJ+rG9EOw3S71esWnLK36SBgW63hBn/wRj2URfEKn/4E tCDPXDnS69vLgzlj0hEZJNMgkWoN1/TeAgjzeyfikyjpejSf0XeEjtv5+zBqz6ZsWoVG c19FidVD4+oHr/yShB/hn+McueKhhkZs88/nB7JryqRmfZJsBALUFn22809cGSvFAAwx 9RFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JgTX40zcozu1pIq38hokOFeu1RslbKauSmp+/sBiQgY=; b=ppvJvPRFRKIi78WRL8epsjs2Bicp0f3osQHumK2vtUyHqICphRzeFZajqBli8CUrWw SmyvOr6YB/Ve1/aS+KFRf89IDltVnE1qUebBKr2s3DczN4Fv3WGipOmMh3CbA2xoqbnu Tb0UaAACMdLxeknpONzJkI7eZN0cg37exbpTLFSN9ydGZ1AF//iHm+LDFr9nqCJJXkxU NrSmrVANe655CshC5Ad4BSo5Mb65hr8ScpldmxuJaGztJu3tSL0AR+VYyZiIxZfYu4/p pRAQsktQZw1gPNKFXFfPaGtsVuoq4JAqDYzuJiI/PhAuum2GbqKZSRwa/VDoQpptxsNv 6JmA== X-Gm-Message-State: APjAAAXXyJSeJ6kXnguhR83NOxMskK+/LGPcE3ey6N7Z6NcnMVC0xW8V YQC2kmZMnDwmUOSsLqXJKRo= X-Received: by 2002:a63:5657:: with SMTP id g23mr2864050pgm.452.1580363276340; Wed, 29 Jan 2020 21:47:56 -0800 (PST) Received: from localhost (59-120-186-245.HINET-IP.hinet.net. [59.120.186.245]) by smtp.gmail.com with ESMTPSA id l37sm4852549pjb.15.2020.01.29.21.47.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Jan 2020 21:47:55 -0800 (PST) From: "Ji-Ze Hong (Peter Hong)" X-Google-Original-From: "Ji-Ze Hong (Peter Hong)" To: johan@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, "Ji-Ze Hong (Peter Hong)" Subject: [PATCH V3 0/6] Add Fintek F81534A series usb-to-serial driver Date: Thu, 30 Jan 2020 13:47:46 +0800 Message-Id: <20200130054752.9368-1-hpeter+linux_kernel@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Fintek F81532A/534A/535/536 is USB-to-2/4/8/12 serial ports device and the serial port is default disabled when plugin computer. The part number is a bit same with F81532/534, but F81534A series UART core is enhanced from F81232, not F81532/534. The IC is contains devices as following: 1. HUB (all devices is connected with this hub) 2. GPIO/Control device. (enable serial port and control all GPIOs) but this series patch not implement GPIO control. 3. serial port 1 to x (2/4/8/12) It's most same with F81232, the UART device is difference as follow: 1. TX/RX bulk size is 128/512bytes 2. RX bulk layout change: F81232: [LSR(1Byte)+DATA(1Byte)][LSR(1Byte)+DATA(1Byte)]... F81534A:[LEN][Data.....][LSR] We'll try to do some code refacting before add F81534A series. Ji-Ze Hong (Peter Hong) (6): USB: serial: f81232: Extract LSR handler USB: serial: f81232: Add tx_empty function USB: serial: f81232: Use devm_kzalloc USB: serial: f81232: Add F81534A support USB: serial: f81232: Set F81534A serial port with RS232 mode USB: serial: f81232: Add generator for F81534A drivers/usb/serial/f81232.c | 353 ++++++++++++++++++++++++++++++++---- 1 file changed, 317 insertions(+), 36 deletions(-) -- 2.17.1