Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3740734imu; Mon, 7 Jan 2019 08:36:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WPwIePLjh6wzcrwov+yMjcr7GzKmFH3Se7uUhVscl3BV5HzcQ3IZD2PSfjiKVYdRXXcjrZ X-Received: by 2002:a62:1d8f:: with SMTP id d137mr62994623pfd.11.1546879010685; Mon, 07 Jan 2019 08:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546879010; cv=none; d=google.com; s=arc-20160816; b=egmtV4PnbVzey9TkYqqU55SZ/3buJar4YlPkcOtEOI1/9cBPetBr/O8vt+ZBp0V3YI rfOOb8XD3hA56LShWFKKF1DIxOcnI7dB9kjxbesgJ5HiRTxkSUW5/1GUPHH2/P3OrlsP +a5P54MieLG8G0D4mJd91BDO1a+uNWQL01qZGn240m3p8CRCVxAkcau9h3ANDqozkE+H 6/TTjFB+Ap33Ahij8JcUboOtj2HNpp+fgkqwo6dJI6gLOQ6PNxuEMyyS3DkP6QsIjh3j dYxRmD+eAFUFIPyQPGqokI28UbsJuVuKTjKyf3JIHzivNqynyLAoJMkXjoqVLeTdd+cl 5VTA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=87suKXyWDaQtpwscAPWIdxtnolEhcgPagitxUoHqHsk=; b=v+3Eo+vpys2zUsluwMfah6b4TBeMjbsecDXjXVSz3DEZrTLpZX13XrnCMI1EBbSnLR JTBF1KidDUuzz4PvvZyBow+eE7c1crGZzp4jg4VOWnaSujVdxM3tL0aT7+f32YHKc55z lnCj620WsWHGmqyKgDM4mGid08bToiMQAGsFtU/K4235rR9jsnjJpz4ZHUCw22BG/t8x S5weJRcOT7b3eYUC48Sxd6pGUYPxlGLYMPUGnMt8Tj4EgibVfOYlYSPhl5A6YjhqhqqJ lB2CVf2mtXNuJq7j35NZyzY73HYNn5KSWexcGfIDeCiu/V1sU46wrXcPX+Y7WtJe5wTi aSwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=UEKnMy4L; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si3810429pgi.480.2019.01.07.08.36.35; Mon, 07 Jan 2019 08:36:50 -0800 (PST) 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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=UEKnMy4L; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729737AbfAGPWL (ORCPT + 99 others); Mon, 7 Jan 2019 10:22:11 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:44934 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727670AbfAGPWK (ORCPT ); Mon, 7 Jan 2019 10:22:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=87suKXyWDaQtpwscAPWIdxtnolEhcgPagitxUoHqHsk=; b=UEKnMy4LXriOQwuvoxJLeUjnq ufgufAN/Rby88cVYnMR3eh2jopoN6iLXGMxmEwrtj6iMAXZVFzDiR9/Af2NYhCX476p4ZofXF3DV6 Tk3r2xX3qoLZo6vvzotPOOxdjrcY0KDbHMZaj+McXIct7yZcSBQHK+Ry++F1LKXIm9AgQ=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1ggWjA-0007Ot-DS; Mon, 07 Jan 2019 15:22:08 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id A87801127491; Mon, 7 Jan 2019 15:22:07 +0000 (GMT) Date: Mon, 7 Jan 2019 15:22:07 +0000 From: Mark Brown To: Clark Wang Cc: "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 8/8] spi: lpspi: add dma mode support Message-ID: <20190107152207.GG9570@sirena.org.uk> References: <20190107074639.6336-1-xiaoning.wang@nxp.com> <20190107074639.6336-9-xiaoning.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RDS4xtyBfx+7DiaI" Content-Disposition: inline In-Reply-To: <20190107074639.6336-9-xiaoning.wang@nxp.com> X-Cookie: NOBODY EXPECTS THE SPANISH INQUISITION! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RDS4xtyBfx+7DiaI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 07, 2019 at 07:47:49AM +0000, Clark Wang wrote: A couple of small nits but otherwise this looks good: > + bytes_per_word =3D fsl_lpspi_bytes_per_word(transfer->bits_per_word); > + if (bytes_per_word !=3D 1 && bytes_per_word !=3D 2 && bytes_per_word != =3D 4) > + return false; This would be clearer written as a switch statement. > @@ -301,12 +352,59 @@ static int fsl_lpspi_set_bitrate(struct fsl_lpspi_d= ata *fsl_lpspi) > writel(scldiv | (scldiv << 8) | ((scldiv >> 1) << 16), > fsl_lpspi->base + IMX7ULP_CCR); > =20 > - dev_dbg(fsl_lpspi->dev, "perclk=3D%d, speed=3D%d, prescale =3D%d, scldi= v=3D%d\n", > + dev_dbg(fsl_lpspi->dev, "perclk=3D%d, speed=3D%d, prescale=3D%d, scldiv= =3D%d\n", > perclk_rate, config.speed_hz, prescale, scldiv); > =20 > return 0; > } > =20 This looks like an unrelated typo fix, should be a separate patch. --RDS4xtyBfx+7DiaI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlwzbp4ACgkQJNaLcl1U h9Ajsgf/Yha2C12GozXXbtV+VEOkPRDxY5PnRhuK4O6TJPJ5J1RCKg0OnAPHghyi pgE8rq3k1wvFu571RkgEAEtqJILViIEXTDDW++UVh1k5ePRx9/61sJEDvmfqLa2V l4m6tziQVLz94sebXS1De+z7Q2XbxAGj/9KoYeI6eOHEB4UCLbLh/xq5OVL+T0uL vwL8vlXOFhQF14exiEM7Xs0YfljJaLW5sLHEU6lU4hltFA94/KtwbSULpOXzA81t I9/frO8i+GYulmgv/29dUGXJMyA3NpSi6lsj+BJ/zPgb0/juf31LjGHIUZCtZRzy UBz2r8JgovhZRMbL84YGO5mGvYl2tw== =Dlhv -----END PGP SIGNATURE----- --RDS4xtyBfx+7DiaI--