From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6EACC433F5 for ; Fri, 15 Oct 2021 04:14:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62B7A61037 for ; Fri, 15 Oct 2021 04:14:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 62B7A61037 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ucyJh0pb5XaQk3UXcTgo42/mqmUzMNoPg+Xd4Y6vdHU=; b=wmsbcVZ2ICugA7 xzhI+IxCBsL1b8TiSlqYpQ59mOT3M/jRlvIMfJrufmfJnvmfonKDIFvVhOsQAn97+pZ9yr8uWHSqu SYXtgIGyWKzXhY2K7KNrp5TiDbT4cDjzQN3MKRlyZRu6KqS75pzjT1d6zr0OA99nHJL3YWK9yyrzn bXVjnURrSA2RT3EFnzvBF4lYtjWCoNpv7uZjUiCqTg3i9D2Sn3JS2dXdCT8XI8gMWWsDS+mUFzrJD GUHM+vxEcaS23Col/j9YD2uDJMN4XcoBU3L/gOMOFtPOyC+xGXVh1jrarYxOsDPOiCmSkpJN56WLz 3TbjcIB8yCLC4MylLbag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbEaY-005O1K-QS; Fri, 15 Oct 2021 04:12:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbEaV-005O0V-6j for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 04:12:56 +0000 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-Disposition: inline In-Reply-To: <37c1845d-9323-3187-ed0b-b9795758649d@kontron.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_211255_302685_992583E1 X-CRM114-Status: GOOD ( 26.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > >> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel