Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp443708ybh; Tue, 10 Mar 2020 01:38:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtbmrFBreKOlUWVjGXghO4PD6zOoZI7BpFPO6yMfbWUKz48szNntPZkPUL4CeaeCD+1pMBw X-Received: by 2002:aca:3857:: with SMTP id f84mr320442oia.150.1583829535409; Tue, 10 Mar 2020 01:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583829535; cv=none; d=google.com; s=arc-20160816; b=DLoNi295kYbVMXXZ64+8Zk/DeFYfX2iMKhYlemrPu3wiJWNzgiW3EcA2Fim0Pi5Gqv A3lBJ5lGR3cV3pxJ9iCJ1nV2OPy+1nY6Ju3lMP8WB3KqQcLAudXzvd6VX8hKT7xzVsRz piLeQ5n/ccdRyymmBpH7Sc1SxBB9COg4VKRzSgfdJyzpzznNAT3quvifXqmVeRsfwMdW Od4YTTKeWYBXyqTwxx6oYODA7N9dR/5/yDiv136Rwsx1wuEOyCAQJ/HqrRJlJEXJlbx1 L1DK6VlwqkM6eHDdicTzOniKZevrVwXDt287bCe6lodwUd9AME1dcwRbY9cFhWjRPpJ/ jjcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FZm/vfpe0084vsba1vpIlzw3ef/mVfHZb7/InPFpUaY=; b=MS0GlCWQkzhQx/MdcRZmq/XKhzdrAVTK6E+H1tiX2KslVXnVN4cIXYzH1DoD3s+45A FS65EqOJ7BcmF6j1FQr4FN5DK8LKgiqizb3MCjckxUsHpqu4P2i0ZoKcWQX8x+0Os5Sw KHpXmJ95Iv0QX4NatPvFYUZcYC/qiDOWfncjsXk1vxrEyjS0G7gKF5szYrBczWqGIe/f qTdHiXy1FFYVZT51qLNmcyvtGDPSxPdESZDrICE/dHoSwie5JGTSrcdV/tysqOlL0TfB JaWFpQz1e9bfG0gK4wGh9ATKEOOLysxEdjTjLvDCdJ1rOcyeRKwMUIUMF+ZdYBdHgc2X 5f4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si6970779otp.98.2020.03.10.01.38.43; Tue, 10 Mar 2020 01:38:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbgCJIhm (ORCPT + 99 others); Tue, 10 Mar 2020 04:37:42 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:46081 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbgCJIhm (ORCPT ); Tue, 10 Mar 2020 04:37:42 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBaOF-0008Uo-Lg; Tue, 10 Mar 2020 09:37:27 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jBaOD-00047A-I9; Tue, 10 Mar 2020 09:37:25 +0100 Date: Tue, 10 Mar 2020 09:37:25 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Robin Gong Cc: Sascha Hauer , "vkoul@kernel.org" , "shawnguo@kernel.org" , "broonie@kernel.org" , "robh+dt@kernel.org" , "festevam@gmail.com" , "dan.j.williams@intel.com" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "l.stach@pengutronix.de" , "martin.fuzzey@flowbird.group" , "kernel@pengutronix.de" , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "dmaengine@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [RESEND v6 06/13] spi: imx: fix ERR009165 Message-ID: <20200310083725.sb6cufp5wznvxcji@pengutronix.de> References: <1583839922-22699-1-git-send-email-yibin.gong@nxp.com> <1583839922-22699-7-git-send-email-yibin.gong@nxp.com> <20200310073920.GR3335@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Mar 10, 2020 at 08:27:41AM +0000, Robin Gong wrote: > On 2020/03/10 Sascha Hauer wrote: > > On Tue, Mar 10, 2020 at 07:31:55PM +0800, Robin Gong wrote: > > > writel(ctrl, spi_imx->base + MX51_ECSPI_CTRL); > > > > > > @@ -612,12 +613,14 @@ static int mx51_ecspi_prepare_transfer(struct > > > spi_imx_data *spi_imx, > > > > > > static void mx51_setup_wml(struct spi_imx_data *spi_imx) { > > > + u32 tx_wml = 0; > > > + > > > /* > > > * Configure the DMA register: setup the watermark > > > * and enable DMA request. > > > */ > > > writel(MX51_ECSPI_DMA_RX_WML(spi_imx->wml - 1) | > > > - MX51_ECSPI_DMA_TX_WML(spi_imx->wml) | > > > + MX51_ECSPI_DMA_TX_WML(tx_wml) | > > > > tx_wml is never assigned any other value than 0. Drop the variable. > That's prepared for 07/13 patch which may assign spi_imx->wml to tx_wml. Then this belongs into patch 7, right? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |