Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111718imm; Wed, 1 Aug 2018 10:22:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdw04iUEPx42sop1dAD9072iko4Ep0jtfs3kfF+/8dAP/fHRzG21B/zP0RYRqabxRQmGirP X-Received: by 2002:a63:d80f:: with SMTP id b15-v6mr25970406pgh.347.1533144129647; Wed, 01 Aug 2018 10:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144129; cv=none; d=google.com; s=arc-20160816; b=bB0y5ExlUECI5wHOnS+uqdWImua7Z5VWLkiSfRJ1Zb1xbrF6rIvQVI04EY1wxF0YEB PGNJkVeZrBM/g3oa7f2bgv2gjaS7RoLWauz/PGcw/1Zrx4qwy2287PZLjLJrKXCMpFyY pukeUMUMY3UbmuxfK+iRD+7RRZcuU1f1nVWZ9Ix3OYTJVdE6KIifspAzes+3grAcGH+R WpFm97MvnhQwr7pnoXgKh36fLavV3v1UlU9qkyVamnoIFFVO5Syr7sMK8Oaw2t13Of0Z uDluI38Gh97RQPQhmHSVLJrSBU5MeNcj45u22T3sL7LZLCr88cV9o4X16WHxK+Gybv5A LZsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=E8ECbxd91aDQjhq5WSFeXkfxrIIc/JzHpGi677imSXA=; b=hY5tnWF5HE9LUF/C/jhn6UKs8mOewpyK4crbbqK45kfr+0/vrAGAYBuK3NXfqdrSHK wyiNFb/xEyNfvbDGiet6rBOgsfDdMxxb1jXjADZcfpy3ECc1AjnDBZyI7T0zFOQ1jUWR /DN6xaV3hVEb5hgMqX9ptbBy0+0XSVsk3nwiK2vaQ7TJyqLZLjUhlagGqKa7H+XeyN2e O5JpJ7jQcN7ET25iuZilsN2rk/7yqnt3Mvs6Qs0JcyVKF9lPuZ3uR4ejjQnizMgNTe3p Lk719jJERWE6ZUIBqhlRp00OX66IBnmYp3vaLu2sbKSx0hAkHtzhD1prJ1z7/rHhLEuT PY3w== 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 x25-v6si18054415pfi.138.2018.08.01.10.21.54; Wed, 01 Aug 2018 10:22:09 -0700 (PDT) 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 S2405332AbeHATGu (ORCPT + 99 others); Wed, 1 Aug 2018 15:06:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49058 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403967AbeHATGt (ORCPT ); Wed, 1 Aug 2018 15:06:49 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C0E96D6A; Wed, 1 Aug 2018 17:20:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bartlomiej Zolnierkiewicz , Eduardo Valentin , Sasha Levin Subject: [PATCH 4.14 167/246] thermal: exynos: fix setting rising_threshold for Exynos5433 Date: Wed, 1 Aug 2018 18:51:17 +0200 Message-Id: <20180801165019.733979912@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bartlomiej Zolnierkiewicz [ Upstream commit 8bfc218d0ebbabcba8ed2b8ec1831e0cf1f71629 ] Add missing clearing of the previous value when setting rising temperature threshold. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Eduardo Valentin Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/thermal/samsung/exynos_tmu.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -598,6 +598,7 @@ static int exynos5433_tmu_initialize(str threshold_code = temp_to_code(data, temp); rising_threshold = readl(data->base + rising_reg_offset); + rising_threshold &= ~(0xff << j * 8); rising_threshold |= (threshold_code << j * 8); writel(rising_threshold, data->base + rising_reg_offset);