From patchwork Fri Nov 18 12:25:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp165748wrr; Fri, 18 Nov 2022 04:28:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UW/4jPNzDgKxq1W6ikSc/QxXPMgucefxEw9WwbK/8Nl7W23rjhC2AWF13CUKj7Q19fMXy X-Received: by 2002:a17:90b:2501:b0:213:2173:f431 with SMTP id ns1-20020a17090b250100b002132173f431mr13285692pjb.201.1668774488690; Fri, 18 Nov 2022 04:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668774488; cv=none; d=google.com; s=arc-20160816; b=mz3pxgmq+ykaKORhEz7yNIf1W5tLIG2yp5cz4mzyc27Fq2pUoGpe4ZFgDwA5Nww1KA Ktki1+ZZBaDs409aBlRUp0Lte4bfa3SoqRHzLs9kOhUXuiGl6OJlAKVz/DJZChZj5eEF 4SjiQk59CXcmL91XEpaiElijpiBxqvF9oa0r4Jsl3b9qYBpwsf46XjEg4y1x7QlcDBxT eacfDw5TfHUOAheqfB8eFRFrTkA5GfJaBFEXXaaxFCKisRsGYTyGV9/TbaxCBIOgrhTV h7PRsCptTu2UxkRjyGaFdrrmX7UbUiPjxkADhAvyKOfMLVu4tHikxLaMNqxOkCa4U0ys pLcQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ok8L9adaIF0+CzBKoz5waBpeT5nnReMM5+PgzYDBt80=; b=O/gZRaAVrtxXMwlm3uGuR+5ZB7iLxDBdaC+vl+S/WApu70lfFlfr7LZ/8XzsDoJ5mA UkvnUIW92AGTsYOVSjh0umZaeZPzybZzetZT/6vyY8AAF5saKOFjzXf/GCoTEI/J3VxY mC5MGEv+5LoAvJxcWjmu31mVAq6a4/rM+e4syyaTymb+It4RNt8248bgFBQuXHRBCZy1 +uZ1fjrHqMrAWnmMASEpXCJS/vr3JMwpwX5eAuDHc+JzTzGbmkeduDYv7wbg+SD5GXV4 yMq4FhZypjBgtwQI/+MjMIJWOq6SXT+7HuMX06byI5XFn62t3WZL4Eehrsq5+Bh8mYnQ TKlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=f2Cb7dHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk11-20020a17090b4a0b00b0021382853a8asi8606465pjb.81.2022.11.18.04.27.54; Fri, 18 Nov 2022 04:28:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=f2Cb7dHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241719AbiKRM0I (ORCPT + 99 others); Fri, 18 Nov 2022 07:26:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235247AbiKRM0F (ORCPT ); Fri, 18 Nov 2022 07:26:05 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCDCF9737D for ; Fri, 18 Nov 2022 04:26:03 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id bs21so9010790wrb.4 for ; Fri, 18 Nov 2022 04:26:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ok8L9adaIF0+CzBKoz5waBpeT5nnReMM5+PgzYDBt80=; b=f2Cb7dHTJjhqmL4nuB7JcTcfxgkO1h1jDsAs7KhIweoREnbOrExif0SmJwDzeODSOM UodP8YI4ODyETCmk/nvSJUzWVG6hN/S4p+MR1IlkoPbQeSnlS5Bmv7LArfXnvs2lhh2m MRQ3wNg+PjYnJHiPQ6Dn0JJmBZ3BEJr9YVrdkj13NzVmt7xCTQjkh2pa676vHgpGmqN7 YwwREFcM29537vlm/SDqIP948Z2zauJzalGMd65UuCUj3fKeLw/sN7Z/06GcKcANntWw oiaEwyWx5/W5ycI6vmuZ1lkl5zssbA6nKU0UMHnFURL0BMYv/dUqznIluVc9phNAcfx0 Shbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ok8L9adaIF0+CzBKoz5waBpeT5nnReMM5+PgzYDBt80=; b=jJsRovHivYXAtWdjHTNhwO24EX12vpVC0ZqrkQOUmUWVl7K9/HiiTIlZ2gdYinsDnx CS9zd2s5Qzli+VesyX1B3nQsQnwkxQ3U+Pad1tm8rZKTKiQdahgprY40SN96MSQRqG6W PfZ7J3QqP6wM029Efvz/k9bggU7hLldssyzHAnDkTcyhZMFWKQyarz2lv3YQ0v4e226X /f8c4Dl0aG5pGhh0KHzdZcd6Y0FHX7rufqf+1aIYJueeEnpGNPdXHu2bLeNNJdcRkbul jhN/44w30nE9AFaENMLLtQ6uuWScnnZI6+9Kb8o5S89I2NttB6jVwf9qOT3hBZGG0RLk mJ/w== X-Gm-Message-State: ANoB5pl6H8LrQqZW13a8sNH7KjVO2WfZq2RqQfVywnV1CAjYtjPL9xcm Zc7YGetfiTRBYgD/w79K8u/X7A== X-Received: by 2002:adf:f805:0:b0:236:ef0b:68c5 with SMTP id s5-20020adff805000000b00236ef0b68c5mr4316485wrp.373.1668774362233; Fri, 18 Nov 2022 04:26:02 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b10c:1279:a704:75d4]) by smtp.gmail.com with ESMTPSA id f19-20020a05600c155300b003c6f3e5ba42sm9873958wmg.46.2022.11.18.04.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 04:26:01 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , Srinivas Kandagatla , Vinod Koul , Alex Elder Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 00/15] serial: qcom-geni-serial: implement support for SE DMA Date: Fri, 18 Nov 2022 13:25:24 +0100 Message-Id: <20221118122539.384993-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749836878578944549?= X-GMAIL-MSGID: =?utf-8?q?1749836878578944549?= From: Bartosz Golaszewski The goal of this series is to update the qcom-geni-serial driver to use the DMA mode of the QUPv3 serial engine. This is accomplished by the last patch in the series. The previous ones contain either various tweaks, reworks and refactoring or prepare the driver for adding DMA support. More work will follow on the serial engine in order to reduce code redundancy among its users and add support for SE DMA to the qcom GENI SPI driver. Bartosz Golaszewski (15): tty: serial: qcom-geni-serial: drop unneeded forward definitions tty: serial: qcom-geni-serial: remove unused symbols tty: serial: qcom-geni-serial: align #define values tty: serial: qcom-geni-serial: simplify the to_dev_port() macro tty: serial: qcom-geni-serial: remove stray newlines tty: serial: qcom-geni-serial: refactor qcom_geni_serial_isr() tty: serial: qcom-geni-serial: remove unneeded tabs tty: serial: qcom-geni-serial: split out the FIFO tx code tty: serial: qcom-geni-serial: drop the return value from handle_rx tty: serial: qcom-geni-serial: use of_device_id data tty: serial: qcom-geni-serial: stop operations in progress at shutdown tty: serial: provide devm_uart_add_one_port() tty: serial: qcom-geni-serial: use devres for uart port management soc: qcom-geni-se: add more symbol definitions tty: serial: qcom-geni-serial: add support for serial engine DMA .../driver-api/driver-model/devres.rst | 3 + drivers/tty/serial/qcom_geni_serial.c | 616 ++++++++++++------ drivers/tty/serial/serial_core.c | 36 + include/linux/qcom-geni-se.h | 3 + include/linux/serial_core.h | 6 + 5 files changed, 457 insertions(+), 207 deletions(-)