Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp618694ybd; Sat, 29 Jun 2019 04:12:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2jzmNDnEx30aJ5y5VHm6Kmm3M4Jr2wH94gVtJMTUYlaWPotiNYL/BkGtcjipnJIW70kp7 X-Received: by 2002:a65:62c4:: with SMTP id m4mr13665244pgv.243.1561806755501; Sat, 29 Jun 2019 04:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561806755; cv=none; d=google.com; s=arc-20160816; b=CMN0n106AoJFu4gCyVHsLcpQugQ162qmdwibgfG6BXy10EklgMleTfTUXozfy56MrN M3TdebNN3ppx231Y19UQVf1vDrJXSJlJz3jkRTcj1h6yF663Xt/6nnVXkTH3zNZ0aN4O KzOwK4nn84jaqSaJQG87LtfrEpxW/gDNsx/fDaqyO/U5f9Bmq+xWA9M0bc0CEtznt9+c O+IuWMSOezMVtfEb+br9r9QBptcpXCJX78TTOTmvF1H7i9mcEnqwZjx2IiEpmX5sLb2P OKm1XZj7WE/qCjekBdaYDwM+avsLfeu9jYDpjXd27ChFYD7CgteyNIupFW35ixeun/EV 17Gg== 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; bh=xm1C+PV7xxxW+SJiCD7n0Pn5oRej2vGsC+VFkG2+ShM=; b=iCctVmWiRWZfVuOJw5iqJml73hcQ2Lp7uKa9Uy/7ACZdsgqPD+5cO0JQKK4lxRybyV 8o610vUXXBujpTd2tVO9IH9IlIzPYizYwM/rRNmVIhO2V4g1hG+x3xNBO150QNPswhmo JvXWL+KTBufIhAWoc+/jseNQ9SNitwQsA9L/LcQrVl3A59kd4sO8t6lF9zcyEdHrInW+ eztJ3IMCRyastSgX6l3xYjyeHBqbw9ZDF93NBjblBhfpUIpsHxLqjj/vVdC1OQqu2PRO 0S31nqO2JkvNtxhushOELvyPjBk2QtGgVaVKP8V/j4Ud2y1HUC20WpEANFUVDULmudsq 9M6g== 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 207si5352124pfu.258.2019.06.29.04.12.06; Sat, 29 Jun 2019 04:12:35 -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 S1726940AbfF2LME (ORCPT + 99 others); Sat, 29 Jun 2019 07:12:04 -0400 Received: from sauhun.de ([88.99.104.3]:60856 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbfF2LMD (ORCPT ); Sat, 29 Jun 2019 07:12:03 -0400 Received: from localhost (p5486CA23.dip0.t-ipconnect.de [84.134.202.35]) by pokefinder.org (Postfix) with ESMTPSA id D04C52C047A; Sat, 29 Jun 2019 13:12:01 +0200 (CEST) Date: Sat, 29 Jun 2019 13:12:01 +0200 From: Wolfram Sang To: Jarkko Nikula Cc: Fuqian Huang , Seth Heasley , Neil Horman , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 08/27] i2c: busses: remove memset after dmam_alloc_coherent Message-ID: <20190629111201.GD1685@kunai> References: <20190628024711.15203-1-huangfq.daxian@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9UV9rz0O2dU/yYYn" Content-Disposition: inline In-Reply-To: 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 --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 28, 2019 at 09:22:31AM +0300, Jarkko Nikula wrote: > Hi >=20 > On 6/28/19 5:47 AM, Fuqian Huang wrote: > > In commit af7ddd8a627c > > ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma= -mapping"), > > dmam_alloc_coherent has already zeroed the memory. > > So memset is not needed. > >=20 > > Signed-off-by: Fuqian Huang > > --- > > drivers/i2c/busses/i2c-ismt.c | 2 -- > > 1 file changed, 2 deletions(-) > >=20 > It would be better to refer actual commit or commits that implement that > zeroing rather than merge point in commit log if possible. >=20 > At quick look commit 518a2f1925c3 ("dma-mapping: zero memory returned from > dma_alloc_*") is the one but I'm not really an expert here to say is that > alone enough. Fuqian, can you clarify if the commit pointed by Jarkko is enough as a reference or if it really needs the merge tag? Also, please include the tags you collected in v1 when sending v2 (and there was no significant code change). --9UV9rz0O2dU/yYYn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0XR4EACgkQFA3kzBSg KbbyKxAAo8H1xdyo+DJXLvoGJaIJwtZtFYMYbqV/4kbepBwkTC2JdQo7WJtHzHFJ hE6Yolc+goA0hmOfgEYVICD3LZ80qDMDbrCl6MVckY66Y6DfPSp2UFngP/EthnE8 rbvlaNaNilx/vf3uUVWV0dNnX7XLJb05p+lRl4a4lHqTHI3oyo+9ZWDzZeMTZ4I4 Aal6G2XT4HM0B43eEvhSPEB41dmFzY0NsbADS8tS7sDWMfQKDWfY1lagrj6oO9P7 3UzXR0aSzXq7BpSiltHRUhxtBq+xyGU6zPudCS3RGUOi89ynEn2hwkwXegFoBvmt UBlROiXFuCObQzZZlqrrDgsC4dNvYKYTzZobH79c6NQ0nvsM5j5526A4sRM9c6QM 88x09WQBLvohloLPlMfMa3ikXf9F03tD0Qr1pzgwh4BrdVhkAWslZyZDNyYK1j4d xcXOVjY/zj452mH7snhwbydcAdAMd4JWKiOUsOh44UHEJASekz0HcDIrhvJF9wKP kOXzRbbPrg2x3f26NZ88Eo3aSWkvKJ74Ly0YTk9aHvBucbHTyg3cR/r0dN2HWRXH Nwmz+IMSWbLyLckhE4LsVTunuCAGawf07u5uaAMFUA9WnrOOUlW1onksS/aatL93 xqXY7MOqYzNsgf0FFi6EBul6aqq7U9FMWKKRazAC1op2aFRRVSE= =18LR -----END PGP SIGNATURE----- --9UV9rz0O2dU/yYYn--