Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp129258lqm; Mon, 10 Jun 2024 15:25:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWrodl6OG8CjOEMb1IQOCpJigg1+kkwlzYPYv0Q1zJb2sj29cYCAPTFg142cC3/1EvTsvjHukq3Jw3ZO8+6e7PefvReaq7h7hAdh/t1Q== X-Google-Smtp-Source: AGHT+IGwiqpdABjb8/WTNK42WS/B/9CZS2mrPXdFqhuD7sMz++mqgQttANCnxN5st6g7kGATmCHF X-Received: by 2002:a05:6a00:988:b0:704:2516:8d17 with SMTP id d2e1a72fcca58-705a84c3420mr1625533b3a.8.1718058356357; Mon, 10 Jun 2024 15:25:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718058356; cv=pass; d=google.com; s=arc-20160816; b=0IpeDlVW4QCelUR5gbjSH5Df/Dmj/xPryAZYXusVwZ2U4AjO0nXPg3ekU1bPIufbTO t71dh8WMqPU2sBw87+lBLRTCtTViYiJ4WhpmSaGsKUb6x76Ev0hHSe6UzcLqAvmvfUSM duzofBMqoALMCP7xCriOctdeNsxl9aa5xrZ7z5chVGUc8FwgLbOEES0urPJ1UIMcxRl1 Ddj/VxXdFQBmWROcxiwIcyHYRu7lqliz/xzoSZQnTYCxOar4q3jE7BKh+dpW8zrv7Auw CeQ7qsFODu9ALRuKZxBnQiYiNtCC49/Jxgrl2Y0g1X7dc7R3kV2Fe4DX0tN9IXtDEk1T 5QKw== 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=fyDnUVi7f01VKkUwYe3kP2/vlms1ESU+sUAt3unZHAg=; fh=ngQwVCYyf23c3yQvjS9waB4dEYjfRipIhXR0JI93QIs=; b=XNGr8n9TZlTGmwITP9FFowHpnkE7nH1s/ZRSE9+J0o79VnHphke98ROPNXbvUYHNWE mBKN3VLD2sgjzXOLhvlz2p5LQ5Q94C/q4v8YEeDgj4c9F4SWFWVwiX/1aCwQ60cwv7IX eRruyPeACcDywpQXKPA22jVIrCXPZmAvmBRbv+vjfpCSh0bBdmf4cCHtewQqkA6SIWoN PzzkiiwKomQvUznHv67VF8/vAEWivU/ai4D3NaXcdMyRzNySd1YQpQPJeQbAujFxD/Fr NPlMcgdbThTnzbrr6RBKsZTtfwKR/9FXEga8RC4+oL3RBRUd+3TgJLko49sFbjZQRSkM J/MA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XhGU1jQO; 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-208993-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2895a702si8438145a12.625.2024.06.10.15.25.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:25:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208993-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XhGU1jQO; 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-208993-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208993-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3398282BD7 for ; Mon, 10 Jun 2024 22:25:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 146951514C1; Mon, 10 Jun 2024 22:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XhGU1jQO" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 D1AF615098A for ; Mon, 10 Jun 2024 22:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718058338; cv=none; b=FOoFY9y4r9F0CwDkvhpQEswR/z4NdDeM2dylQOkgNQ/XMu937OIpQJBku9b8XCIojsl9QsLUvAlp2wYkUuB6Yu0TZ8r4z1S3N7+lDzKA9euEyQXOFSHWzqsfM8/a7SdndZ32snMIS8bUy1xisQwHoAyOrlEkDE9U3rxOX/m7kFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718058338; c=relaxed/simple; bh=+RxVcrk5xlinIyKBU8E8yKLsymOqJrp8Zmr9e1mtnNc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ToJu4fUjAUXwEh2eSOw1tAU7pUdYqwP9UBI25VToj82LN4wJjkpO7BC0c7rzTdCW2ZRFx+RcMzzwWVT/7URkpp+Q9MlMlRQbUx5ZLF+ZZLwc6TRsL6jcUbPBUknrtAKJ808EZYrpbqZBI0LYwdQNRXFY1dxGeHq1I6igpLte+6Y= 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=XhGU1jQO; arc=none smtp.client-ip=209.85.214.176 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-f176.google.com with SMTP id d9443c01a7336-1f70fdc9644so12372015ad.0 for ; Mon, 10 Jun 2024 15:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718058336; x=1718663136; 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=fyDnUVi7f01VKkUwYe3kP2/vlms1ESU+sUAt3unZHAg=; b=XhGU1jQOpxq8bONZwPPsHHLaV3UQVq/GKl1B6jBpQ5MsEOpOin8j2bMaNhWRY9wqEH vo845YmHGuqLPMbVkXa9GXE6h0H5K0/K/90Z3E+OIgTp3OD6PV+qX5uHHTpgsMH42gXZ +UfEQubIHNsXgx2iaVkQvB+qIP4YpT/RFJ4Ng= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718058336; x=1718663136; 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=fyDnUVi7f01VKkUwYe3kP2/vlms1ESU+sUAt3unZHAg=; b=mA18nipTYsCWl46WSPAr6I1nzuN7RVqmu1oMtOWIQKucvrStD1jHxhuYAjX3vsZPG3 PUyBaSSOEuzw0v1O6GlBFWahR3dC7h4NfiKFdggskZ0353qh8y2OzSUO8uU7tGymwtvh Fo9tIkgjCQZtaxzbj3h/db3Wgyfuf4J1x7nqysPPB/tagl6XyUN5Jfy8nuSWBwa2CPk1 /aXA+dIqPJG2AceVt2YkVT+TTy5534oYm1i0lDh72mbpecfSvJLAhaCGhUxNfu65oU9d lQiZMIavue8f4tJD4b4kMbLarf3UqelGavTEfk0sr0bbBbhXqVq7Y53gzBIHloNFZaPX Tigg== X-Forwarded-Encrypted: i=1; AJvYcCXUJZujvtD17QFuFn3RbMznVDgohSjvaQcfTmxGMRMsNLs7R3GL/U//VJ8Ag8CmxAVjW/jjVE0UdWQJCDU+bKd3LiNfSVkAePHITK9v X-Gm-Message-State: AOJu0YxJHAOqeazSQGu55IqmTMDU3t0+TM3KvDV4JsSMgm/hXEXoX91v 9kmnVEtSusR0QIhKDsk4l7XpJSoUW3FBXL8P7E93/ua+VPNUg5RDAb0JlL/12w== X-Received: by 2002:a17:903:22c2:b0:1f4:8bb9:924f with SMTP id d9443c01a7336-1f72879f841mr9952475ad.1.1718058336214; Mon, 10 Jun 2024 15:25:36 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:bba2:69f4:1b51:d0f5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f71029e223sm29212325ad.170.2024.06.10.15.25.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:25:35 -0700 (PDT) From: Douglas Anderson To: Greg Kroah-Hartman , Jiri Slaby Cc: Yicong Yang , Tony Lindgren , Andy Shevchenko , Johan Hovold , John Ogness , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Stephen Boyd , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Douglas Anderson Subject: [PATCH v4 1/8] soc: qcom: geni-se: Add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers Date: Mon, 10 Jun 2024 15:24:19 -0700 Message-ID: <20240610152420.v4.1.Ife7ced506aef1be3158712aa3ff34a006b973559@changeid> X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog In-Reply-To: <20240610222515.3023730-1-dianders@chromium.org> References: <20240610222515.3023730-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. Acked-by: Bjorn Andersson Signed-off-by: Douglas Anderson --- Since these new definitions are used in the future UART patches and Bjorn has Acked them, I'd expect them to go through the same tree as the UART patches that need them. Note: in v4 I added the GP_LENGTH but kept Bjorn's Ack since it seemed very minor. Changes in v4: - Add GP_LENGTH field definition. Changes in v2: - New include/linux/soc/qcom/geni-se.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/soc/qcom/geni-se.h b/include/linux/soc/qcom/geni-se.h index 0f038a1a0330..c3bca9c0bf2c 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 @@ -234,6 +240,9 @@ struct geni_se { #define IO2_DATA_IN BIT(1) #define RX_DATA_IN BIT(0) +/* SE_GENI_M_GP_LENGTH and SE_GENI_S_GP_LENGTH fields */ +#define GP_LENGTH GENMASK(31, 0) + /* SE_DMA_TX_IRQ_STAT Register fields */ #define TX_DMA_DONE BIT(0) #define TX_EOT BIT(1) -- 2.45.2.505.gda0bf45e8d-goog