From patchwork Wed Nov 23 11:07:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 2106 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2724012wrr; Wed, 23 Nov 2022 03:14:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6IPh3rR7BLQwMccLkD6XtbD0ySyegUthOcEh3fybpb1YL4LquF6h10BJv+C8JepNAQQhkR X-Received: by 2002:a05:6402:1502:b0:469:13c4:ec5f with SMTP id f2-20020a056402150200b0046913c4ec5fmr21379710edw.199.1669202045299; Wed, 23 Nov 2022 03:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669202045; cv=none; d=google.com; s=arc-20160816; b=zj4QCwu2xxyrZDk0gkc5sJhYHqmKfXCp/N3AOLZoufsm8gEShI4QKxG4Z3hmKk3FGt oaR7VySH0MGFWYBk2LpbMOv92s1DRujknwf3guvQPsttHnbbWuoGk4MLD1cwi5PKojrW 7sNEhcANVSdeanX0WPE5dhamxXhal9farXsZHhjHgAnfVkElWUkzu182ijjvmVAR0iC3 vsH+sUjcOgY14kJsJAnP0ajDVYqEmrY0z6OYTS/T+zSG/6f41bJfh/7gdJzFg7xiMF1Y illQVRUldcU9WbInQsPS8C/f+eRGo29fHHjN9uCbx9lZhE/Mk4CGVhg4XrIpjvRk8g0L EOrg== 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=SxKKQVKQ81FxEODlSEwNHNcnF7Oq8Hf7J8RAhqpkNR0=; b=wh3mWrf/Tv5CYQCpBCPxITnkq8l42atKJvEWZ1wOWyZGzy8H225TAlh5dYeEg282mZ RB2+9zevkAmHzQvTCWNoJiqdxsW6GWIHi8j51sWqRh+8NOU1q+pscFEQkmI/NjQeBpXx mjvuzEKCuTsNsjY9NP4eJky6gK97pCw43vwFxg77f8stznI+XE99B1j+WhGCYfynY6L/ Rhclfnx/9bs8HXCMh3+1pH/LyemJnCgcPrHUGGasRj6ft4dR+EaZEwp4GkdCco/QavYR HJaZC6kdprMzU0wxKtNLLVDy9uUgn9G25iGS7sfW0YnXIDG/ZlgFUCA4srJHbuXBhJHG tpZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=64bqPU1M; 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 qb13-20020a1709077e8d00b007ad9f041c3bsi2953957ejc.27.2022.11.23.03.13.40; Wed, 23 Nov 2022 03:14:05 -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=64bqPU1M; 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 S237335AbiKWLIr (ORCPT + 99 others); Wed, 23 Nov 2022 06:08:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237318AbiKWLI1 (ORCPT ); Wed, 23 Nov 2022 06:08:27 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A92E856EDC for ; Wed, 23 Nov 2022 03:08:05 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id v1so28799605wrt.11 for ; Wed, 23 Nov 2022 03:08:05 -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=SxKKQVKQ81FxEODlSEwNHNcnF7Oq8Hf7J8RAhqpkNR0=; b=64bqPU1MpACkSz+2b/iR4rFkK2yOkXS6e7vbXAhgpMGWYlA7mOCt2r4qUnm6qD/1ct CiM3sI9ZcK1GEM+pGgcfb9GDPmImMhNKB8GMy/ZzCLBkqVdjm4oEPNGk/JI9r1ffWCpp gT4cs2j8XzOvGtwgEzfwtfbxP5i9GWYR8Rfztv199TWa7GB8kHm7Pfrez00dzmf3svMK TTQlRPFaPc/AZiLpzKVXmP219Cqo/KyHNsWQMnBGE/ZrL9HXUMn4Fz8l+La9SDHV7YSN zSC1BeY5aEazKgslBTLUhFZC2UwgHIMkLiUNzx64LYt/5BuaH0EGwGW0s/v+hsYzIopf QeDQ== 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=SxKKQVKQ81FxEODlSEwNHNcnF7Oq8Hf7J8RAhqpkNR0=; b=uefB3uU5mIglLdPKDSH45pB5IoXKuxjNKR0VUrKBIP3VukFTONkS0EErbJTEYQuENZ 9fHfKkmZXI+b/xhLTA0OuYRgfGYKQCPuWC2W4rdWcoGsYs47uThE8o3fV+tLn3unIEXg iDJON74bdM7My30+UYmuK3cLzVcNPjZRGsHBQbORB9qGNn/RhlZfTR17N7rarJM9YJSa RpvfMpq+pLIwkF5s7lY0gE+xmqsBxCydaABVFQA/SNkMXym4CRAEllwoZ79w/xmuZXqw 4+ZommvZJvW9bhOuS4NQAGkyBZjinsO63bRvGjZtwAruWF826YS9jyKdiFwhsBUp+ZYc 7trw== X-Gm-Message-State: ANoB5pkXu+e4Eub8JUqtvQ1SpUyRM/MsMsohbig3qkCPxkcq4QAbRJ10 n+vu3VTVG0LJ+XXhlCcXnfIAsQ== X-Received: by 2002:adf:dd4c:0:b0:241:c075:30db with SMTP id u12-20020adfdd4c000000b00241c07530dbmr7159238wrm.159.1669201684196; Wed, 23 Nov 2022 03:08:04 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:ae74:d94f:4677:3378]) by smtp.gmail.com with ESMTPSA id f13-20020a05600c4e8d00b003c6c182bef9sm2560406wmq.36.2022.11.23.03.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 03:08:03 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , Srinivas Kandagatla , Vinod Koul , Alex Elder , =?utf-8?q?Ilp?= =?utf-8?q?o_J=C3=A4rvinen?= Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 00/13] serial: qcom-geni-serial: implement support for SE DMA Date: Wed, 23 Nov 2022 12:07:46 +0100 Message-Id: <20221123110759.1836666-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=ham 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?1750285203912567135?= X-GMAIL-MSGID: =?utf-8?q?1750285203912567135?= 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. v2 -> v3: - drop devres patches from the series v1 -> v2: - turn to_dev_uport() macro into a static inline function - use CIRC_CNT_TO_END() and uart_xmit_advance() where applicable and don't handle xmit->tail directly - drop sizeof() where BYTES_PER_FIFO_WORD can be used - further refactor qcom_geni_serial_handle_tx_fifo() - collect review tags Bartosz Golaszewski (13): 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: improve 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: refactor qcom_geni_serial_handle_tx() 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 soc: qcom-geni-se: add more symbol definitions tty: serial: qcom-geni-serial: add support for serial engine DMA drivers/tty/serial/qcom_geni_serial.c | 606 +++++++++++++++++--------- include/linux/qcom-geni-se.h | 3 + 2 files changed, 409 insertions(+), 200 deletions(-)