Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp294941lqj; Sat, 1 Jun 2024 21:23:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkUH1H7ciX1Txp1XSXq27I4wY8XexctpZMHqNAcGKNyXuHUUwVPXbdPOISJx6ozcR/aFS9R3zvGGfhLhvv8BCWZGSns1nMOdeNXGanZw== X-Google-Smtp-Source: AGHT+IHKWHtCrHxr1hbw6EvtW3SSaTnk36JG7KCAKHTk/EIcB4vyRkXLZrlBP5taWaVXwSmCzheY X-Received: by 2002:a05:6358:7e01:b0:199:433d:aa3c with SMTP id e5c5f4694b2df-19b490d642bmr802470155d.32.1717302227591; Sat, 01 Jun 2024 21:23:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717302227; cv=pass; d=google.com; s=arc-20160816; b=CTdT+SIKiz17TeC8hXLdcm+Omn8lZnoJ51eMr0f1Z0bibgtEfPlZ0GdH0HUT5/bcQa SUzy9dOQMk1CN6ietdP2lr29l4xBv8U/dFuETaww/nACRNS89jqAHxE9MOHPIqJ1Bp79 S8Wdn02WyhdWE08aJdY2oWJwikoLXhjvnfmAfMVm2Tixg1eN6emGV6akS0eJklIqqr5x l29YT7aY+SFiBoMY1S97uwCs19QHyj+sYoi67TSh0ATbUe9zTGXWR4R3zcGv3bIzYwJf Qyt/YPVfRyKYICyfYDEwYN+/xfqSg3DCGgFpEIe4TjFTAMhH7Hm1Mik/yKJbtZZ2lhHY +ULg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KKotzg/R4Eym0sjpeIcyS16Fg3zK2lYOUf0Y/iJnxvY=; fh=NmfTlgCbhSbn/jmsyTAMnKDY1bdErpSc2bzFGch+MFA=; b=poqRMM3k9zpF/cgh2j8HmALuSlsIIRimOrQHOFP1Z49HcT+bqQ+aS/xsbaOM01ip87 qQOP3LnQhAgIzXfGxzsDCNOzLcJHyND7C7SKuhkLZ9p5jy6ZUCNWFiHTwebyMnK5puvx J3Fj1CBPB9twU+fv7d/r87SE7FD7wUxsZjHnO3Ff5U1KOVTFHou73zFIkNd7bjmBFIBb OjW73nDZYyIPX6Gsv3iobKvEjXuxTVWDaLcGxnHcEvGGFmu5gKGXKRbKAkT99Cs8whEh cmegWFuBbhMiFi2TO7U2DvvMoNOgKINFDvq80teyaIeKxDBtN0nvDigW1azD4zItQhm/ 7RDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UwBfu0bR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c284e7c9si4228856a91.177.2024.06.01.21.23.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 21:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UwBfu0bR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 381FE281BF4 for ; Sun, 2 Jun 2024 04:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4651714A8F; Sun, 2 Jun 2024 04:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UwBfu0bR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67057AD2D; Sun, 2 Jun 2024 04:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717302215; cv=none; b=MZ7jnnVJnnqNuvXFwFLtW4qltl/xeZIimQ0lLcDZAQRarsOB0t5Q95TW+aCCyO0GAbO20Uq9VNiGDjWPy+I85sypzIfyep3xBlSq9Pmg4LV+Gv8y6p7EqVRIz3dWB6UXq32Wu14ZM6moJyTOBrqqqX6v+cstGqb2Ao2ePGocQD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717302215; c=relaxed/simple; bh=t3NPqJkk+SwSAxF9jIi4Udg7haRJ/INOmuYkJneaTVM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KH7AZsGvABrNFOKtOofvYLTpilA3u0rDw4P4ZuB87jeYBj+sOh0tFNeN8NaBPciF3YRMbGm6swazer+boWWp1m4LoBUq8Nej1Yy5cmqhzZLTrRPn8LQ8iAp6Y9cQN+/yxOsqHkDuqttf4/ill0XCSa+Z7Yp+pJeu9iV/FSfnkGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UwBfu0bR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5526C2BBFC; Sun, 2 Jun 2024 04:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717302215; bh=t3NPqJkk+SwSAxF9jIi4Udg7haRJ/INOmuYkJneaTVM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UwBfu0bRIw4YSjrdPS+0JfY/vcvheGz6Afhx2SJjOWDow/xVIGO8CjhI6+OITNut0 qfVYsyxmpvcyjK3D5z7a/pCvMqJsMdxPXpY78Rdmqg5QZxKECvYLzdfcg8+4t6bGwC FrFrHvx6NOsaoQmg67FWFvI1pRwKp83yurhWP31mupnxdWsc43H4+5kYFSoWaX1dUm 5hwmhH0sR6OV+r/ja5rxElVijKKlZK271XfGhjth4JhSfpP3pDh69z1Mle919ye1D9 4UjyYjeA9hXkFpxK1NvsL8Z2BmSnVH78aBZS4S2EbsER0uuazqLWBkmzbPIm9HuhiS qTGXw+rCouvdQ== Date: Sat, 1 Jun 2024 23:23:32 -0500 From: Bjorn Andersson To: Douglas Anderson Cc: Greg Kroah-Hartman , Jiri Slaby , linux-arm-msm@vger.kernel.org, John Ogness , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Tony Lindgren , Stephen Boyd , linux-serial@vger.kernel.org, Yicong Yang , Johan Hovold , linux-kernel@vger.kernel.org, Andy Shevchenko , Konrad Dybcio Subject: Re: [PATCH v2 1/7] soc: qcom: geni-se: Add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers Message-ID: References: <20240530224603.730042-1-dianders@chromium.org> <20240530154553.v2.1.Ife7ced506aef1be3158712aa3ff34a006b973559@changeid> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240530154553.v2.1.Ife7ced506aef1be3158712aa3ff34a006b973559@changeid> On Thu, May 30, 2024 at 03:45:53PM GMT, Douglas Anderson wrote: > 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 Regards, Bjorn > 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 >