From mboxrd@z Thu Jan 1 00:00:00 1970 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 E9E551772E for ; Sun, 1 Oct 2023 12:23:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D07EFC433C8; Sun, 1 Oct 2023 12:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696163019; bh=bGLLx3W/04YDixrwTRJ2+yQqyEYUWpZQHtkoZLDsy3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=caoR0sLj5VpWHHsGJ1M4cEFL/G+xaKIL0fGS7ecUE24Tb0AQbuHTYmPt6fWfYI4kE TK13OC9lhMsw2OW16ainYYFdxcogJHS+ARuInHIEWuyjI9jHE6Q+X14xZOJeqLBBC0 6aMr8i0vUsfeE2LX5ueOwWGWxQmEJkox6EiSZcpREpvgNJnbJK9JK2SW88GNZm0ERR A6F/MYDc/1BP5eP8cBXGYjfbGzhOch4YcnT/nE21yXD4dA/+oGBHXQ7bbATZ5J1Djb LjnANZrLCxfiCTxiIGqs+xVi76QJWjtivfn4LJLzk705GgEdVULago4+TBeZIJXwYx f9Up9PwAIu++Q== Date: Sun, 1 Oct 2023 14:23:34 +0200 From: Simon Horman To: Markus Schneider-Pargmann Cc: Marc Kleine-Budde , Chandrasekar Ramakrishnan , Wolfgang Grandegger , Vincent MAILHOL , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Julien Panis , Judith Mendez Subject: Re: [PATCH v6 05/14] can: m_can: Implement transmit coalescing Message-ID: <20231001122334.GM92317@kernel.org> References: <20230929141304.3934380-1-msp@baylibre.com> <20230929141304.3934380-6-msp@baylibre.com> Precedence: bulk X-Mailing-List: netdev@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: <20230929141304.3934380-6-msp@baylibre.com> On Fri, Sep 29, 2023 at 04:12:55PM +0200, Markus Schneider-Pargmann wrote: > Extend the coalescing implementation for transmits. > > In normal mode the chip raises an interrupt for every finished transmit. > This implementation switches to coalescing mode as soon as an interrupt > handled a transmit. For coalescing the watermark level interrupt is used > to interrupt exactly after x frames were sent. It switches back into > normal mode once there was an interrupt with no finished transmit and > the timer being inactive. > > The timer is shared with receive coalescing. The time for receive and > transmit coalescing timers have to be the same for that to work. The > benefit is to have only a single running timer. > > Signed-off-by: Markus Schneider-Pargmann Reviewed-by: Simon Horman