Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1981927pxv; Sat, 24 Jul 2021 01:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiseHIg7/x1ZeMdhzC0rMs0qf8TP5V7L9uxFBCdH+d6AxmqlvL7WBtdBWvQm4D4dokr1eH X-Received: by 2002:a92:6610:: with SMTP id a16mr5759012ilc.71.1627114851738; Sat, 24 Jul 2021 01:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627114851; cv=none; d=google.com; s=arc-20160816; b=e+jbmfHwcjKwZMpiqoSvJoKXI3tXdZeKPuYOBHJi7Irn3Z8F5btvzg34pES086WvBI 844ecK4xc2kmvHfKH5GePjGCONjiy348TLFB0RrjsXNirgg2pxeyj+IAtlMJ8Jl2A5Cr LVwlYMVFu835RXS0lR2hC4D6sAl4qPrrsRhBD2LDuWJeuojTeG9R+pzV/RlBcNG10wc4 opDnIjlGno2kmsTRU1msXqecmBcNUvfeOPIVJyot3xCFiqGc2CGxbs6pzoMgiRVmhekz KtAsh/u/IIQ8Kit2/PfFZ6YZBaICh6igb84K10rmgVFE0FHNNZEalpRGNiyzqWmMWt4c YGeA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=ENyCwb/7RINa8CoCnsCtByjxuCTyi7XHVsTTA3kw24I=; b=0XsuqBpIgn0FGibwCpb8dT4Mw3LAFao95IAOg0ziLBZkzi+yvVoxn4rCeJomFSyMIH golgLanNL04ir10GuZ5BwHJAf0Koyb+5WJFvZ6EGt2Yrg7veEXfDbcyDIc+S1XQAJg5f +ZolgQsgViqd/MSqvsJfqNcBmEGQN8w6r8rJZHA9OhkCyQNtIvdVJkfrcho3MMEez2VJ H2zzwHejDno4EPEAVvrT9J6wqNZdY0G/SDey3w5Kbqz2DgZuDC4DJsIbV3bdRMOdhWpc zVeW7+IT3xHzgRPn+PM8DyXKNO0ta0JGX8rfIXgr81EQm6eC6a15kSCB5VDR+wm39I4z MBqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=o0WJgx3S; 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 a10si36076976ilv.72.2021.07.24.01.20.40; Sat, 24 Jul 2021 01:20:51 -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=o0WJgx3S; 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 S234862AbhGXHif (ORCPT + 99 others); Sat, 24 Jul 2021 03:38:35 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:2186 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234793AbhGXHia (ORCPT ); Sat, 24 Jul 2021 03:38:30 -0400 X-UUID: 9bd6a979b1874e549f03da57daf8adf3-20210724 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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=ENyCwb/7RINa8CoCnsCtByjxuCTyi7XHVsTTA3kw24I=; b=o0WJgx3SExaBXOPlzP9PGlrTNuN63iXlRhLec4rE4RP0zzsi/gd8UA7wt1c/2UtDSsBhxYwwvVhorR9igAPU3kk8+oWgij4GoAFZajvzZfzAI5slM3gtbnwjoddKwTuXzKnvBi5IXzKrV0p9+C0SRdRraCPBK4wyp4Ta1b7XBvU=; X-UUID: 9bd6a979b1874e549f03da57daf8adf3-20210724 Received: from mtkcas34.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 1595944699; Sat, 24 Jul 2021 16:18:58 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 24 Jul 2021 16:18:56 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 24 Jul 2021 16:18:55 +0800 From: Jitao Shi To: Thierry Reding , Lee Jones , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Matthias Brugger CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v6 5/5] pwm: mtk_disp: implement atomic API .get_state() Date: Sat, 24 Jul 2021 16:18:49 +0800 Message-ID: <20210724081849.182108-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210724081849.182108-1-jitao.shi@mediatek.com> References: <20210724081849.182108-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 62DD677CB2F76DA59506D1D71FBF7A101F136D9A8F1C01B6B8916A98881FA1962000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org U3dpdGNoIHRoZSBkcml2ZXIgdG8gc3VwcG9ydCB0aGUgLmdldF9zdGF0ZSgpIG1ldGhvZC4NCg0K U2lnbmVkLW9mZi1ieTogSml0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