Message ID | 20221129110012.224685-1-brgl@bgdev.pl |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp263374wrr; Tue, 29 Nov 2022 03:01:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TOuhENw/hScX09P1e/wsQgJzjCWUAI4N2S3tDPxbffpwXK5AVn2wt5IvGmnZ2ihBCMh4L X-Received: by 2002:a05:6a00:2403:b0:572:698b:5f69 with SMTP id z3-20020a056a00240300b00572698b5f69mr40995305pfh.54.1669719678047; Tue, 29 Nov 2022 03:01:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669719678; cv=none; d=google.com; s=arc-20160816; b=gPe9fvRZg0w6j0itlWr2dyRnwKmb/cPIWxxJ94TYPH7s9aIClmvcP0r0HtBcena8Xl g3xhDoEdyRQbVoe0fG32wpzikVs3r8Jc9ow+Wei8VDofqH42awf8+sRj921jUz73sUu8 ryF83Qs8UXYhcbTznBQavZPAoey29Nr14R6f8CaDiRpVbSuod1esTvnxir1yyJUO3llm 0WM2Fk0hkz2czJ/9xREEmfKqtd54AaJnuawIWsmhPDqjUEBNiPzyMeQzV9UoTw4TagOn mYcDHlB9rQMX0gxI2GgAjOMrJfHqLO5r35wQZElnUTKKsEzGXa/8ptwYDN43tPoD7k49 tTSQ== 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=d+09qXh0NhML0ghMdZ0DgbukyltRXuBwI2pHrmUWaEg=; b=seAto3hqPNn3rk9Us1G2KEDnaXxSaBhZbIHcWqUNpqcdK1GjGBC26Qm9d1VqUROzUX /cLJJYHRJBrC7wRHf+cb9c/tBdtKreoAe5sTbotrrLN8bAPIzE1raDQAVGbQsJ44L6xb UuhA8h/zVrYsOCZrPwzvo6CKSbmac0+JU9FrpGqkFasj/QW2ZMEnF5jQoUfnARiHnzIE OrNbkDmchJXMu74ocvWH3BECWW8tP3SVrdN8qps+jp+pSybDresNbzHzyx2xfHhgujwC p5+Pt2Op1fXk7EieTWyNgSwzAKnn/S31By6RlnPEpGe+law8nxNiv2D1k3dy4pq4zTaO k4Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=aSquoMEB; 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 z1-20020a170902ee0100b00186b6a32284si13914207plb.548.2022.11.29.03.01.03; Tue, 29 Nov 2022 03:01:18 -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=aSquoMEB; 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 S232411AbiK2LAX (ORCPT <rfc822;rbbytesnap@gmail.com> + 99 others); Tue, 29 Nov 2022 06:00:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbiK2LAU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 29 Nov 2022 06:00:20 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11CFC5CD1B for <linux-kernel@vger.kernel.org>; Tue, 29 Nov 2022 03:00:19 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id t25-20020a1c7719000000b003cfa34ea516so623293wmi.1 for <linux-kernel@vger.kernel.org>; Tue, 29 Nov 2022 03:00:18 -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=d+09qXh0NhML0ghMdZ0DgbukyltRXuBwI2pHrmUWaEg=; b=aSquoMEBUfqqZNx/uEVzgl071VU0ZOwyQWPRpbeEXU96Y3avMpBFlRUq1Rpid5Yxao fMT0/rjff15nWSXDg9YySgo1iaxKkNGGGhV3q6ObZIT+5ijZmN/oc//F9Mv6tfemKakN rh8+q5gmIZkHaIV73wUOu9gVQnCHElEn0+Mkxr1UzbDKB6/bcnFa7TGDG5u52tuVX/sP ND9tVSfB3ITk729cxtnq7ix5GV/zGY7c2HzZSmI+re3SFMkQtMpywYpkyA2l3IrfxC5w Tc+Vt7PDAAxHyTNmqAINR8mjJw/+qL7RMofvBVc70HtePpeKoAOKcDr2tDBJwON6jyIK Lmvw== 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=d+09qXh0NhML0ghMdZ0DgbukyltRXuBwI2pHrmUWaEg=; b=Xab+7EVUC84Ni23qY7CIGneFOGSK2SkyCJGz+4d73ZhIBVXFSVqE2Ihf9KOaNEHpl4 BOpkUN9b7/OwRRrD5OgIb9k+40B19evOG5XUMeooNTZVRk+4cG5msL22Rqbwp01cJrG2 OEwkXIhPAkyfmG4NSSuuBycKS6qTC4cqewpTzyh/SCQHR4VhTrE6mx32O+utXYAcbqle gIYUO0r0Ey0bMaadzBQR/Ka4zNDVRdddiaMHcUwLJcVV/aeXNLvpWR2Z7KLucf44ykbW BszxMatgIUAey0aD7B49tSlQtEXUHQ3xCCCZuq7EZ1xygsxk7CLsO5dVZrFvRnk+vmpr xPCw== X-Gm-Message-State: ANoB5pmihEEe9g4YxwJ0knzFrU5gGIqGRSQ4crEPmS4KmqcpHAPEFPmb XM+0CVuVCXDUkjnqnhvZu+U0IQ== X-Received: by 2002:a05:600c:22c4:b0:3cf:71b7:7a41 with SMTP id 4-20020a05600c22c400b003cf71b77a41mr42246508wmg.31.1669719617513; Tue, 29 Nov 2022 03:00:17 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:6b19:1d8e:fbca:fd02]) by smtp.gmail.com with ESMTPSA id q19-20020a1cf313000000b003a3170a7af9sm1617658wmq.4.2022.11.29.03.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 03:00:17 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Vinod Koul <vkoul@kernel.org>, Alex Elder <elder@kernel.org>, =?utf-8?q?Ilp?= =?utf-8?q?o_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v4 00/13] serial: qcom-geni-serial: implement support for SE DMA Date: Tue, 29 Nov 2022 11:59:59 +0100 Message-Id: <20221129110012.224685-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750827981441667533?= X-GMAIL-MSGID: =?utf-8?q?1750827981441667533?= |
Series |
serial: qcom-geni-serial: implement support for SE DMA
|
|
Message
Bartosz Golaszewski
Nov. 29, 2022, 10:59 a.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
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.
v3 -> v4:
- don't assign NULL (even cast) to variables of type dma_addr_t
- refactor checking the SE_GENI_STATUS into two inline functions
- drop min_t() in favor of regular min() after adding some consistency to types
- check if the abort command was successful and emit a message if not when
stopping TX in DMA mode
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 | 628 +++++++++++++++++---------
include/linux/qcom-geni-se.h | 3 +
2 files changed, 415 insertions(+), 216 deletions(-)