Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp102881lqh; Thu, 30 May 2024 15:46:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrydZGUaakbsKIb7CsfQrlEqr2MthWFaGJWoo4iYFCyvrfYqvjwv+aGOwrq8Vx3f/QV6HGUYkTZmS9EucJ/v7V46iDDusagBcC2gVj0Q== X-Google-Smtp-Source: AGHT+IHIkAcbl9TZX6DHz2KCbF5hmLfJtF9vlpIO8ji+1oLSPFgS5IKRFiZte1PfgTopEO9RdtBl X-Received: by 2002:a2e:7c10:0:b0:2ea:82c8:c9e2 with SMTP id 38308e7fff4ca-2ea95160265mr1275521fa.24.1717109197836; Thu, 30 May 2024 15:46:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717109197; cv=pass; d=google.com; s=arc-20160816; b=tBIH1ebmnMoKFcIcDQaxtJsl9lcLhc8IlocgEAazkf3xjyFwYwrYpEt00yJfWnn6ji aHB6mLdMZpx/5sJZS4QJ1vX/v2HHHzFX5Q0C3A/U19cJaiuDlnW8EyZlXtTgaGhG0a+3 R4JM4Du3pXxqgJnJoreXA/Env0hrEgXdYCuWJE1l3M+rDgmz5mm6BECRdw18SmkYsQkf RAQSrqP/qtvma2fMxgaj+HKMlc3sq4JKFRuDSsFzvjg7a8MP2YpNpXRMhu6HWKXHrkwj mBQ7iviE0QFTEm1O3spJJxc1cd3ngjGt4obDsErHKv66PBsXX2I5152AXj4qaVtGevBL i0gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hVpFUdiW0gzcPxqtfC6QLNluJtCBHWicwGU5cZiObSw=; fh=mCsO/i1XVJ/tH6wFdVuw+TfhOtXkDzqV+CawTTD8sQ8=; b=c+sNR/nx7aQCxwgAOlAUXtVUw5fJ5uX03ZffSYQ10tNVVZhTOkwcaTtVV5KJvEMmoA BdaDB7odTWXYIf5n9Gup7fqI52D7rLli37BHWvB+cppTY8IgdwnMw6D/tJ9sRpLUy4Ld Qnxtvd2bIhrjmrM47afgCwQ8WrUCpvGiHcSJdhhl1D7F/4dB+7Tyj+WHcgeT181jmSFm cywzXlzp4wFUp8fxHCwXFsKDchVhTLY/MULIiGjfA+LXUTmus88C04qNWzdnv2WGavnK XhyKEa5806Ir8MA6FIkEsUkZhaQ9PZ0pnEIfZGFJN2Hp+9ZEO+lpOO/AUZYsFz0ZIXOs LuZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JCdoY4tn; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-195981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ba793esi278619a12.140.2024.05.30.15.46.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 15:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JCdoY4tn; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-195981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5D4AF1F25960 for ; Thu, 30 May 2024 22:46:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFDCA183995; Thu, 30 May 2024 22:46:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JCdoY4tn" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B70DD180A80 for ; Thu, 30 May 2024 22:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717109183; cv=none; b=Zih/koXrsTKnJ6XuzzwpklajZtDkkC87n6rvd56tzQroU//0enLMns6vCWN8wSABUpj3Apu4fMTFX/vel9Ys9y5EGBLVOqpLRKH8LsZ4L6vtD1Ts3u79fU9hqFZcSAdzpyfPPIduBk7++IHz/2lg81vLKkth79waiuXzBrZpdfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717109183; c=relaxed/simple; bh=WlTgC2HNp92PM3IzRTxNjM3/DoK9im+ZJtxtFVePiKc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZOoF7xPxqFFH+EdbREcObIcWzENRwEcr2WH8WvmN1/cpcBgqQDLe33nDNZ30tgxUT5B/1nODYlMw9Qmzd9Wxo2+OJGS4REC5aE3bCY8yIqLNcF1INsd33BLo9N6Sk2J7RPtA2kNOD+/V/cfLZQDY6+Q/c20JscxkrqeuQuqP3po= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=JCdoY4tn; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1f3469382f2so10990755ad.0 for ; Thu, 30 May 2024 15:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717109181; x=1717713981; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hVpFUdiW0gzcPxqtfC6QLNluJtCBHWicwGU5cZiObSw=; b=JCdoY4tnGqJZjLn3taXF+EYCT8VvA1MiSxfiGbBmpH2XFxMJVvJtRUmHcN6RcDI7oE 0RkQa7FVInoDi3HjJNLmyPR0U/filKQ3VjMT2xgzqpyPTMUZk5Yxz0DTvsesyQ9VM5Bu nuE0oJX0L4MMkFTCmfju55IG+LDEbTAaTEDW4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717109181; x=1717713981; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hVpFUdiW0gzcPxqtfC6QLNluJtCBHWicwGU5cZiObSw=; b=GTyGdWHFYmgSGZjCHeqxeZo5kT4cyXJwXxkoMs+2dY0TjR8Jv/GfEY8XXuiiwsj78+ J8LffhOWHJ8DkFKbQYpfIWSkq+s628QV/f80vN980IMQV4KMQCJmj4/cnmYHGnwgIpgU MuRsbpjOu0fGm0QdFajlixHCaUbp21FiIGewaOy6QFlyewxdXddwucywxTzcO67fMWup gtz0yPra8Xc/E8S3S0XCyZw9SkxxcZs45YEpOUdu3UYI9/PRJFm+6bm1F4Yp9HBjLABt /SeD3xfL/WNqGrcJlquEi5VR13guDpL2+4GJeOKZEewZvpQ+QmEOqt5NYrrEA5cKwkCZ DEkw== X-Forwarded-Encrypted: i=1; AJvYcCWrFnM06iRggeC5B0R2Cfvp3MbgQbcMk6gt8EuuKcUAOTVK/8mBueEdfWe4z4dEgKmUb/TnWhHsSN0OpAF/qX4c6az97x/1X7U+CrXk X-Gm-Message-State: AOJu0YwG8TSVPH4vYn6fBYF06AxJcF5ePiP+lw+936jvkkm/fetnL6H/ llFGRExtxsf2o26LrlBMr+fYzNys0vWxyIY4+5w7n2ysFGRqKmN0BruCJxfS/A== X-Received: by 2002:a17:902:e5cf:b0:1f4:71f1:d5f with SMTP id d9443c01a7336-1f63707e8a4mr2856975ad.47.1717109180980; Thu, 30 May 2024 15:46:20 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:564b:72b6:4827:cf6a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f632410b20sm2955795ad.273.2024.05.30.15.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 15:46:19 -0700 (PDT) From: Douglas Anderson To: Greg Kroah-Hartman , Jiri Slaby Cc: linux-arm-msm@vger.kernel.org, John Ogness , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Tony Lindgren , Stephen Boyd , linux-serial@vger.kernel.org, Yicong Yang , Johan Hovold , linux-kernel@vger.kernel.org, Bjorn Andersson , Andy Shevchenko , Konrad Dybcio , Douglas Anderson Subject: [PATCH v2 1/7] soc: qcom: geni-se: Add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers Date: Thu, 30 May 2024 15:45:53 -0700 Message-ID: <20240530154553.v2.1.Ife7ced506aef1be3158712aa3ff34a006b973559@changeid> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240530224603.730042-1-dianders@chromium.org> References: <20240530224603.730042-1-dianders@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For UART devices the M_GP_LENGTH is the TX word count. For other devices this is the transaction word count. For UART devices the S_GP_LENGTH is the RX word count. The IRQ_EN set/clear registers allow you to set or clear bits in the IRQ_EN register without needing a read-modify-write. Signed-off-by: Douglas Anderson --- Since these new definitions are used in the future UART patches the hope is that they could be acked by Qualcomm folks and then go through the same tree as the UART patches that need them. Changes in v2: - New include/linux/soc/qcom/geni-se.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/soc/qcom/geni-se.h b/include/linux/soc/qcom/geni-se.h index 0f038a1a0330..8d07c442029b 100644 --- a/include/linux/soc/qcom/geni-se.h +++ b/include/linux/soc/qcom/geni-se.h @@ -88,11 +88,15 @@ struct geni_se { #define SE_GENI_M_IRQ_STATUS 0x610 #define SE_GENI_M_IRQ_EN 0x614 #define SE_GENI_M_IRQ_CLEAR 0x618 +#define SE_GENI_M_IRQ_EN_SET 0x61c +#define SE_GENI_M_IRQ_EN_CLEAR 0x620 #define SE_GENI_S_CMD0 0x630 #define SE_GENI_S_CMD_CTRL_REG 0x634 #define SE_GENI_S_IRQ_STATUS 0x640 #define SE_GENI_S_IRQ_EN 0x644 #define SE_GENI_S_IRQ_CLEAR 0x648 +#define SE_GENI_S_IRQ_EN_SET 0x64c +#define SE_GENI_S_IRQ_EN_CLEAR 0x650 #define SE_GENI_TX_FIFOn 0x700 #define SE_GENI_RX_FIFOn 0x780 #define SE_GENI_TX_FIFO_STATUS 0x800 @@ -101,6 +105,8 @@ struct geni_se { #define SE_GENI_RX_WATERMARK_REG 0x810 #define SE_GENI_RX_RFR_WATERMARK_REG 0x814 #define SE_GENI_IOS 0x908 +#define SE_GENI_M_GP_LENGTH 0x910 +#define SE_GENI_S_GP_LENGTH 0x914 #define SE_DMA_TX_IRQ_STAT 0xc40 #define SE_DMA_TX_IRQ_CLR 0xc44 #define SE_DMA_TX_FSM_RST 0xc58 -- 2.45.1.288.g0e0cd299f1-goog