Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2250682ybd; Mon, 24 Jun 2019 03:18:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHT6Mq584BfCDjUE/8weXRGNoLvxUGUA5J6aimLYHsnHT6iGYSZWaD5Dq5uKWvEq+qJbLc X-Received: by 2002:a63:444b:: with SMTP id t11mr8716699pgk.275.1561371524606; Mon, 24 Jun 2019 03:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561371524; cv=none; d=google.com; s=arc-20160816; b=KnKgDn3vBj+EXXbLxRGJk5gJZ6caLEaKYpMUibotif3CvRKxHXgHHeNUp7BBcDHeaZ v+aJZcTY36Ce12XaxVx2ilC91e+bUlJDWzPMZM4OLcAlrd8vnLCpMjP3qo8XyUorkUzR pHCmWWJ1XVrPrNiOYWlo77LXr3jKOwKdUnSbOcSB+/wwudB99VdqIV1M9P/vUpt/fZ8f aHgFoA+LMdDN9weguDOOpXib0x/iSAS9EvEqmqT+Qi/2gGm1DE5IGChD4miLTTR3Xuk7 oXNAShzZfXN4Yfz0erA+mcjyeY3em6o0hL9hm0cmENBpHNoa5MUP1nWyOfrm0tOUFhJ6 0fhw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GVl1QqRnWTpiz7uCmFySqaJC7WKmbFiaMQk7aYgrkWE=; b=RrumsAcfUlboTA5Q3+CmcSK7k2j+kIdH5zkNc6zfQ3n4ZJ4/frrdlTWZcVKZuqbrIa zwSK8O9IA/ObO3e/p3pDrgmh9wAe4XU6SHrGzKpJewX1THuYrnw6pNVzHv3NwOnI8Cvc InkbE6wc5UuRW9HBDOERO/a3UPhH8x3OJDdDEwOMW9VSdSm6gh3WKe8nNo0hDYhzqSOB vA3r+cgiplRTtp5rdTjNHORpR+WMeShK2FWcM2+ZGxIYbVuijZr0f+nZHW9lo4bY+yhm lWoHONnPoGe3TyVDwK1pHP0AsbLnbAvkCmnqc1LhzIQU/XWx+y7vZwYavG3yNlrJOBGB ad+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UT0WPI+e; 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 s7si9975600plp.66.2019.06.24.03.18.29; Mon, 24 Jun 2019 03:18:44 -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; dkim=pass header.i=@kernel.org header.s=default header.b=UT0WPI+e; 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 S1730902AbfFXKRL (ORCPT + 99 others); Mon, 24 Jun 2019 06:17:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:54660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728562AbfFXKRF (ORCPT ); Mon, 24 Jun 2019 06:17:05 -0400 Received: from localhost (f4.8f.5177.ip4.static.sl-reverse.com [119.81.143.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 418BB2089F; Mon, 24 Jun 2019 10:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561371424; bh=CRSruYZNYZEsKMB0PpnlbwDxJmP7qjeeKQInSfEmv5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UT0WPI+eFvZQyADi8wVRAxmfDFmQRVt4532lpzB923mDmvxzybx9IyT0/xsApOGkk XzGr3HzdVHQ1A5kDkd9C6C6puYzsLVjgUSEw3db0GHzopSccfMxACmD2a5vmbD/m8V IkYXMf1BjdXDCf6fLGzqx54VvdMGmLh3bQluFW4A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Niedermaier , Fabio Estevam , =?UTF-8?q?S=C3=A9bastien=20Szymanski?= , Shawn Guo Subject: [PATCH 5.1 098/121] ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX Date: Mon, 24 Jun 2019 17:57:10 +0800 Message-Id: <20190624092325.745004450@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190624092320.652599624@linuxfoundation.org> References: <20190624092320.652599624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabio Estevam commit b25af2ff7c07bd19af74e3f64ff82e2880d13d81 upstream. Since commit 1e434b703248 ("ARM: imx: update the cpu power up timing setting on i.mx6sx") some characters loss is noticed on i.MX6ULL UART as reported by Christoph Niedermaier. The intention of such commit was to increase the SW2ISO field for i.MX6SX only, but since cpuidle-imx6sx is also used on i.MX6UL/i.MX6ULL this caused unintended side effects on other SoCs. Fix this problem by keeping the original SW2ISO value for i.MX6UL/i.MX6ULL and only increase SW2ISO in the i.MX6SX case. Cc: stable@vger.kernel.org Fixes: 1e434b703248 ("ARM: imx: update the cpu power up timing setting on i.mx6sx") Reported-by: Christoph Niedermaier Signed-off-by: Fabio Estevam Tested-by: Sébastien Szymanski Tested-by: Christoph Niedermaier Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-imx/cpuidle-imx6sx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/arm/mach-imx/cpuidle-imx6sx.c +++ b/arch/arm/mach-imx/cpuidle-imx6sx.c @@ -15,6 +15,7 @@ #include "common.h" #include "cpuidle.h" +#include "hardware.h" static int imx6sx_idle_finish(unsigned long val) { @@ -110,7 +111,7 @@ int __init imx6sx_cpuidle_init(void) * except for power up sw2iso which need to be * larger than LDO ramp up time. */ - imx_gpc_set_arm_power_up_timing(0xf, 1); + imx_gpc_set_arm_power_up_timing(cpu_is_imx6sx() ? 0xf : 0x2, 1); imx_gpc_set_arm_power_down_timing(1, 1); return cpuidle_register(&imx6sx_cpuidle_driver, NULL);