From patchwork Mon Jul 29 07:46:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 812 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9B2AF3F0E1 for ; Mon, 29 Jul 2019 09:47:35 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id 65sf32634366plf.16 for ; Mon, 29 Jul 2019 00:47:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564386454; cv=pass; d=google.com; s=arc-20160816; b=Ky/5sKnJJQ68ET9O8bRt5gOV8HAmOePXYBdfdgSbmkyCvQbWI57TX+L+RUbRx2F1W4 BP8upZ36z7xZNS8A6ANtYNvnmBw1kniUXF9+z9J0PzEDKCznlyLkbZ1i/IRM1I2gseOG I0rIUQi1xyRxlFft8Jh9Fs3B1fdmPJ6tsUQgCHq4e+XWQZ37D2RVFE2kiq0nEeLq62xS A/M8sA2Cd6zodESxc7ca3FG3PaM9w4icPpXPte4M2PEH2PPLYl+4YADrztabm9+mfkWX mYZbrBN6Ac5R52KaoFUMshzZkVq5CT1i/xwmrL1wbeX/Ee7tIRt0OJzeJ8t771RjhU/X fADA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=5FF4llCyz1IJ7M5/QBJbNVzQ+WZlxNsTTKfQyjjdGRE=; b=Q72vO3DC7iGsCBT5zMcFqhaWn669b44bjJgWc6FwiQRPlTfP362smC98NBR/0JsG9e ZNBVNjf4wO5AvIbBB9x7UIocL6e/e6WKskdIFnEBJT/XUhMRYI+iVpMPyJil7RbVLNe3 9t43TzqcFmiV8KKFT5ShjHQaYuay4GaLR0kb7tLmLlTJQvYgYa6hktd/b7enjp+RtFLR 4vlfVLmK6RxjGSOlHAuWgYKhxMg3vsIfvgEhfHm9MTlBtpdDXVbSZnzl8d15z8KnEVKl 3FFfPzVG84fLHaKeVIOOPzjUgscU1lYPFILL6AVfFfs6yxGopc6xmcxn/36L8KQyCIV7 PMPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kJJcD646; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=5FF4llCyz1IJ7M5/QBJbNVzQ+WZlxNsTTKfQyjjdGRE=; b=FXmv3wmDEcPHY2sIIxbNXWcJZIPmcCQEB/SZXhZzVv/YnYkvg7xvlH4/bWMbpD5o6u qmbPRv8QQ0t6pIPZI++LSK6Q/lj0BgZ1J4V5OlQxYK4CVdzyg0w51uLi1MzC7twQRtcb xquP3Z8t1rdVXdcgX9/CZ5YmQ2oVwn3p05tuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=5FF4llCyz1IJ7M5/QBJbNVzQ+WZlxNsTTKfQyjjdGRE=; b=XxAaXCqudwAWGpMJZ+WVkRB4joUBLVSSH9sFUvC8qnzsT+vVqobx4HBp+S8D8Y3Ym+ M1vms7cNx7umoa7dqQAvYWUlLtCSx37kwmHA/AhS03djjdl30h3HWNI+SN2P9V9RTUfM p7jyhB9rZBkDKIu5L9hee/mIgwhlb0sLbMqam3ljBfN08xVCzmIkckgicqbmEvlZeA3J zhokQkcm9ZODsojUN5krxO2jV3fvwTfdn4uKCrJUGlJD7tUeoZic2j3JU6U8+kQS5Weh 1U0BmgIj0W38O0aeSuNIDXVRon4J8eC/pPYKET9A7/aaV08hPJ6qp9j7DPE4+wlUKGy7 hLSQ== X-Gm-Message-State: APjAAAVJ/+ty8DmWgmEJntF+rDQC1yZV7RCsNdhJPnX4NqP4EOWRhcp7 S2H2T1cLrkPITAhvYugeQ1ZwCyta X-Google-Smtp-Source: APXvYqx2PuWOwq9coQJ+MJr1U7eCU3moitR+3lg8oskVdK95NA5eKUhNR56/gfjlERKrb7raWgFe0Q== X-Received: by 2002:a62:6d84:: with SMTP id i126mr34392577pfc.129.1564386454467; Mon, 29 Jul 2019 00:47:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:5ec4:: with SMTP id s187ls12398082pfb.1.gmail; Mon, 29 Jul 2019 00:47:34 -0700 (PDT) X-Received: by 2002:a62:d45d:: with SMTP id u29mr34957964pfl.135.1564386454143; Mon, 29 Jul 2019 00:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564386454; cv=none; d=google.com; s=arc-20160816; b=RoGcLDClaboO5YK20+e/6uV9qvLuDpqZvYi59yiR+2aqvPIY6dSCUIGrA29wNX+bn4 2H4grd2ZOJ7A8cRznKHJ9vITst0PyDLwTYEAuiUWEt/lfTOeHuzT+Jrxqe/G4cJGHHLB NKfSmyJEkq0ZOVoBhKmApZldBa7BeaFZua2o95aK3njhaxJdRsDY0THdmo5xI9caPrHD bNgBCnkFMTYGddCwyR4YpjGybarv0iQkooZMDO4SA8YVKiCA7sf493CArjRMCVuRDlyz pslwXnBZ57l+sBcKxnHmoXmh8zaF+j/u+ULPADggnN0dHvZD6V9xJv3o/huas6vawslF sAOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mgFw3iYrH+nI0SVN4epuo/Jnv38uJqCeO59EyXMs1/M=; b=f+DWdUwiyqtDh5VU0YW6VyU0s9BrvHlIGKe9RbKcLqgPGXjLhf90kgk/Bx29DAdbGT wusprhKrobLfVVFlzh7n8a44ugpMz8wb91Hit7EKj2w/StBM9F/SRkS1QAEfRIeEqeiL 8DI8Medzn4Tsb7ISHYv+K6OJ/LsDcaKhXM7dovWKjO46OWs29YoR0kWtZfu7IXlXLwCr BbWwFzXu0Ep0qqdtDNeaPSelL4Titk081g6jWIDF9RuQ6SYfuDch1El/GxhPmU2AmYcW uRTo/L8WONiWjXaO7i/+D484M6f1zBn5iZOdv2T65nPv6CJKTzdH3osgSuPfta6Ny4Od +2OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kJJcD646; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f89sor73067892plb.5.2019.07.29.00.47.34 for (Google Transport Security); Mon, 29 Jul 2019 00:47:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:110b:: with SMTP id d11mr113400546pla.213.1564386453901; Mon, 29 Jul 2019 00:47:33 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.41]) by smtp.gmail.com with ESMTPSA id h14sm75723348pfq.22.2019.07.29.00.47.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 00:47:33 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , Wadim Egorov Subject: [PATCH 03/15] rockchip: rk3288: Print reset reason Date: Mon, 29 Jul 2019 13:16:59 +0530 Message-Id: <20190729074711.16988-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190729074711.16988-1-jagan@amarulasolutions.com> References: <20190729074711.16988-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kJJcD646; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Print the reason for reset instead of storing it into env variable in rk3288. This would help to find the reset reason directly on U-Boot proper logs. Cc: Wadim Egorov Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/rk3288-board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3288-board.c b/arch/arm/mach-rockchip/rk3288-board.c index d3ec141fea..613264d7ee 100644 --- a/arch/arm/mach-rockchip/rk3288-board.c +++ b/arch/arm/mach-rockchip/rk3288-board.c @@ -72,7 +72,7 @@ static void rk3288_detect_reset_reason(void) reason = "unknown reset"; } - env_set("reset_reason", reason); + printf("Reset cause: %s\n", reason); /* * Clear cru_glb_rst_st, so we can determine the last reset cause