Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp409645ybt; Fri, 10 Jul 2020 03:03:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIPlel5CIw4mR0S7oyihX3rG7EDWLz1bQ+8wpaALmhYwRb/pl0S8oZBPqyJaQiZBBVKxXK X-Received: by 2002:a50:b065:: with SMTP id i92mr81082147edd.112.1594375419136; Fri, 10 Jul 2020 03:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594375419; cv=none; d=google.com; s=arc-20160816; b=m6mIYELEs2rHkHvfymm4vQhJtb3a6X1yv1Xg4oXigGNZnit2k37mIH21Fz8GrO5ej6 3mTMB3qOWbdv1+quf4d0fcvPynm0CiUUNBPRENqjCcxWzUzvIOOxVW7j2BSFF5lQMcrr nHigKT3RCY1F4Vix6YJfEtSVBxaRIAqXs41ai36wVSlQ27EiOJeMlXtPuC1Z6Qxmbp/J UpZLwYVv60lSYF/8J4t9lxi7YNSKqEHrDHz3Jwl2QkOy02j9ijJckzYOObLl26cI67a+ PaJjN2wUh+3JL4n+z7Xzjwea3s7IPnGqi/qb3pyIZUQTDTBEflNL+q/iCjkSMwkFYi3m sviA== 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=+4c74NVArRBIIoYLPPEccmW7RniPRSe9tGbNorQsXlU=; b=GinM9eKp/tTicDXOmDad40q3JEjfvPacVcmEMkoW7aT+4kABQuyTiGoeUHXSahtZDk ezaDB9ui+2zfV2msx2L3nugbGpGpL3npgHqczZgWLdzz6N7Qtrx4hS0zc6cNzzdHH9vy CsqAYBt+2QubFCxwL3/yXqZhSmHQF2cZytlClqCDybOllkKasA/FcSRfZKTlhnCemSsC OHXGWu/YDjtaI6bR6rljiah2X5khWWFC4IVyc6vAQ4tDyPYJOx/7+fToLmWZt/ywFgdr LuGM0KCMeLziHrE/8c070hnnYiBdK+oieiTd9eIj117QeGYiCMUZTZ5kk3gxxFwxyFtL cT9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LTAYuB5K; 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 z7si3419042ejf.367.2020.07.10.03.03.15; Fri, 10 Jul 2020 03:03:39 -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=LTAYuB5K; 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 S1727920AbgGJKC4 (ORCPT + 99 others); Fri, 10 Jul 2020 06:02:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:59938 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726560AbgGJKCz (ORCPT ); Fri, 10 Jul 2020 06:02:55 -0400 X-UUID: 8855551bfe5b4550af3356d03893a238-20200710 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=+4c74NVArRBIIoYLPPEccmW7RniPRSe9tGbNorQsXlU=; b=LTAYuB5KOSOu+IZXPtnEA4pOHlPwTJtUtHlnOyI2tYHHQiT/UjtXpz47/PwLfkRvy8tjviH97jXltHPFhUVfRt/s1CO8R5xnsfgA/K5+aW34N119M2ZGMjjivRXmpfCSriKTcg5JTcg+gr1KM7FnMB/qIOzWJNFEJDW5zdjdPbE=; X-UUID: 8855551bfe5b4550af3356d03893a238-20200710 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1421551354; Fri, 10 Jul 2020 18:02:46 +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.1497.2; Fri, 10 Jul 2020 18:02:44 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 10 Jul 2020 18:02:44 +0800 Message-ID: <1594375364.4941.7.camel@mtksdccf07> Subject: Re: [PATCH v2 2/2] thermal: mediatek: add tsensor support for V2 thermal system From: mtk17045 To: Matthias Brugger , Amit Kucheria , Daniel Lezcano , ". Zhang Rui" CC: , , , , "Steven Liu" , Michael Kao , Henry Yen Date: Fri, 10 Jul 2020 18:02:44 +0800 In-Reply-To: <1588238074-19338-3-git-send-email-henry.yen@mediatek.com> References: <1588238074-19338-1-git-send-email-henry.yen@mediatek.com> <1588238074-19338-3-git-send-email-henry.yen@mediatek.com> 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 T24gVGh1LCAyMDIwLTA0LTMwIGF0IDE3OjE0ICswODAwLCBIZW5yeSBZZW4gd3JvdGU6DQo+IFRo aXMgcGF0Y2ggYWRkcyBmdWxsIHN1cHBvcnQgZm9yIHZlciAyIHRoZXJtYWwgc3lzdG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