Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp919152ybf; Thu, 27 Feb 2020 02:00:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxj+oeUye/e1vA1ltw2O+m1unIhD2v78WZuF2zkJr3WPcgKk/R2WrmemhTQgketJcmmG8Ij X-Received: by 2002:aca:1101:: with SMTP id 1mr2649680oir.30.1582797613419; Thu, 27 Feb 2020 02:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582797613; cv=none; d=google.com; s=arc-20160816; b=jW99wY3GdMNkTkCKCcon3RQe2tjNNpgz88N33M3bJdeitJxhLksv65Ij4ugSpk812k pn7EnMIau6XeTPQ/F76WuaBouB6ZI6kSgTCZ+lE9tLPE3uYZHau/pTfTp/EDOM6peHV1 jBj+O61Ds3cUTn92FYdXf8C0WB4ukta15VVtGpXjFppB1egMMyjBoWNh/OHjG3d4iIsc +IpzlZ3ko9ZWtJRLN6oLQOl6c6rS/WZ35s3fN2lbKKEPBFmXPZc0zJ/IslUv+bqLKQNZ ki9o6VO7fMkopYeow5ouDK89gqhsHjJ/yO1rabcH+DXvc/8OfItkLC3ybvAoDbBUCwCo vb3Q== 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=eLO7gTFF1vCEAIYROkM8MZuVGCM3sjjAWL8M+r6/05Y=; b=WIdyUN6b7kTA8jL9v21Njx61aDlicQ9UeY5/Ly8z3S8q4QWcm8vo/NGhZ8fdz5y6tr bpPx5gvBWQHfblPjuyxPP+NcAO+6cM3/7vn+VSR939RCWRi3Yj8fFdMOeM0oOI68gLwA Rou6k5WSxd7Ux95haAcLgA4enRRadMtS52kDrFdOxsi+zvNLQibA1KzXqH8HnzremaRj hmcY9kOV9jTCa76Noktpmk+Dz2MwDkK9RlvpFq6O0k6MTfr9VnB77Q77jAXccI8qcq27 /9E3C9Ecg2LFZHY7s+IBOqQXP2M32DfrDLBItEHyYCPXaRkC9PKR/0xxYmz3iqVxV6WB 8mlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BakoIO05; 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 x14si1139171otj.322.2020.02.27.02.00.00; Thu, 27 Feb 2020 02:00:13 -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=BakoIO05; 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 S1728714AbgB0J7z (ORCPT + 99 others); Thu, 27 Feb 2020 04:59:55 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:31747 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728627AbgB0J7z (ORCPT ); Thu, 27 Feb 2020 04:59:55 -0500 X-UUID: 77da96573f4642a78da32690f8465f85-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=eLO7gTFF1vCEAIYROkM8MZuVGCM3sjjAWL8M+r6/05Y=; b=BakoIO05e70F2zY4x9CluisQoeR2XSAUbzcWYoBfojDKRB1rabr2ND/3Fc3BDv/lMD4vRzT0evUdvNnSw44hiIW09QV1L/mWtF9KgXsXt6kEnc3NHimSorPXgazAkfYlCxf4yMFJ+Pp2FT2IrCe9OAS7dVxONIKUsyBrzLxNMj0=; X-UUID: 77da96573f4642a78da32690f8465f85-20200227 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1065449779; Thu, 27 Feb 2020 17:59:51 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Feb 2020 17:59:00 +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 17:59:53 +0800 Message-ID: <1582797590.25607.10.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 , Matthias Brugger , John Crispin , , , , Date: Thu, 27 Feb 2020 17:59:50 +0800 In-Reply-To: <20200227080450.rkvwfjx6vikn5ls3@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> Content-Type: text/plain; charset="ISO-8859-15" 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 T24gVGh1LCAyMDIwLTAyLTI3IGF0IDA5OjA0ICswMTAwLCBVd2UgS2xlaW5lLUv2bmlnIHdyb3Rl Og0KT24gVGh1LCBGZWIgMjcsIDIwMjA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