Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4517959ybl; Tue, 21 Jan 2020 22:55:01 -0800 (PST) X-Google-Smtp-Source: APXvYqy4nzGsAKl//YxH2Dze14gdx5TWtD/22xtVOWGNi/ylS0vgmlAwSMavwZRqoU7LFqfHOtKS X-Received: by 2002:a05:6830:44e:: with SMTP id d14mr6074560otc.228.1579676101104; Tue, 21 Jan 2020 22:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579676101; cv=none; d=google.com; s=arc-20160816; b=fc3q8HHJT5g/A8YiZUYpfxWGTl2BJz/Ljff0iHjL3qIfra/twkdgAA8gYHUA4ZEVeD h2qeTKHWAjB6/usWVtHX3/1e3SbJ+s1diEY4G9Z4r5sETAH+7mF9+ntvwvSwpJUwqcpx 9n1UJMbclbmTE14/Lr4rBQ+hc94tRgZaRzA/geQgt+3R9FF+hYv60kBLqtOcr+Sw3Zar SLThwpdmDd1u0+UGuimY+jTjnOcdD3HtDr38Ub4iUhdTIzvgkpjYoEewrYM5SZuAr09h G2fr9qTZoGENbtcRqS4Oz0vg2T/9lA1JRTmEDCHTeNQQVX9m/9Z5hokqArsxhFy7kKHl dLzA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=KtD9QHwq7bfuSqhnaWSsi019jf5rw62Q2z/L7dueR8I=; b=mnM5A1f2mt5Djc9u2NKzcwIUeeeaf7q7txz82yiVR/Td3MfU10nVuim+hTAwBoLkTF cPH43N4sSHN5lvW8u3Hg879o5jAnKmvcsiXUk1tOjMr8udA7DnbHb3G5YIgoVOCShR23 ji7W48t5+rVaVsY6uv9k6+13DY3WaJFsGK+ishZPfFD5vVqzwRr1UV8CEDPgPfYqnsOq aVFQcHOQdZHrLFxszaSS4YpTtTZdligvHjeYI3mYjsqSQpGyuJup02QJqtBEPkmJaYrr 0Yy6FKk1Gv4U3WJsG2X15ZtEEQAG8TH0mwLMsOaziieHLeiskORVIiYAW3ipArABJJAU iv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=r6RbM40u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w2si1260576otk.126.2020.01.21.22.54.49; Tue, 21 Jan 2020 22:55:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=r6RbM40u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726811AbgAVGxX (ORCPT + 99 others); Wed, 22 Jan 2020 01:53:23 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:39247 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725883AbgAVGxX (ORCPT ); Wed, 22 Jan 2020 01:53:23 -0500 X-UUID: 8a87f1142f2e495896324db63689c8bb-20200122 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=KtD9QHwq7bfuSqhnaWSsi019jf5rw62Q2z/L7dueR8I=; b=r6RbM40ujb96wcP67sql4TGcZct5x9HKprvXhad/AK/wxStlp6O0b5+kEdBn6Be+u5Ga0PW1AWr5jfFd5cQOcHc8o1yHS9kVOY30/hXfRrcH3T4dNkiEtthdfMg+8tb0VlS7IrDUg1Go05sdl0EtzPTb3gxYfjMwzKzH8PnJzOw=; X-UUID: 8a87f1142f2e495896324db63689c8bb-20200122 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 899557401; Wed, 22 Jan 2020 14:53:17 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 22 Jan 2020 14:52:04 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 22 Jan 2020 14:51:58 +0800 From: To: CC: , , , , , Light Hsieh Subject: [PATCH v8 2/6] pinctrl: mediatek: Supporting driving setting without mapping current to register value Date: Wed, 22 Jan 2020 14:53:10 +0800 Message-ID: <1579675994-7001-2-git-send-email-light.hsieh@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1579675994-7001-1-git-send-email-light.hsieh@mediatek.com> References: <1579675994-7001-1-git-send-email-light.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 RnJvbTogTGlnaHQgSHNpZWggPGxpZ2h0LmhzaWVoQG1lZGlhdGVrLmNvbT4NCg0KTWVkaWFUZWsn cyBzbWFydHBob25lIHByb2plY3QgYWN0dWFsIHVzYWdlIGRvZXMgbmVlZCB0byBrbm93IGN1cnJl bnQgdmFsdWUNCihpbiBtQSkgaW4gcHJvY2VkdXJlIG9mIGZpbmRpbmc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