Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp261084pxb; Fri, 15 Oct 2021 05:09:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0ieRbpOnLXgWvYr2boQ2jS9Q/fJzlofBOguUX4/uy49kqS0E6gBh/a0l/DQPoW1u5pylA X-Received: by 2002:a17:906:a106:: with SMTP id t6mr6362946ejy.170.1634299774795; Fri, 15 Oct 2021 05:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634299774; cv=none; d=google.com; s=arc-20160816; b=xk7aW1vIFedr2lkKtyh8bo8fcnjfHcPTQtffFBWhB2E+flhKGSC4gYEe0ub33YEqif OQKoMt4g/BvwUuEC9bWPqrPNlSkbgFFe545xiOYox52Z1omtGB7hBz8+4Pf+EBn6+Dpv y5//h0I5tCe6l25E+tmLMQ+4uhcj6rdehjlFP6nXATBxpXjcKqd6q9uaZCpTChaQPCtB zruoA31y9VenKSbztvyrAkGqHpu136yPk+RvIJ68+Pnb+DtJMvasmcouCV3x55VwiI1w q9LPPVEqibnWw43VXPzteO4UcjkNHeaxVxHC248weV/PkGSF7PsX/zV4slxoNEv3nW8t MCWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hd037JlqcHcidXOQRyO1iggeYXV9Um0lyt6FpGqPCkg=; b=UYjA5AaemG9VVu2NM8sS54TEy0Lesw+4v1Y7gnhuIhYVM1XwQ4WeUoPYxSoFEv9Qww HackIsoyP23MSnYtfr9JBkw19kqF6sQNh43JEi+VCUVJJ+0OmsyVo4CWGhStdIM4iLqx KaDUJpCf2F1ro2J+YM/Dkzq4GGK+gzevAw1TFBQ8ZE5I24Gyqj1Xsu46lDquTV2+qhF+ 4jujP0P74nkhcqRH7gi8+k4FxxrcmplOt+fTDShxRG6m1k+AAjVfejU44uQ88OiD1XYE BZULJT5WNzag881+DvATM+5pKnw9++Nc8UXBfNiMcts9Gwt8GXNHfU5TX4+/b8S/FnnO w50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n6LAhMRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si8186007ejk.308.2021.10.15.05.09.10; Fri, 15 Oct 2021 05:09:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n6LAhMRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233685AbhJOEPB (ORCPT + 99 others); Fri, 15 Oct 2021 00:15:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:35454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233083AbhJOEPA (ORCPT ); Fri, 15 Oct 2021 00:15:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F9AA61168; Fri, 15 Oct 2021 04:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634271174; bh=ep/IXH3UxYH/vOBTWCg7qNPyVSjQ3xGnQubpgz0v/V4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n6LAhMRKZOIopPXdzW0rHn0TXO9aq6GW48M95bssT/Qu4/N/zKrqxhEC+tdhU4LXx 37HChB1W3b8uppBWdpYXJa+B5jEuFb3dLe8w0Xl9YWTxb/IT8jI5bBVPAfVabk5SNI 0BFoipCGiQ/R8iG4KucsrtUfqilWjEVxSWMNV7bF8Tissco4BmKrQCfmMpx3E5cSFv F7osaIOhPrLvwyaurfG7ggqIZaClT76RNMrpOCmHyqijwhjBNTsy9UoXbmD0heoCZG zVtz8ENURA5dAofGoZ433BOAdlSWnQivCpQ+63WCi1ude9iKDYKjQyDfcHcNVlJ0lP 322unydic2xsQ== Date: Fri, 15 Oct 2021 12:12:40 +0800 From: Shawn Guo To: Frieder Schrempf Cc: Frieder Schrempf , devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: Re: [PATCH 5/8] arm64: dts: imx8mm-kontron: Fix CAN SPI clock frequency Message-ID: <20211015041239.GH22881@dragon> References: <20210930155633.2745201-1-frieder@fris.de> <20210930155633.2745201-6-frieder@fris.de> <20211005071230.GC20743@dragon> <37c1845d-9323-3187-ed0b-b9795758649d@kontron.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37c1845d-9323-3187-ed0b-b9795758649d@kontron.de> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 07:17:13PM +0200, Frieder Schrempf wrote: > On 05.10.21 09:12, Shawn Guo wrote: > > On Thu, Sep 30, 2021 at 05:56:28PM +0200, Frieder Schrempf wrote: > >> From: Frieder Schrempf > >> > >> The MCP2515 can be used with an SPI clock of up to 10 MHz. Set the > >> limit accordingly to prevent any performance issues caused by the > >> really low clock speed of 100 kHz. > > > > Could you share some testing result of this change? > > Without this change, receiving CAN messages on the board beyond a > certain bitrate will cause overrun errors (see 'ip -det -stat link show > can0'). > > With this fix, receiving messages on the bus works without any overrun > errors for bitrates up to 1 MBit. > > > > > >> > >> Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") > > > > It's really an optimization rather than fix, isn't it? > > It removes the arbitrarily low limit on the SPI frequency, that was > caused by a typo in the original dts. As the usage of the CAN bus is > seriously affected by this I would consider it a fix. But if you think > otherwise, feel free to remove the Fixes tag. Put all these good information into commit log, and I will be happy to take it as a fix. Shawn > >> Cc: stable@vger.kernel.org > >> Signed-off-by: Frieder Schrempf > >> --- > >> arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts > >> index f2c8ccefd1bf..dbf11e03ecce 100644 > >> --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts > >> +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts > >> @@ -98,7 +98,7 @@ can0: can@0 { > >> clocks = <&osc_can>; > >> interrupt-parent = <&gpio4>; > >> interrupts = <28 IRQ_TYPE_EDGE_FALLING>; > >> - spi-max-frequency = <100000>; > >> + spi-max-frequency = <10000000>; > >> vdd-supply = <®_vdd_3v3>; > >> xceiver-supply = <®_vdd_5v>; > >> }; > >> -- > >> 2.33.0 > >>