Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10694423imu; Thu, 6 Dec 2018 05:25:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/W1DcpdK4gyqpo2nNm6OqZNbZa79J9jwIlfXoyouudn2wW09yB95RDuaDr1PN5YmuDVYe0U X-Received: by 2002:a63:c0f:: with SMTP id b15mr24377181pgl.314.1544102706715; Thu, 06 Dec 2018 05:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544102706; cv=none; d=google.com; s=arc-20160816; b=pm6wClSeYiW8jhWmL+GGPxfLvJdDduqAuKQ7H3K1473AgIljNH5RVXQ4APP0VWHAqO 2HHLrm9gw2ofbe+aKXM/frOs/9DUDzKqDvjacWSg485agNEmAzNEalZtF275AKvyfpWY yWDj1Ey46IYWWl2WTF5nGMeWz15OlDRjpeEfV3pjbOnTDZGmz4nUWMtgWBRD+BmfbNzM vmRxtpChxrBfu1Cyn8jx6qlrR4iZNkQJC//+fUEw82XLsQWDYHKdrFMG9QrUQJ97oE8Q 5KRaFCRdXPrKgitkN2bykPFCVtV/TCY5oag/KztBEoNU2IuOMGsbvBZS30vY4I5/+Oue VJcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=+UcTH67XWbk9Y/IUYDWID0jdhCfeATeEP+3eC4a0ZJ0=; b=vaUWgk9a5GuOJCY5xTiV1ffnvXVVQrCJFV8AazZ7yisfSe43zzr9PUgR91Rpm/Z+HP gqDsMe9ScRIfNKsyERA0LoRzr4JMUdqbCMByJGI/PCF8aXpdXf0FPr8pFgj6qhV7e3Yj BU89Xiddno6pG2IAjRJVjacSEgNmBKkaNFjOTQ7XcUW2h3EArBqcNndqHaSlUHt4qGzM o5qgP8d7yHX5jzsHdq3kKosaygHzpjErABjhTtVjBmzV8B+wwkN70QxNPvsHCi30zuVN c2LT8Fx1itPVx62/DvEeEZPIZiNAo20GDKoJE4MGDNZanuJgcviwdgnn4oogc6eLXsic lEGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si278581plg.62.2018.12.06.05.24.47; Thu, 06 Dec 2018 05:25:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729637AbeLFNYE (ORCPT + 99 others); Thu, 6 Dec 2018 08:24:04 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:11803 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727943AbeLFNYE (ORCPT ); Thu, 6 Dec 2018 08:24:04 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wB6DLioP003599; Thu, 6 Dec 2018 14:23:34 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2p3w2s46ab-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 06 Dec 2018 14:23:33 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3F75841; Thu, 6 Dec 2018 13:23:33 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E4BC92AAF; Thu, 6 Dec 2018 13:23:32 +0000 (GMT) Received: from SFHDAG3NODE2.st.com (10.75.127.8) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 6 Dec 2018 14:23:32 +0100 Received: from SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96]) by SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96%20]) with mapi id 15.00.1347.000; Thu, 6 Dec 2018 14:23:32 +0100 From: David HERNANDEZ SANCHEZ To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre TORGUE CC: "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" Subject: [PATCH] thermal: stm32: read factory settings inside stm_thermal_prepare Thread-Topic: [PATCH] thermal: stm32: read factory settings inside stm_thermal_prepare Thread-Index: AQHUjWbi+FUfeo4eoUu6YgNgwgJR0g== Date: Thu, 6 Dec 2018 13:23:32 +0000 Message-ID: <1544102603-14899-2-git-send-email-david.hernandezsanchez@st.com> References: <1544102603-14899-1-git-send-email-david.hernandezsanchez@st.com> In-Reply-To: <1544102603-14899-1-git-send-email-david.hernandezsanchez@st.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.48] Content-Type: text/plain; charset="utf-8" Content-ID: <8A51B9C2EFA6614BAFFAA4D04E97DAB8@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-06_04:,, signatures=0 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