From patchwork Tue Aug 13 12:12:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 818821 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp240934wrm; Tue, 13 Aug 2024 05:12:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXpLY/12GjhPvEAJ5Vr9PDWvg/f2CWk0uF+BdY7FUXdvLzhJimde/LDZqojLWFb5VPUAOc3ZdNg0HuXahjQEnWB X-Google-Smtp-Source: AGHT+IGzgDMiLSaoMloezW+s8B4a654trxqygJdYPyvtUkmS/jr+xaqNNadAOTaNQOD1dEJxeY1S X-Received: by 2002:a17:907:25c2:b0:a7a:bcbc:f7f4 with SMTP id a640c23a62f3a-a80f0aedbd1mr253157666b.14.1723551144918; Tue, 13 Aug 2024 05:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723551144; cv=none; d=google.com; s=arc-20160816; b=D77izLh9gTXIwYZ9CFZg5ojxb3s029M7vh2+xCgYLgXRDDPy15/1+zOR8CQ5TIynxL llnmXZlCesABEjO1JllOJeGymPVrWKEj1dJ5X57fL06wEwiRPXaWVfJH51pRim2REkEf zy7XyJ+Jp099IrBwS8sGW0DIV/6/rMUfH9F0vZ0/Xf9zCVjQRg3M3SDbrShtg/mACWsM iwGroyX/Xhaetu191OjFwll4qIxn107kXz1SDOA3GKpWxZhvw9+mNpq3PWqVXmfNFWAU q3RGm77KVSkBc3VZs9rySiQIRrcC2IHbvfsWmSz1zv1GvgXEEV9gBvnpeE5szc7BHoD8 Bi/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=jDOKD0S2R8MCu2WOpe9OLL2S/UdXwW/1B6XSZTvZyE0=; fh=o1Ol2je0fVUlFXsjO/gup0RWD8FsLc208GfcjcSUZao=; b=DuDMaZcvLl5piSenSFbN8eaBgrDpQ54m2TI9FDcBBq8utmLCgM0eaSYMwR8EWoBKvX dDf3AyLEfPSpsmMH20eWKacm15zlo7XeSrwCuFisl0Xsb3G2MDy+KZcWWfjsfB7NVqoz 1u/+vKsLSbrrH4XS5Kf+5p4kzORwsNh2CG7zW6JAojSrKSy0/hpS0pWXjSMdp/EVLpjf yGQ8r8O4OK0I6Wfra6Ve91LzKdnLhSaiDrltTZYg7vxs48PdJ1Ea8kcae+mTJIGVvaZY 29MAxeGURAJkPATqKB0t22tnkk988l1EnU3/mFkZcbguTLbz+hKvM9PnMUaVEjgN0jrF qy5Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=fOuQpw9M; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a80f411bfe5si84989566b.306.2024.08.13.05.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 05:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=fOuQpw9M; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5567B88842; Tue, 13 Aug 2024 14:12:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="fOuQpw9M"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B377688986; Tue, 13 Aug 2024 14:12:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AEED88871A for ; Tue, 13 Aug 2024 14:12:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jDOKD0S2R8MCu2WOpe9OLL2S/UdXwW/1B6XSZTvZyE0=; b=fOuQpw9MwgXpxCAHgJT4SCp4xR E9hN1bktUuRUcm62O1mZhDFARr09KdlTof6mnWtKWrZENkmRQEyMxBKtsfbttFsnhCri5b+IwvZLS gGUmL0/1k8V8iv7b9W3gYQ9v3JLgzZofmQ4nkAVM0oQ+CW6Bf/pHfQGT3wKJ/Nz0e0KFsdExo/FkK Ls+fIm9VjSRJ+LR80xhjqeOw2b4v/+B5Di+T/tZcjVWDIrcaNx6QTC0Kb6fyn/AToWgs9eMNIdRii doDDj8B40LHKebKkFYpw0oS1afz3IaOlDo9br/5Dz8PVJB5Se+TmT5aiqAdDfSv8ctVyneFGIx2aG v1l5qFvA==; Received: from [89.212.21.243] (port=46818 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sdqNu-00Fkvz-0L; Tue, 13 Aug 2024 14:12:18 +0200 From: Primoz Fiser To: u-boot@lists.denx.de, Stefano Babic , Fabio Estevam , uboot-imx@nxp.com, Tom Rini , Primoz Fiser , Ye Li , Peng Fan , Elena Popa , Marek Vasut , Simon Glass Cc: upstream@lists.phytec.de Subject: [PATCH] imx: imx9: Set correct critical temperature Date: Tue, 13 Aug 2024 14:12:17 +0200 Message-Id: <20240813121217.2279187-1-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") wrongly set critical temperature to (maxc - 5) instead of maxc. Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") Signed-off-by: Primoz Fiser --- arch/arm/mach-imx/imx9/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 32208220b207..f88e7a222dd4 100644 --- a/arch/arm/mach-imx/imx9/soc.c +++ b/arch/arm/mach-imx/imx9/soc.c @@ -536,7 +536,7 @@ static int fixup_thermal_trips(void *blob, const char *name) temp = 0; if (!strcmp(type, "critical")) - temp = 1000 * (maxc - 5); + temp = 1000 * maxc; else if (!strcmp(type, "passive")) temp = 1000 * (maxc - 10); if (temp) {