Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4634486pxj; Wed, 12 May 2021 09:42:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd4JHZTFH4k7Kn1M0IHv4PRe6b8qA7aGF/ZuGWTeBGZVkiD8M7SaezUKlFRy6APhh0Pi94 X-Received: by 2002:a2e:918e:: with SMTP id f14mr18448559ljg.379.1620837753488; Wed, 12 May 2021 09:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837753; cv=none; d=google.com; s=arc-20160816; b=lZblsZqCylFMBYu2R/zcyPH5xJzy9UYvmvzuBpQbslzjhngQhUU4XRwTmptJPIvVQ3 5JadBzYzI4uFxmSoOibDiixhuUE/QaJu0nqyeyDz1fQY2QmLqaNhJzRMLZRjGgnDYKtx AzAdADrLD68/jGNzeEULkNKMkST270sCfdKAxXULdmiET7OAtyXrhT7j/FsQ4Oueg30V Ermt/LoygBTQeGdUDYpcMlFU+LfhhcrXYPHoC6I9+2Zh5IYESmqLexjNN5MU60QQ1K9n vy54C28jCEQ0JZW64BeilbZQt5SwQlbU3y9iOlzTGn5sLesCfrMRUj60oQRic+QFTH75 17/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=q0e+drNmpSIC4SzCauxmKk3sva0aNuyHRD2LRVWJ5o0=; b=dejMyS8z7Ucj5EhAS+hLynER00whQF5N0PbAvqu0Iukb3lAIf4fIwXn3LqFrjPl5qN XUSzLJvr+t6Kf0Mng21PP1EMf1gXYVeYniqH2YJIjGVHpnfYM5QGq7DE5AHvLJxPYMrp PwzY7pAkkgO3AGp5Iu+ijQmFxRW+e944+J4AMSmEGGbawZxnhqnJhDyixweFD++QLfI5 8xgVZM5QuKqjvspdW+j5/Qsk1ouOOz06UC0yINwRIWGwJSmiPVzIPyDspVoBQLn1NsZf VxIrW39fFH1I9zaGaAWDrDSn1r54HyCdJ+VcduzP5+Fz/1WZcGaWD6QSoyfFFlGzdXMb Qu/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kzQ4Dfx6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si273033ljj.546.2021.05.12.09.41.54; Wed, 12 May 2021 09:42:33 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kzQ4Dfx6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242098AbhELQby (ORCPT + 99 others); Wed, 12 May 2021 12:31:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236602AbhELPk6 (ORCPT ); Wed, 12 May 2021 11:40:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 858B86101B; Wed, 12 May 2021 15:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832882; bh=cBtYXJ/ed3+R8re53TUA0HqSCkwS+TTEGW/GYTTRJEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kzQ4Dfx64IzstIGdwScY/lB64yy7aaqV6vnLhDkZ2GRVmRzQmyN/lTvzFxZmlSzsn jziao8/RXDf6wWEQ4Q34Juxz4EcaJvFnnjfTJxg9ZB02EGZD76l28NudJU6U/cBiw2 BvkZMr1/6e5wFKhYStbFMTm2rPxMCPP+/GXx7sqA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qii Wang , Wolfram Sang , Sasha Levin Subject: [PATCH 5.10 461/530] i2c: mediatek: Fix wrong dma sync flag Date: Wed, 12 May 2021 16:49:31 +0200 Message-Id: <20210512144834.909107393@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qii Wang [ Upstream commit 3186b880447ad3cc9b6487fa626a71d64b831524 ] The right flag is apdma_sync when apdma remove hand-shake signel. Fixes: 05f6f7271a38 ("i2c: mediatek: Fix apdma and i2c hand-shake timeout") Signed-off-by: Qii Wang Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-mt65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 2ffd2f354d0a..86f70c751319 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -479,7 +479,7 @@ static void mtk_i2c_init_hw(struct mtk_i2c *i2c) { u16 control_reg; - if (i2c->dev_comp->dma_sync) { + if (i2c->dev_comp->apdma_sync) { writel(I2C_DMA_WARM_RST, i2c->pdmabase + OFFSET_RST); udelay(10); writel(I2C_DMA_CLR_FLAG, i2c->pdmabase + OFFSET_RST); -- 2.30.2