Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4529859ybp; Mon, 7 Oct 2019 09:46:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqze6GQ9p0uuoGHDfJKC1EfXli2iWcGFqQvABrPeGbB2OUD+oixEf+ZsXXjOznKWrVPiPPvC X-Received: by 2002:a50:b545:: with SMTP id z5mr30271670edd.203.1570466792974; Mon, 07 Oct 2019 09:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570466792; cv=none; d=google.com; s=arc-20160816; b=S3b+skUdFlHCtlHYJeNr31MmRlZoWv7jC1/mQoH7EyJzoJ26w3bmRD9LY5vfCXUreD WszTVJEcTHfKG5ehAWDMy85v5Nf5NeACb9tbb5HOxyPVtlG8YlAvbjfkLM9frM5/bnbH UtHV0WhrqhoK9T+/YNlLhlcxemsrDz9i3mbHK9FQO+gNWG1CZ8vWt3d4CUBilDWCJOeO awzHIjG6hIiS0sj9dtvNyrW4BXrnhH9Sl3yNCjrUFoNaQwYDLUX1ingbGHRXfgqk/ZEA Dbld8ngQlsrw8GG1ReXeadXznNGoeCglr3/RNLkVN5FszQRVy9PQf5+g2cOvS3LOwjQK WMUA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :domainkey-signature:dkim-signature; bh=kU5XhM/5Zmdnxv30UI3yAWEC68+KyrGagMWczaJWw7g=; b=hLI96BQYIOnzXwTIfSn+sytdIXxWeHk8E5EMQrEMj4hRQgqVwD9b7NFsBMlJBOq9tl Vid4S+Yfh4YKg6i0x7vsd6jCO0gsOoOl0CT9Tl2uPsamYb1CQTTYDGV9ZXUN/NGw5VKw 6X0YjHn7AVAWWiNHypaFxuflh5wJy4C5sQDvXhLE3sWvfrX8amPGghWUGpSULzRlUTCB YYy0Vd3N+hkuRObXKic1WbGCYzQOCAn8ZW/h0CwRVGhT4Q/g2Xow/+qoixTguQT0gQiw F0v1thvMKJWenHmt0/j3bRa47df26N2mKKsE+7dy/Gomce0GSdfj33FmgHKNyO2H8Skf Gzlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bidouilliste.com header.s=mail header.b=kSCt9zRM; 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 bq16si7520980ejb.221.2019.10.07.09.46.09; Mon, 07 Oct 2019 09:46:32 -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=@bidouilliste.com header.s=mail header.b=kSCt9zRM; 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 S1728895AbfJGQpN (ORCPT + 99 others); Mon, 7 Oct 2019 12:45:13 -0400 Received: from mail.blih.net ([212.83.177.182]:51390 "EHLO mail.blih.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbfJGQpN (ORCPT ); Mon, 7 Oct 2019 12:45:13 -0400 X-Greylist: delayed 398 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 Oct 2019 12:45:12 EDT Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id c5fe113e; Mon, 7 Oct 2019 18:38:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=x8Fb8EJYC8DBijQk39x8YH5AULw=; b=kSCt9zRMRkRXIBi7Jle6eJm45QFm 0rHpyhYEZ/UGz7DLPG5fqEuAMDu21cHZJNxV8NGayqyJt/YmaXSbVnWdeqWdFr/F k/ThBug0HPc9kTUvqEW/fs/WLAW93pbcwpIPExl0jiY6eJqLOf9jETMJy3uC+rF3 X5d5z/c7GEM3qfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=SsqDpYzYXtI8Tul7fI3I19ADwfqgOwakPKW9p6pkQqIcb24K3RKdmTT1 Nf8IwNs3tMDR3LC7Em3IISZDQZ+3U3Bm34owITo5s3FwSgYugS41gBZdqC30acWj QY+MePjw64aoVjFmfRvqj0XS8020tQwMuQz92b9/emyGIwXS1ns= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 1b727bdc TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 7 Oct 2019 18:38:31 +0200 (CEST) Date: Mon, 7 Oct 2019 18:38:30 +0200 From: Emmanuel Vadot To: Tony Lindgren Cc: Emmanuel Vadot , bcousson@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: Set status to disable for MMC3 Message-Id: <20191007183830.71e1303d6bd713014dc36710@bidouilliste.com> In-Reply-To: <20191007161634.GS5610@atomide.com> References: <20191007080339.57209-1-manu@freebsd.org> <20191007161634.GS5610@atomide.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Oct 2019 09:16:34 -0700 Tony Lindgren wrote: > Hi, > > * Emmanuel Vadot [191007 08:04]: > > Commit 5b63fb90adb95 ("ARM: dts: Fix incomplete dts data for am3 and am4 mmc") > > fixed the mmc instances on the l3 interconnect but removed the disabled status. > > Fix this and let boards properly define it if it have it. > > The dts default is "okay", and should be fine for all the > internal devices even if not pinned out on the board. This > way the devices get properly idled during boot, and we > avoid repeating status = "enabled" over and over again in > the board specific dts files. That is not correct, if a status != "disabled" then pinmuxing will be configured for this device and if multiple devices share the same pin then you have a problem. Note that I have (almost) no knowledge on Ti SoC but I doubt that this is not the case on them. Also every other boards that I work with use the standard of setting every node to disabled in the dtsi and let the board enable them at will. Is there something different happening in the TI world ? > Then the board specific dts files might want to configure > devices with status = "disabled" if really needed. But this > should be only done for devices that Linux must not use, > such as crypto acclerators on secure devices if claimed by > the secure mode. > > So if this fixes something, it's almost certainly a sign > of something else being broken? In this case it's FreeBSD being because (I think) we have bad support for the clocks for this module so we panic when we read from it as the module isn't clocked. And since I find it wrong to have device enabled while it isn't present I've sent this patch. Cheers, > Regards, > > Tony > > > > Fixes: 5b63fb90adb95 ("ARM: dts: Fix incomplete dts data for am3 and am4 mmc") > > Signed-off-by: Emmanuel Vadot > > --- > > arch/arm/boot/dts/am33xx.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi > > index fb6b8aa12cc5..b3a1fd9e39fa 100644 > > --- a/arch/arm/boot/dts/am33xx.dtsi > > +++ b/arch/arm/boot/dts/am33xx.dtsi > > @@ -260,6 +260,7 @@ > > ti,needs-special-reset; > > interrupts = <29>; > > reg = <0x0 0x1000>; > > + status = "disabled"; > > }; > > }; > > > > -- > > 2.22.0 > > -- Emmanuel Vadot