Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1065049ybf; Thu, 27 Feb 2020 04:27:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwleA+ZAF8S5kipr3mFKLl6QguaY3UMmunEZZpD75b3QLMyFDUNwKi+nAQqaV2x4w4LCCGz X-Received: by 2002:a05:6830:16d8:: with SMTP id l24mr3100237otr.268.1582806456853; Thu, 27 Feb 2020 04:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582806456; cv=none; d=google.com; s=arc-20160816; b=OQR8IDL+nWEnNP/DLokqdB4UbZcJOQp5jrVFvOLQR+MkNUk/ZYDML5wWL1byK3AB86 L+zvkf/i5ygs/og2SLAMEm2PlqPuzBV7PQRaNs2EP+8vPBu8hy9pn99DkCRbeUa7W3/P yxGX9decLuP3DA0OIbPyLnC52twgcqU82tk7QUbQlF9u+xHpKq3CtB81OXRONqJokWJj Wxkf6qDLB9KGb0eva6UjuhZsySyw19dXI2/Ny+ovVxoz894rEDquwNaQOLrgR1xxLukc RbDdis8noPxKCkQPxxnFltvIuMN9OS2MOFCDLA5x5ahk0lc+NtddsQEhdoaDAu79Vg0v TDVA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=plFDIzF9Fiu17fvO7G8TQ5xnG/gODrXfeoiTH6REiis=; b=ew14JdeK0eNolE7cs1NiBn/aNn72JG+sd22xvHHe36xmMZkkAC+q3P9t4MTuIKsP6g wrlh67SdS+a42Kcm9hFDrlY8zkM4/Yed2HcxYKAfyWjJNrko8Dc27Ug/UEALQUqZe5CB Vbm/3sYGOomUjnzxHvKoTiPsJwxZ98Efq8u18B3c0rxjwXfI/EWi+C/gbIGR+20hjvTy jZks05LiWgCbI8fQVa7ldSGzm9vuyWADPtI5L/YbnNkSNZ5gweX/kU8KUUee1RzVOmLJ q5h5CSpnIsaDj1UpN8qm2+08QxURD/tYx17t0RJqLirJM6JnA8fPzJfBv3/5n0yHr2my LA/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=D84JCObw; 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 c129si296535oib.48.2020.02.27.04.27.24; Thu, 27 Feb 2020 04:27:36 -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=D84JCObw; 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 S1729071AbgB0M1P (ORCPT + 99 others); Thu, 27 Feb 2020 07:27:15 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:55127 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728964AbgB0M1O (ORCPT ); Thu, 27 Feb 2020 07:27:14 -0500 X-UUID: 34554e276c634975987a568c4faeb39c-20200227 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=plFDIzF9Fiu17fvO7G8TQ5xnG/gODrXfeoiTH6REiis=; b=D84JCObwWnm6BqBtYz9XsjSVsOr/T3dleSOq9/R6oJGFpPi5RnwqW91jfR3pBqM0kb2yVNl7iwiLo3dJIZXpmWQKklKgXuQlQeDVpWsQkSSFfiZAnSM1QCVDDX6a+2x0GmmwkoZrp1vbgs9k+jaxbI0UsRq+X0coIaWIm0ei5MM=; X-UUID: 34554e276c634975987a568c4faeb39c-20200227 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 853755653; Thu, 27 Feb 2020 20:27:09 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Feb 2020 20:27:20 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Feb 2020 20:27:10 +0800 Message-ID: <1582806427.27775.1.camel@mtksdccf07> Subject: Re: [PATCH 1/1] pwm: mediatek: add longer period support From: Sam Shih To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= CC: , , Thierry Reding , , "John Crispin" , Matthias Brugger , Date: Thu, 27 Feb 2020 20:27:07 +0800 In-Reply-To: <20200227105244.orwitjst3wzoqcsq@pengutronix.de> References: <1582789610-23133-1-git-send-email-sam.shih@mediatek.com> <1582789610-23133-2-git-send-email-sam.shih@mediatek.com> <20200227080450.rkvwfjx6vikn5ls3@pengutronix.de> <1582797590.25607.10.camel@mtksdccf07> <20200227105244.orwitjst3wzoqcsq@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 SGVsbG8sDQoNCj4gDQo+IE9uIFRodSwgRmViIDI3LCAyMDIwIGF0IDA1OjU5OjUwUE0g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