Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4486892ivc; Tue, 3 Nov 2020 13:19:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLZZ1GclX20tvJCJX2jxvjuuHrXIcIrVvTJvTVrfy7foRD9n9beJ4QSw5KC2bqeWoV8xUg X-Received: by 2002:a17:906:9459:: with SMTP id z25mr3440011ejx.88.1604438351546; Tue, 03 Nov 2020 13:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438351; cv=none; d=google.com; s=arc-20160816; b=Rbsyw5a50m1B5pzO2cIYNvV43gx4jACTT0xB2legPNAZaFDKBxPub7cpgRjlbjAFZf WqarQOLg2jSANw/UrgNsfEE7uCIEeNWAsvD3aKf8Df6M03ph/z9rXL697PKMY/EARQNA 8NZrtTa8Cal9ABtQMYyoMSKVRFDtXV4Dpy5u4NnwKyoIOh47ANCVcDmtSeMvOgDcAUNi a1/inhOe7TaHFv18UjyszFy+3QLWyodZeogH+u/TAcCW+l/FrFSkf3J20XpqsGDThDkY Nag3JofYKodN+ZYnyr1awJqfr1gNvXSoPl5+5MGLT6ha/VtHyxLep7zR8b/clUgvnq7K jccQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=rlF6ZJrh4sEx+ao3hBxTatfb1DNYr8WglJNwbe+Se60=; b=dXuqUklF4S9CPB6+WWR+zeBo1PTWulYgMcvhjyR7Nk240Dd+PIRUFdZDAM2KLe8trs HziwbsWXw8zLr/sJ7NjqDDctgVhBDDlw5S07ata0SpdV33fWVcXcjaSAafmcacB8p2rX LBuDC8lTEq7H9D+2h6taa65C6Wc44XWpdJSEbOGn3HvTxpNi5J8Y9UWJLtArAWmnzjJt XuqNDHlj/BnsMNSR+MeG9U+mVoo6Pme0iqza3SugEpue2phxjLSB5FTJm/bA4zxqpb1U mB/qSc4/8Ilwv07eyrMl7zlO39HXsnbAsLHoPRcDQWMXJsoJiuHrOPqIwd3YfLFx0gdb z5Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf20si54621ejb.332.2020.11.03.13.18.48; Tue, 03 Nov 2020 13:19:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387400AbgKCVOZ (ORCPT + 99 others); Tue, 3 Nov 2020 16:14:25 -0500 Received: from sauhun.de ([88.99.104.3]:40538 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389131AbgKCVNQ (ORCPT ); Tue, 3 Nov 2020 16:13:16 -0500 Received: from localhost (p5486c89f.dip0.t-ipconnect.de [84.134.200.159]) by pokefinder.org (Postfix) with ESMTPSA id 4BCBD2C0561; Tue, 3 Nov 2020 22:13:13 +0100 (CET) Date: Tue, 3 Nov 2020 22:13:12 +0100 From: Wolfram Sang To: qii.wang@mediatek.com Cc: matthias.bgg@gmail.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, leilk.liu@mediatek.com Subject: Re: [PATCH] i2c: mediatek: move dma reset before i2c reset Message-ID: <20201103211312.GG1583@kunai> Mail-Followup-To: Wolfram Sang , qii.wang@mediatek.com, matthias.bgg@gmail.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, leilk.liu@mediatek.com References: <1604059081-28197-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4ndw/alBWmZEhfcZ" Content-Disposition: inline In-Reply-To: <1604059081-28197-1-git-send-email-qii.wang@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4ndw/alBWmZEhfcZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 30, 2020 at 07:58:01PM +0800, qii.wang@mediatek.com wrote: > From: Qii Wang >=20 > The i2c driver default do dma reset after i2c reset, but sometimes > i2c reset will trigger dma tx2rx, then apdma write data to dram > which has been i2c_put_dma_safe_msg_buf(kfree). Move dma reset > before i2c reset in mtk_i2c_init_hw to fix it. >=20 > Signed-off-by: Qii Wang Applied to for-current, thanks! --4ndw/alBWmZEhfcZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl+hx+gACgkQFA3kzBSg KbYX6Q//ZGVdd7tkdj2nWfdk4zLv7XxhsnNc0yRj5kGzxUJKvKNkQhYfnhhxFMX7 HPEU0NIyBcT0NniiLqHhqAvAe91PNdUt2rlaD8zoWJkm22nBHH06IO1XBLglK6Ok 9mQWJ/h4E9SZVA7pPoOKQE8XDdD4Th767jmIDQ16xvo/YyAWu0yxwMep5ausuIHr RT2MmJisrXYHXXMDCVBkgBrD2UWR8XjNVrjap0aMfvdEb5N35BxsEB4BO3472XKI Ex00+kTjc+mFbwOtMTxtjVnOqW9fqqYu7indYah0mqDX5W8XUK/Ztuqi1qnQ7FBE 4X3DXxmZYGBgMBYfU4oQYQJDbCu/+X7hljgmvZ+uobhnEMIBIcRZ1qgNIGG3/my5 9Xdzvc6fKdfZefYc2cUFoJ7EpLgY+KJP/oKEhYQ43y0ORN0ZWdO2eMH2GUOJdhhd 9YH1lPPnZQcvCkt14U5FYyDCT2ZnbgTcZFo9TgLctlNqdm2o7xTYokbwmbooBx1m scA3peUJ+OyjQJrIX/b1+I1uYdh2v1Z/WRnIEIt2fdf+cBJGUEOC6VAP5v5FRO2M Is7BlkZnyuLXMyIz3wHYng/ivGqE2SPrO/JYk3rR2O8w+8dn/2HWOsZsyydyKa/l GPuN3WQru6TiDeD7lYTjRqRjl9jGzkSETQFO9jtdiTy3Wu+4uBk= =YC2K -----END PGP SIGNATURE----- --4ndw/alBWmZEhfcZ--