Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp170123pxb; Fri, 9 Apr 2021 22:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuq1jCxu/06kn8KuiNQYP7bJAd5xk3CmhKDMBi3lT8y9Iw9uruG7zFZdEeplMFI6wGqy3n X-Received: by 2002:a17:906:3ce9:: with SMTP id d9mr1708712ejh.172.1618032634079; Fri, 09 Apr 2021 22:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618032634; cv=none; d=google.com; s=arc-20160816; b=1DxYwckkfQt2aib1MbgdT7Et6IU3UMjmUaT7V7GQZaCXoHtq3hG/QYWJDlzRhGakap mjDAtRsKcKVvVXeIPbYktq99pUhIrgyuHIzafEs+02iPRpPuHZSHVUSqfGkvUYf2G3xv 6sAi6ch7Sa1d4ie4ow9X6PIqfGRC3FqGDTbCxXeMRJrcfxxcbDIGgarQyaYTcXOQ+WYB EYHEclziM0DkeJezIhnsLyJHzX/C9lXmdiuSID8U+Wb6jcsrOaNnQZ7XqdW23e5IAqxT xO0z7CiIKXpMBKhhg4ByMKtVcKpvwfgVrfTcj+lX7JjsCB6tl9fxsosCkfvOy1QN9l0R t8jA== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=MlIao8blKXAQsabTwL7mSrhVFjww5CHYY94qATPfwNQ=; b=Dg3I9fffcGejPgvSszz45P8SbfspAQQV/wJFzINOskKRNWrFUANYxPyPX9qL9TqBI6 d+94IzZtXoL7JpwNt3+CPbNzmMJuzmnXa/c7PpfOViHV/GiaNFmtiYBVkE4DaAQNdHe9 RIslcp55h+OTOMmUHVu+VEP9sOnQqHD1AkiGtS5hmz62Yx4CyEa2TWzve58Hx5YIo8Ua g/M0VkwJT/3msSMzBHM8NYd8VmmZnhuUu/Eo8W8FIitbqKSSrK+2EQGXuRb0oi1/XrI7 1k3bHQSkupYaw5I8e8CtNff+M8ISSp2nezarSy93GmYYw2cBzm2twwmNp86cV+Ue3cyz mZ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MizXZU8M; 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 hc43si3869145ejc.21.2021.04.09.22.29.51; Fri, 09 Apr 2021 22:30:34 -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=MizXZU8M; 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 S229632AbhDJF24 (ORCPT + 99 others); Sat, 10 Apr 2021 01:28:56 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:30803 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229472AbhDJF24 (ORCPT ); Sat, 10 Apr 2021 01:28:56 -0400 X-UUID: 9cac798b3f9a4c3f99cc5b6f17d8f24f-20210410 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=MlIao8blKXAQsabTwL7mSrhVFjww5CHYY94qATPfwNQ=; b=MizXZU8MhCqGYz+utIlfN9yzL+M+KTbkoxexrKiLY3lQqzpSLSFvIpG+i3lKRZvPn1ut054BrzxRPNvuGE297LTEZWmcGqiz2i2o83xEQtOJVvdVio30ylE+0/Z+S0SRFG5Q2BgrPkDRs2ZVNWTVjSIw0/JSqhWvUHvZVxZk6zg=; X-UUID: 9cac798b3f9a4c3f99cc5b6f17d8f24f-20210410 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1987728062; Sat, 10 Apr 2021 13:28:38 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 10 Apr 2021 13:28:35 +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; Sat, 10 Apr 2021 13:28:34 +0800 Message-ID: <1618032514.26944.20.camel@mhfsdcap03> Subject: Re: [PATCH] iommu/mediatek: always enable the clk on resume From: Yong Wu To: Dafna Hirschfeld CC: , , , , , , , , Date: Sat, 10 Apr 2021 13:28:34 +0800 In-Reply-To: <20210408122842.29009-1-dafna.hirschfeld@collabora.com> References: <20210408122842.29009-1-dafna.hirschfeld@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: F7EA9B2BB2D8F08BC06597B904289D59BAB636E1C29EA433EE645D2BBDA110822000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIxLTA0LTA4IGF0IDE0OjI4ICswMjAwLCBEYWZuYSBIaXJzY2hmZWxkIHdyb3Rl Og0KPiBJbiBtdGtfaW9tbXVfcnVudGltZV9yZXN1bWUgYWx3YXlzIGVuYWJs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