Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1981771pxv; Sat, 24 Jul 2021 01:20:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFJ3rbCIKUnBDMNPFz25nikgWataa1hUaMLYhjxq1PbjGvlLTW1w/NIbmltyzcja654FqJ X-Received: by 2002:a05:6e02:1d8d:: with SMTP id h13mr6043874ila.40.1627114830411; Sat, 24 Jul 2021 01:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627114830; cv=none; d=google.com; s=arc-20160816; b=yOxuO7l32HMFoepqD96uEbGHRzfRBM1caDTsK9dy3zgMmgSNp5amNPYTgPvsnP1b7D ZH6Ds2TkWkFtetvXWutg6ZnCtXOMi2nfr+Ce3MJzsr77cScWKT8wFCS/Evfk9hblA9my N+IE+orF91Z7QfvnbsTXZyzcL4TzEQxjXAfdwpI4afChf2Dz+a7E5ULz5vVhdBSgtS73 Tc1dpBxM03C2NPNdvLPhokBNrHpOpWsBGbcCCYLVrRf4Zn6DtogOtIkkTWKrdYUaH9NW 5ITBSxhFIrACWhXRDOccTFPOogxXEQneoZFAzSwJTzgpX0XT/4Rx71OyKcjVtHPlT4tU g3nQ== 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=FqIjmHCwaupnBJmDHNq0CA3qx0xdA5LsYBCK0CPOTPY=; b=qqwDiH3Eps3Yt0+LnguY/gyVCXjGTb5ULN1L1p8GjoYlgv2J43iO+KlbjTJW0lQJ95 REZzzo/NzLjNnmcdiTWKN6bWeTeNVHEbNiXH/PTyuvFRsS31jTuf5fcYazRxd7Z2RDBY 3tUOSFmgUbhATLcYFE+13dLP+DAhb70gqnrHvrpisfSOcQu4GokFV9NyD0jDjNRs0DLj pvLVV5U9eXbVGJjlV5I2Mz51QOinezjz5viznuDV7E+7wGhToURzOPxHVgDZdld0Wk1G gn9rZBQ0Op2qs4GLGMuzM56bm4/ELIZuUDPOzCq1NNWPZ9t+ujcG86Y77vpnXxxp/gds L3yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="u1/bbjuo"; 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 l3si35683464ils.48.2021.07.24.01.20.08; Sat, 24 Jul 2021 01:20:30 -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="u1/bbjuo"; 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 S234819AbhGXHid (ORCPT + 99 others); Sat, 24 Jul 2021 03:38:33 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:18422 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234772AbhGXHi3 (ORCPT ); Sat, 24 Jul 2021 03:38:29 -0400 X-UUID: cc46317b093d4033b99c0da6cb7cafcc-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=FqIjmHCwaupnBJmDHNq0CA3qx0xdA5LsYBCK0CPOTPY=; b=u1/bbjuom/N//cZgwgGzlKFnhqcGB7VXMcGU6ldupKgVUVYyyvRFYDnjPMdiO0+5D79zmo491GA363dkZyr57+GCpKUdQYPngPii8I5On/ByIEgzrStEnbalxEe2g2OZVaRJaKNotKZA43YBKfa2W9qXrMIWk79rW6FU3U4jfik=; X-UUID: cc46317b093d4033b99c0da6cb7cafcc-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 1468019768; 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:53 +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:52 +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 2/5] pwm: mtk_disp: fix force reg to working reg. Date: Sat, 24 Jul 2021 16:18:46 +0800 Message-ID: <20210724081849.182108-3-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: 67574F026B928C06B03282D42610A74070D813AB8F993D86C11FD52D507114AF2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGlzYWJsZSByZWcgZG91YmxlIGJ1ZmZlciBiZWZvcmUgd3JpdGluZyByZWdpc3Rlci4NCg0KU2ln bmVkLW9mZi1ieTogSml0YW8gU2hpIDxq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