From patchwork Mon Jul 22 15:26:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 11052701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BC23214F6 for ; Mon, 22 Jul 2019 15:26:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB9982847B for ; Mon, 22 Jul 2019 15:26:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DA2027FE4; Mon, 22 Jul 2019 15:26:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5492327FE4 for ; Mon, 22 Jul 2019 15:26:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728938AbfGVP0J (ORCPT ); Mon, 22 Jul 2019 11:26:09 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:6206 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728850AbfGVP0J (ORCPT ); Mon, 22 Jul 2019 11:26:09 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 45sllh1b7YzB2; Mon, 22 Jul 2019 17:24:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1563809088; bh=9jKef6T+rH06yYURO9+Cu3Ka43sdFwNPQnpJ6Ev4m10=; h=Date:From:Subject:To:Cc:From; b=elUHPPfRauepHjG7btJaXPSD3YpF7KK2Ev5ZzQwo2riGUEpKxwOPrzfCYrvSdYHZe 0Ws2h6SUVabgVCh/bPIyn5D1+XrjPueutW/AyUejWntY+tjjJa5Vs2ezellqMHvqPX /d2WdenTYjqRSSKZczK0rJZHS4KQx7+Lg3kOvyPim8gZDmHXki39Y8+DJZNSo6W0zR xksrMEQGwZlOuAn6ydK50EsJlNMnmZ4zfc/xobuRHlDXgtiiLVzFgapRsYx2bG23+C Uxw1DIGomrJUaB66/f0mS+bELh0pKCjjxqYbkXLzLVRBvOIDJwLqFMKaYo6C1Doj6G 10XWIeyVXnqkA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.100.3 at mail Date: Mon, 22 Jul 2019 17:26:07 +0200 Message-Id: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v5 0/6] usb: gadget: u_serial: console improvements MIME-Version: 1.0 To: linux-usb@vger.kernel.org Cc: Felipe Balbi , Greg Kroah-Hartman , Ladislav Michl Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series makes it possible to have more control over console using USB serial gadget ports. This can be useful when you need more than one USB console or are configuring multiple serial port function via configfs. The patches are against usb-next tree. You can also pull from: https://rere.qmqm.pl/git/linux usb-console Michał Mirosław (6): usb: gadget: u_serial: add missing port entry locking usb: gadget: u_serial: reimplement console support usb: gadget: u_serial: make OBEX port not a console usb: gadget: u_serial: allow more console gadget ports usb: gadget: u_serial: diagnose missed console messages usb: gadget: legacy/serial: allow dynamic removal drivers/usb/gadget/function/f_acm.c | 21 ++ drivers/usb/gadget/function/f_obex.c | 2 +- drivers/usb/gadget/function/f_serial.c | 21 ++ drivers/usb/gadget/function/u_serial.c | 420 ++++++++++++++----------- drivers/usb/gadget/function/u_serial.h | 8 + drivers/usb/gadget/legacy/serial.c | 49 ++- 6 files changed, 333 insertions(+), 188 deletions(-)