Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9134235ybi; Tue, 23 Jul 2019 22:31:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2AT3yg64guZqPSjNw9Zdkmx/my16kcXSrnHoJf1oE6hr0cEtCL8RDJMmllYzg6X/gFzCc X-Received: by 2002:a17:902:a504:: with SMTP id s4mr61672374plq.117.1563946287996; Tue, 23 Jul 2019 22:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563946287; cv=none; d=google.com; s=arc-20160816; b=uYxR4sOSB0QESxq9D72c0ikuYLFbYFXTOCuY0guvhxfabrsgXTwCJevChcaVLCD2fM h/C4VEIZfxHQ05jGvap1sc39ZUdfgVO4VZewR0Bfhv/WmlzcSRooaFY82Z1DzEToSDc0 CTT2w+CuqjNnuhxbQ2ML3mCAc8J79863LCEP9HEJoiiJc0rwDbyxqSwFn6brH+EUPkBu MAxYeAGbCPpmLUQ17eEOByHAW1MgsvWbNm3x3yRWh/KdGtlgLaWyB3saMoS36mUwACME RdobZ7qU57lcB0u/UTgBasnTZ+/JKODFtDZDMR4bNyqaVtSzsWIHlcH+4fpaAFdkzGIG eIDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7kubOS61ez6ZomGEn8kQ+ad+KQnTEWtQ4GxGH5GmoMk=; b=Gt7MnlR8FKwuVnJkR+pj50790+XXlrWzlRPpbJh9sWi3N98oQsk/MNanbr3ZTFJk/3 3b5OtKhnyk8GgtJgpmT/4utToXr55we/lbaaTGz1mbPkqwB/UbFkGKSeSmkXMqJujbdj cq5MuX0D26gJK31liR1FMeSH6nGMV+btg7BIB5PhVr/iRMVouUlwruAC1KgmblDUyjpM 515cJc76ZqRXdDqjyxEa+wWsV3kWcRZcwuNtDaPVHxnYY/+OaBzHzDTWxrUT+hBgSue2 Zd6/4eQf7Nzxsoy7h1o2MEg4ei0Ho/Kx/9rG+BZIOpFy+S0dfy6rRHlwmCK/hWgoPigE 1l1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cdIyqFjV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11si12405129pjb.30.2019.07.23.22.31.12; Tue, 23 Jul 2019 22:31:27 -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=@gmail.com header.s=20161025 header.b=cdIyqFjV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725970AbfGXFah (ORCPT + 99 others); Wed, 24 Jul 2019 01:30:37 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40868 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfGXFah (ORCPT ); Wed, 24 Jul 2019 01:30:37 -0400 Received: by mail-io1-f66.google.com with SMTP id h6so380947iom.7 for ; Tue, 23 Jul 2019 22:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7kubOS61ez6ZomGEn8kQ+ad+KQnTEWtQ4GxGH5GmoMk=; b=cdIyqFjVDDrRF63bqALekSTT5OjyL7XIsnWLFVmj1XgcCDUuppfwlcsMYgTi+8cUNe 2AFeG45rNURQesHoh8zmhMEgz9+efNw+DU+XEiHzLPB/ASUJ/UyPMQfU/ve61X1O1T5M QzAwooVVgpUOqW4WDAVtM+NJyaxn3dIkF7Y0O5RdEcbBoM9lEM31hlOVkgzxN28XB3kN iVN90fEsT3jf4sCkpaXPfzhIHN76xYi1eXK3NLnX/101IolJqjh93cSz3iA87f6yFX+v J13WKHWALKhQronpNU/aCyKIhzbUurA5zh0ktb4Y/WuyMvZe8uoFYKhg28UVQxTiYxdb ngpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7kubOS61ez6ZomGEn8kQ+ad+KQnTEWtQ4GxGH5GmoMk=; b=CwuzwAW/1R5ayGeQ88Z8+RjG0VVaOmkn01ESNLStOiy6FS/SrTdq55RXvQv4r9qmoQ ctOQEgjkaBov52socnJrdfsI022RTiKIhz3rLBHpaEbz3fJQjIEMkiE8W6vdHFhJF/fv 5h/fmQLnfzlYDMOrArO0CJoO+V7Oac7BJIF31mQsVBOxO8I18kqHtVqjAv31WBLsCQSS w2ZbGO0oWuwMKTdyYVvC1mcWplxxZeYYWgV53RDqS/nNp45d+5H/eNsQ5U2req5HjIoU ZEfaBWkdOk7i16Nue3DsUyDvRjqyon9BSqIZcOxS+WbVqtNamXO7v00EoBYYgk3hlyHV ZpMQ== X-Gm-Message-State: APjAAAX3oGN1YyAS7Ggb8ph+Q/6r6d5HM524fkpDYlCaNRQnD4nBfP6s 4958VQkpwHPkjypfgTWFHLjT6PaKLntd+GT1tsQ= X-Received: by 2002:a5d:9f4a:: with SMTP id u10mr47611856iot.243.1563946236324; Tue, 23 Jul 2019 22:30:36 -0700 (PDT) MIME-Version: 1.0 References: <20190719192954.26481-1-xruppen@gmail.com> In-Reply-To: From: Anand Moon Date: Wed, 24 Jul 2019 11:00:26 +0530 Message-ID: Subject: Re: [PATCH] arm64: dts: meson: odroid-n2: keep SD card regulator always on To: Neil Armstrong Cc: Xavier Ruppen , Kevin Hilman , Martin Blumenstingl , linux-amlogic@lists.infradead.org, Linux Kernel , linux-arm-kernel 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 Hi All, On Mon, 22 Jul 2019 at 12:51, Neil Armstrong wrote: > > On 19/07/2019 21:29, Xavier Ruppen wrote: > > When powering off the Odroid N2, the tflash_vdd regulator is > > automatically turned off by the kernel. This is a problem > > when issuing the "reboot" command while using an SD card. > > The boot ROM does not power this regulator back on, blocking > > the reboot process at the boot ROM stage, preventing the > > SD card from being detected. > > > > Adding the "regulator-always-on" property fixes the problem. > > > > Signed-off-by: Xavier Ruppen > > --- > > > > Here is what the boot ROM output looks like without this patch: > > > > [root@alarm ~]# reboot > > [...] > > [ 24.275860] shutdown[1]: All loop devices detached. > > [ 24.278864] shutdown[1]: Detaching DM devices. > > [ 24.287105] kvm: exiting hardware virtualization > > [ 24.318776] reboot: Restarting system > > bl31 reboot reason: 0xd > > bl31 reboot reason: 0x0 > > system cmd 1. > > G12B:BL:6e7c85:7898ac;FEAT:E0F83180:2000;POC:F;RCY:0; > > EMMC:800;NAND:81;SD?:0;SD:400;USB:8;LOOP:1;EMMC:800; > > NAND:81;SD?:0;SD:400;USB:8;LOOP:2;EMMC:800;NAND:81; > > SD?:0;SD:400;USB:8;LOOP:3; [...] > > > > Other people can be seen having this problem on the odroid > > forum [1]. > > > > The cause of the problem was found by Martin Blumenstingl > > on #linux-amlogic. We may want to add his Suggested-by tag > > if he agrees. > > > > [1] https://forum.odroid.com/viewtopic.php?f=176&t=33993 > > > > arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts > > index 81780ffcc7f0..4e916e1f71f7 100644 > > --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts > > +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts > > @@ -53,6 +53,7 @@ > > > > gpio = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>; > > enable-active-high; > > + regulator-always-on; > > }; > > > > tf_io: gpio-regulator-tf_io { > > > > Surely solves the situation, thanks ! > > please add a comment on top of "regulator-always-on" to explain why we always enable it, > note we should always enable it in case of watchdog reboot or other uncontrolled reset, > this regulator must never be disabled. > > Reviewed-by: Neil Armstrong > > Thanks, > Neil > I am afraid this did not fix the issue I was also facing with Archlinux on Odroid N2 using mainline u-boot. Here is the log of at my end using latest mainline u-boot with Neil's patches. [0] https://pastebin.com/HNmeY5uF Well this issue also persist with eMMC not getting detected after reboot If I try to change the dts to fix the sdcard. I am checking this should we enable regulator-boot-on option but still no luck. Best Regards -Anand