From patchwork Mon Jul 22 15:14:37 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: 11052661 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 84C9813B1 for ; Mon, 22 Jul 2019 15:14:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7556428249 for ; Mon, 22 Jul 2019 15:14:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73B9328737; Mon, 22 Jul 2019 15:14:42 +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 213BF28541 for ; Mon, 22 Jul 2019 15:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728213AbfGVPOl (ORCPT ); Mon, 22 Jul 2019 11:14:41 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:65274 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbfGVPOk (ORCPT ); Mon, 22 Jul 2019 11:14:40 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 45slVQ4kcbzB2; Mon, 22 Jul 2019 17:13:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1563808399; bh=eB8CbQl5GehEW9z9btkbOtbwkxkS/GFp/Ton0V86t8E=; h=Date:From:Subject:To:Cc:From; b=azLmz3I8hpjasO18lkuEsee8SltmeMnyxaq3XL9LRUnTxgbN0r+sLgI2uAfDEhuRT Cx+NUpmlnmJ6fMPHQtKsuI34SD6++qSVj3Ilf1GgWzBHRBF1+ZZPDybN9L6U/wDLk+ 4hfTck6A/h5X6K6QPGQm7ZO0c3vQmZuegUiVic0x+bid18p5wCUkFiz+c8rNLjGKyl lTM48P8IvU9RBnHCBcw/hGDbAudg8NpeEXZwqPHgMZ/icFQwwyMh12Kt0SD9N9zLa+ Yypcp48LHL2+DDMGDGI90wjfYU5cjZv7zZRAdE7XaID4Frye363gtoSMvujM+3tsgJ QpV/yudvNcw8w== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.100.3 at mail Date: Mon, 22 Jul 2019 17:14:37 +0200 Message-Id: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v4 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(-)