Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1184920ybt; Thu, 18 Jun 2020 02:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOIR3xW7AY0HgBHnbpNC2DE+z8/aYz5+X31ojJBbeEZP26mpdDlqgFY31Ng8ER2kz5BGrB X-Received: by 2002:aa7:df96:: with SMTP id b22mr3274818edy.348.1592473067392; Thu, 18 Jun 2020 02:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592473067; cv=none; d=google.com; s=arc-20160816; b=b6w7EHlEo0PxQwkeW+2afk06Kom7GijjPzQt+ego4TeYtYeZbrVFlUmXZNFSuAt1KL JDALZV6kNrCk9nfMAQbaDvrlFy8cXSJs4Znr+n//Ru8MBdpprcAlVpu6gMwktBNg3Fhn Mf4luUDyoHU7OTRouuz43qPwpMfHUM5l7JKbG9mVuY4wY9hf84wUI5PZZjQsnrp2s6Qr 7k38/BJxUAMSy16scm5mXmCj4Sj2732aqOZRjtYQrwhIjUkJJJqCjxnKr52C+O71zdgA eik/NXW6SnNUKMDmD2AmqhzEfbfeybMZx/99K5i3ADd64OLeL1OCFC2OgX6GPqsVVU5h eYpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=fazQeAs8inAvGwYcQXqBGXqOlhYwCeTQdth0t/3tLpc=; b=w+gf6+1gA2of4z/Gvvk91w8lLCnF0Li6F8RJKZ6apffCnPRnyWW+NnB9mBhNuyaHiL D76rLhZHCpMOJGAe3Vp1HZdmPalnzWc663hxCyg5ejrxRx4Pc4sfSsm+/npEgbs3Inpt NueahalOkChgqpj9Fghode6p4IT6cpMKLFc6Z/pa1dRHLPFOKdqPPjXPgkbd9c+oN70V 0gUT5ELM2yV5D4GWE877K17kQvxGpTCyin9DGQZRRLTyNXo+oGqU77ESeoi4rdvYO4Li zFNQASUKtHWe/eNEQYtePfbJdI1Bgd1JJ+Eti6ctAp3/tKGMYkH4Ew0ltdsmZHM9kfdz Um6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MHeeNIj+; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si1653833edd.58.2020.06.18.02.37.24; Thu, 18 Jun 2020 02:37:47 -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=@mediatek.com header.s=dk header.b=MHeeNIj+; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729179AbgFRJev (ORCPT + 99 others); Thu, 18 Jun 2020 05:34:51 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:44297 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728568AbgFRJeu (ORCPT ); Thu, 18 Jun 2020 05:34:50 -0400 X-UUID: 855350d237af447598937a20df6f1057-20200618 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=fazQeAs8inAvGwYcQXqBGXqOlhYwCeTQdth0t/3tLpc=; b=MHeeNIj++emO1PxnCKYQiheDFmpZ4QBACfg0h4/OsDUonE38uDizhI+ibfWfeYHrZWzdKmqjA4pspetmXciZRh0aMpC3nZVDYa6Z/T8lj5eJdfJoht83VIS8lU3VV4mz8emEXDFGXanQq7R5q4LS8CnMUfrDFmNHFsNV7hCie9k=; X-UUID: 855350d237af447598937a20df6f1057-20200618 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1739908511; Thu, 18 Jun 2020 17:34:39 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 18 Jun 2020 17:34:36 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 18 Jun 2020 17:34:33 +0800 Message-ID: <1592472725.20080.12.camel@mhfsdcap03> Subject: Re: [PATCH v4 06/17] media: mtk-jpeg: Get rid of mtk_smi_larb_get/put From: Yong Wu To: Matthias Brugger , Rick Chang CC: Joerg Roedel , Rob Herring , "Evan Green" , Robin Murphy , "Tomasz Figa" , Will Deacon , , , , , , , , Nicolas Boichat , "Matthias Kaehlcke" , , , , , , , Rick Chang , Date: Thu, 18 Jun 2020 17:32:05 +0800 In-Reply-To: <1590826218-23653-7-git-send-email-yong.wu@mediatek.com> References: <1590826218-23653-1-git-send-email-yong.wu@mediatek.com> <1590826218-23653-7-git-send-email-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: EAA0222707355DB3D9C41720DD63D68CCECEA4A8CC20861737BF3012552CC6C52000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KyBSaWNrDQoNCk9uIFNhdCwgMjAyMC0wN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