Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1272752imm; Wed, 8 Aug 2018 13:59:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw8a8QnaD3ZLZ9oUgVuAK26NAxM7ONtMfwOFofYGczmsA+kWGG10dtI0WHC+gNKBn9ywJbd X-Received: by 2002:a17:902:d706:: with SMTP id w6-v6mr3963365ply.158.1533761942554; Wed, 08 Aug 2018 13:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533761942; cv=none; d=google.com; s=arc-20160816; b=sLVWxofixhJWp1wdga8HMvvzahAXSqxTNJVy6r7Ud6xUCDWeouYaQhE33ShQ3VSwdo YSDkJzxT91eU75+vSp4AD1VTxFmMuw/GDwLjYNl8mJJ4rCAvdDJM8K9bscaaxmQBYXT+ 1HTPnmL6+Pw1bXFJPMGsuR4YFa5f6bFCkGjKr5ZvvnGDNLEJeH2WeIVvNusVN3NmZUTG DYDvuciVjLR78gMtK/W8Q4M3qVS+dXB9TiGFaO5sqIIGTemMZhtE/+8vHJXmGhv5H8G/ noVgpa1zl33cHjFSsGPFJoqFm+yhG/ur7LzjIDg2ZKye5RcsbQzFV79O45Q903SPMOo9 ImGg== 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:arc-authentication-results; bh=uCNMDvhYHJzJGOoSK1dwAaQBDkNWMe0ReSScPviMAZw=; b=Fx5LcdH/HvuOH9irKbMAJqcg25UpNkGauvkkv1wb/5iqm+KE8oShlATaZKzWfvuzFl K9QYGugLzk7J/BluhLEifTLWJIAZ6TJTXka5xKPM1y7DjIP9/UOdW2RMm32Hnq6n8iwS XVZnvsfOAoi/qdh9aJ2n/GjNXBuD/+iI45I9VVLJT74+2h/veUZjHlcw/NIFV8ynJAO1 uF75Cw/678IYGCuQYV1fWLD4RYPGZFhdi7joy6VTQhC/dQ7MrHEEXmQBl0IivadkzQUZ OpKhdnOgfg6TW+xRmBhQgRJ5AWR/+CDpl9Eb1LrZOH8n/j1+j6XJdh0jyLZgBUdiDtjo dFcw== 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 p13-v6si5350555pgk.344.2018.08.08.13.58.45; Wed, 08 Aug 2018 13:59:02 -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 S1731440AbeHHXTT (ORCPT + 99 others); Wed, 8 Aug 2018 19:19:19 -0400 Received: from sauhun.de ([88.99.104.3]:38402 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbeHHXTS (ORCPT ); Wed, 8 Aug 2018 19:19:18 -0400 Received: from localhost (p54B334CC.dip0.t-ipconnect.de [84.179.52.204]) by pokefinder.org (Postfix) with ESMTPSA id 5B1D06DC54D; Wed, 8 Aug 2018 22:57:53 +0200 (CEST) Date: Wed, 8 Aug 2018 22:57:53 +0200 From: Wolfram Sang To: Jun Gao Cc: srv_heupstream@mediatek.com, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v2 2/3] i2c: Add helper to ease DMA handling Message-ID: <20180808205752.llowh4bvu2wkuhga@ninjato> References: <1530955795-17714-1-git-send-email-jun.gao@mediatek.com> <1530955795-17714-3-git-send-email-jun.gao@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rp4jubaesdmneqdp" Content-Disposition: inline In-Reply-To: <1530955795-17714-3-git-send-email-jun.gao@mediatek.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rp4jubaesdmneqdp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 07, 2018 at 05:29:54PM +0800, Jun Gao wrote: > From: Jun Gao >=20 > This function is needed by i2c_get_dma_safe_msg_buf() potentially. > It is used to free DMA safe buffer when DMA operation fails. >=20 > Signed-off-by: Jun Gao Right, we need something like this. This leaks in the sh_mobile driver, too :( I am still thinking if there is a nice way to put this functionality into i2c_release_dma_safe_msg_buf() itself somehow... Thanks! --rp4jubaesdmneqdp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAltrWUwACgkQFA3kzBSg Kba6Tw/+Iimt7Umis4CVLfglXlJM8cOcQwzHzSmtfK88GLGEPybXuZuk6hJ+2G1m p964DyDxJy+DCrdA7jIU64RdFOuf62+nZVRS0xt50Ycl+OhayWr9FL5teoFZ+uSn EKU5MnhgnO0MPG05JciJGS7SM5hFbT86n70ktre589BT8g7QnV7sO1BVi5LDoyPL 9zCSYFCYZZ/+gfP2oMtSJT8LkHgSEYz9JXCWmANs/HhWepbtemQRJ5rvPens7yCa xq/OkH7NoIJ9Ipewv/J6RJJsZBw7bXPnfp4WaHIvZog0WZHYJkSbQk5DDNgIYu3T Z1lRM8P1eWn2dhYSPrjv8k+FFFX1O5rM2uCkATDZierjJSa4wgYVanizY7TP28km dfXlL/Vb92KZICGQBBG3gbe3ueWoNxUmSljMn7rUKPybJ+P1MYZHk6TF/momdpDx SLKwhU9PaKy/9dukiU8L+vWcgw69ic7RHbKV84EwxhjDX6XhexPI2H4L+uOfyJZo UplbqRhIOXk1h5tbk1m6NJAVlFFSGcWNvdR28+CQl9LBBnOWR6vWYspYrERLrXlu +rISW9VO/G5F0CZfZ0Eka335h8c1f5ybq84pWk1nPRn8RmSmn+hgWiHEdzZJV632 4WmPNIK4ZcTX85fahz06Z+RRk6Mn60mQZzjzzgDr9Q+PimU+e08= =9FC3 -----END PGP SIGNATURE----- --rp4jubaesdmneqdp--