Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1866797pxb; Sat, 7 Nov 2020 01:12:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0WxRLXVLZDnSxF6+PvACFYOpV9f/yd/usK/hmfNPg/2RJIlAjiCCXrf/7T7vFU5suyON6 X-Received: by 2002:a17:906:1fc9:: with SMTP id e9mr5842183ejt.319.1604740368526; Sat, 07 Nov 2020 01:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604740368; cv=none; d=google.com; s=arc-20160816; b=AMcAUQBBhin5BqjoXz90wU2nyLmzAPn1tFn0qYsDnsbSkD3Ku+Cp91RaCu8AcIIvCW 4BPhdpIX8RdIwd07Ea1vgujWXRk4s7/muJLQbPdI/p3c3yR3OINWgqRzE5/2k2u6yydR Oob+bvFVzVB60KIx4LACP9B0O+q5lOxH8VfilbuLdwP1kGqTxTuLwHr9E/EkzinRxU/n ZHx/lrv0y/TG4uf7WGG7ds2UWLsxmWwbGVe3d5jBi1sdVVk45hIUECAfeqcOg4qY6WIU ybYlfM61JwI6U+akkxy9+Mk3UASadIKxjddYYURK6sih+FhkgTUtQ7N5KHIBAER28Che mvlQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DLmHKhdRR/VJKHOqoZljcarIlMnzrJ2krXQMqsv1Zb4=; b=MuDrKCHPk6Ln+hbIXJ/t79SVsyXt4ATWW9LF4mDAo6XvVN3dG2eJ7gXWxBEMpemyM/ lkivGGNG20dcihb9aMcuLDr1mfAbpwmEM+SakhEFkryUk8gSs4TY6phLIgmsk3atRDL/ 9ONMDGoWyZTaZAjGQTsOxhsjEhfU3eHY5XdX0EWDQMpf7rW/uP9u/SzaDcN5VS0xdOLo awJWEOvxtio49w6EBgOO/wD9soksdXkE3VbwFQ8EDaShNm4F7QaP92rgIq3jDchVwJN+ sJmmJs+nNZkCZZWDZgSmqCq6mDXsjXMWxzVAdGRFM3nXBaD+TYGQhjuOrlj/nAdvCFY2 jlZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rWbKmN2q; 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 bl19si2737360ejb.301.2020.11.07.01.12.25; Sat, 07 Nov 2020 01:12:48 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=rWbKmN2q; 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 S1728302AbgKGJJ4 (ORCPT + 99 others); Sat, 7 Nov 2020 04:09:56 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:49577 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727973AbgKGJJz (ORCPT ); Sat, 7 Nov 2020 04:09:55 -0500 X-UUID: 4c10f6f62e784f0f9a69b20474108dcf-20201107 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=DLmHKhdRR/VJKHOqoZljcarIlMnzrJ2krXQMqsv1Zb4=; b=rWbKmN2q5wGtSK8HcFo8PvRMUewE/9TXmxpkg991c1K8wQWvvCTP0Z4KzPASirLnh/Ij1J9Nm5RZ1Jv7VhRo7zx7U8QTLKC5IjWeTGBOmpQeG7Ba/WhZYyY3J3uuXOEREZql6fz9SEYMj/Hup1r3Crp1LMdCiZwAcz1F+2ROI1w=; X-UUID: 4c10f6f62e784f0f9a69b20474108dcf-20201107 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 670291704; Sat, 07 Nov 2020 17:09:50 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 7 Nov 2020 17:09:49 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 7 Nov 2020 17:09:48 +0800 From: To: CC: , , , , , , , Subject: [i2c-next,PATCH] i2c: medaitek: Move suspend and resume handling to NOIRQ phase Date: Sat, 7 Nov 2020 17:09:40 +0800 Message-ID: <1604740180-14645-1-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUWlpIFdhbmcgPHFpaS53YW5nQG1lZGlhdGVrLmNvbT4NCg0KU29tZSBpMmMgZGV2aWNl IGRyaXZlciBpbmRpcmVjdGx5IHVzZXMgSTJDIGRyaXZlciB3aGVuIGl0IGlzIG5vdw0KYmVpbmcg c3VzcGVuZGVkLiBUaGUgaTJjIGRldmljZXMgZHJpdmVyIGlzIHN1c3BlbmRlZCBkdXJpbmcgdGhl DQpOT0lSUSBwaGFzZSBhbmQgdGhpcyBjYW5ub3QgYmUgY2hhbmdlZCBkdWUgdG8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