Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3512832pxb; Mon, 1 Mar 2021 11:57:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxL5Ram9ackhdRmRZe5zzSaQvNFVF2QICqToxnEw6OeSBsIxMHX8qQzg1bgcCuD5xgI1KS2 X-Received: by 2002:a17:906:ca02:: with SMTP id jt2mr17518198ejb.312.1614628631630; Mon, 01 Mar 2021 11:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614628631; cv=none; d=google.com; s=arc-20160816; b=myDIgeztBrOw7UbjRsuRV3sx1HvZEnXsuoKhGFvFlr+jvdLiR6Ynk3AtkPa58bR26X yePcb70+0Od2TSseFTgA88SPLZetBwFaFoa4GYJSPwbfsEBnMwSDku9W0sDhvMnUOBp9 ZmUIW+7SpMbb/8ijkkzuSlbs/EmGwC1vpPS2Mcm8ts/GH1Osg/rq3+r+GkLtWBityU+2 w8xNt3o/8vknxxVjUbSECtODj1E+K3E49UxGOLyju8fClFb2ildy6HXPDuHWr8TtsgAZ tD6OVjYkLXhe6rZX8Eb9ZHYCGNeNiaE0w7vSh2dLg2ezsAsGJxp0fjOl15p7K3i2cIP+ SAzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HMUIZVUzbkXDbW/SYSDZEZJzhmkaItp9MmmV6GSsukg=; b=D7QsoN26TSWhUT0pMF3zel5I83JOJHuEEuwQnmrsG0hhJolZ9dlwpbUt/HpTFryuMj vfmAlg1CNs5IT4mRq0mLpCVHPsLK/41k2YZq8boRW8GdrgQbJMnU6A/lBKsEjeaWMKcw yW0P4AxV0ZEFbCvAmNX8M7dGt/tDhvxToJUIk2guV4QNZ6g6Z7I8vGLP3AsJPEnSkj2/ WIxUiFGgl5lA8kQOYzWZXhtE7FhgphqaOWqYOY+A48eA9DCkKl/mES0ZYCJ2qyLIoi+H Ym2PGzOlXwISHnqBIba/bXEpA4sYZVlnxuWe63tIeg9sQdwCTBp+767SXkfSML/mWWMi 4/1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ccrvyguq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si12382030ejf.489.2021.03.01.11.56.45; Mon, 01 Mar 2021 11:57:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ccrvyguq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242545AbhCATyA (ORCPT + 99 others); Mon, 1 Mar 2021 14:54:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:59154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236130AbhCAQ6K (ORCPT ); Mon, 1 Mar 2021 11:58:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D44364F65; Mon, 1 Mar 2021 16:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616588; bh=xHIS3f7IVQbX/I+qb3d7v0ky17cFljNRsAtv1yNGOoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ccrvyguqgK9HPHHBu5kHKyiBdT7u2kpjGa9OPFBoaApDGW62PY1gVSV8ZoTIpTxHv lfOvR8AZlo4m7v8yI2IXBNov3zhYvN7Voa++ZAsrBCB1ksrNqfdcZKINQa99hbGjDZ DK1dEhPcoOF24WQvPsSAkupN6w6ps07Xs/SGXvgk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sameer Pujar , Jon Hunter , Thierry Reding Subject: [PATCH 4.19 005/247] arm64: tegra: Add power-domain for Tegra210 HDA Date: Mon, 1 Mar 2021 17:10:25 +0100 Message-Id: <20210301161031.956200446@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sameer Pujar commit 1e0ca5467445bc1f41a9e403d6161a22f313dae7 upstream. HDA initialization is failing occasionally on Tegra210 and following print is observed in the boot log. Because of this probe() fails and no sound card is registered. [16.800802] tegra-hda 70030000.hda: no codecs found! Codecs request a state change and enumeration by the controller. In failure cases this does not seem to happen as STATETS register reads 0. The problem seems to be related to the HDA codec dependency on SOR power domain. If it is gated during HDA probe then the failure is observed. Building Tegra HDA driver into kernel image avoids this failure but does not completely address the dependency part. Fix this problem by adding 'power-domains' DT property for Tegra210 HDA. Note that Tegra186 and Tegra194 HDA do this already. Fixes: 742af7e7a0a1 ("arm64: tegra: Add Tegra210 support") Depends-on: 96d1f078ff0 ("arm64: tegra: Add SOR power-domain for Tegra210") Cc: Signed-off-by: Sameer Pujar Acked-by: Jon Hunter Signed-off-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi @@ -826,6 +826,7 @@ <&tegra_car 128>, /* hda2hdmi */ <&tegra_car 111>; /* hda2codec_2x */ reset-names = "hda", "hda2hdmi", "hda2codec_2x"; + power-domains = <&pd_sor>; status = "disabled"; };