Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6405759pxb; Tue, 15 Feb 2022 01:32:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPselbihnESGCr0+Kpuh28jOM1WsHQo/uQyu2mbIjevQ9Gpif8F9J8OkKdUA8sJloAFPjz X-Received: by 2002:a05:6402:702:: with SMTP id w2mr242972edx.128.1644917570616; Tue, 15 Feb 2022 01:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644917570; cv=none; d=google.com; s=arc-20160816; b=upFa1pFPzfkF5R3biNk65cdk0lX32h6D46UFyMhmOy5gs8QcIIhF9sonFUs9dBjktU NR4upggGROhkdm1Qi+EByV86xLdX5Uo7bpbIO8SX5jKZsO2C6WyZZXET0tuJMSJKSfHR BJBVS+x/mXgMyPKM2eq0rI/huI9wLzz6QmZw/d62EcwVwvMaQ6xlG28BlnApwv7K0P4K aNfZjgrjbb/bRX0zticHcemIkmy5j7J84HS03jT+LY1JfwHTQCKXakvAFFg85vr0ZHZw SnNKDuFZYqRI0WYQmq9nCAU4RKKb7CGV2jt9Ozk4Y8lFnV/wHuts4OMBTep3gn3fTpHm QzyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kuUSzsUy0IuHIHRMUuXKTprsK0rJaAS42u2oTlh7Ol8=; b=m75QoTwcJ7aayvZc91O0HS2Dr+vPvnzg4/ds8LhQ335sz9HK2u8GKuKJ1f6V3X3CT9 KkcIOJnTPQxX4USqXSSj//2jyLWXRmbF04n6bHNk4+tdEv+gmy/qHPE9oOLghJUOzAT4 hWYpOIznHWRoGosUvfT53rf0EVG4qmWFfy5THMNTrnctr9cm8PdT/R9Dec+2c+9WC5EK fJ9HM9t6cubF13nSYaLjBGbdtst1QbnawkNCtxcNEXwPnusMVGMMYL4RZ1876ZCtchGg nfqsyIm4bv01qG/BJU9t6Mb9M6LAbB4YNEHih1c8jIPyuTnpoXnH779CuZCsCTcZHSs9 aUUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OJhY4hfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se21si104379ejb.290.2022.02.15.01.32.23; Tue, 15 Feb 2022 01:32:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OJhY4hfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234395AbiBOGry (ORCPT + 99 others); Tue, 15 Feb 2022 01:47:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233062AbiBOGrx (ORCPT ); Tue, 15 Feb 2022 01:47:53 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A49B13CEE; Mon, 14 Feb 2022 22:47:40 -0800 (PST) X-UUID: 8a680551181e4ef6b1965dea329c6ddb-20220215 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To:Subject; bh=kuUSzsUy0IuHIHRMUuXKTprsK0rJaAS42u2oTlh7Ol8=; b=OJhY4hfE2+qlkc8EqiQSQwioKPD3SBJNwOOb+2qzg9XOfb0IUkU6TewnTs3rpqm1WvSrHqQH1jmeEfg5hi+KpnBI7DKj74uVlXAP2Qmh9QzVbd5eWBfGRG5vUbrTyDb4B1SKGhOS2hb6ZNX3svoa/6wkVzZpppSjtElDMueLPTM=; X-UUID: 8a680551181e4ef6b1965dea329c6ddb-20220215 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2058819367; Tue, 15 Feb 2022 14:47:34 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Feb 2022 14:47:33 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 15 Feb 2022 14:47:33 +0800 Subject: Re: [PATCH v2 3/3] pwm: pwm-mediatek: Beautify error messages text To: AngeloGioacchino Del Regno , "thierry.reding@gmail.com" CC: "u.kleine-koenig@pengutronix.de" , "lee.jones@linaro.org" , "matthias.bgg@gmail.com" , "linux-pwm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "kernel@collabora.com" References: <20220214140339.112500-1-angelogioacchino.delregno@collabora.com> <20220214140339.112500-3-angelogioacchino.delregno@collabora.com> From: Macpaul Lin Message-ID: Date: Tue, 15 Feb 2022 14:47:33 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220214140339.112500-3-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset="iso-2022-jp"; format=flowed; delsp=yes Content-Language: en-US Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMi8xNC8yMiAxMDowMyBQTSwgQW5nZWxvR2lvYWNjaGlubyBEZWwgUmVnbm8gd3JvdGU6DQo+ IEFzIGEgY2hlcnJ5LW9uLXRvcCBjbGVhbnVwLCBtYWtlIGVycm9yIG1lc3NhZ2VzIGNsZWFyZXIg dG8gcmVhZA0KPiBieSBjaGFuZ2luZyBpbnN0YW5jZXMgb2YgImNsb2NrOiBYWFhYIGZhaWxlZCIg dG8gYSBtb3JlIHJlYWRhYmxlDQo+ICJGYWlsZWQgdG8gZ2V0IFhYWFggY2xvY2siLiBBbHNvIGFk ZCAib2YiIHRvIHVuc3VwcG9ydGVkIHBlcmlvZA0KPiBlcnJvci4NCj4gDQo+IFRoaXMgaXMgcHVy ZWx5IGEgY29zbWV0aWMgY2hhbmdlOyBubyAicmVhbCIgZnVuY3Rpb25hbCBjaGFuZ2VzLg0KPiAN Cj4gU2lnbmVkLW9mZi1ieTogQW5nZWxvR2lvYWNjaGlubyBEZWwgUmVnbm8gPGFuZ2Vsb2dpb2Fj Y2hpbm8uZGVscmVnbm9AY29sbGFib3JhLmNvbT4NCj4gLS0tDQo+ICAgZHJpdmVycy9wd20vcHdt LW1lZGlhdGVrLmMgfCA4ICsrKystLS0tDQo+ICAgMSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0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