Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp275263pxb; Thu, 25 Feb 2021 02:05:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0E7diVKD61bkcaHqGiEOZfVjxHuzfnNhRXgiHMdA3A3hS8MfmX6i0mmhjJHDS26D3DsNr X-Received: by 2002:a05:6402:686:: with SMTP id f6mr2072520edy.125.1614247519158; Thu, 25 Feb 2021 02:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247519; cv=none; d=google.com; s=arc-20160816; b=bZRIyWkKKk/+tQYAg0pftuWluJ6W4vIyc7Ap8zvEM/CTscftBR/cZt1AiDcHGfq4FW xGMFV/eBDFmroJI3b+r+MAfyJ2dvetzo86+UFg/I2Ung/55AeTzRBFlO2+5SYY7TvYsk N+hjMgO4ms++Cec52aWl17tMrlQUXhwgEeS1nlB4bYQab+KbSpLnYTccBszQlamnukYF MabGOWDE6x53loyuDJJNh3eaew+6bpz1weZdQCD9bv4oxewFVvY219Z8g5QrUHCgth1y nFItUUA2ZWjLjkoc84Ymxs7ZVF4yvYEB2XEhHf8j/m33aHj+FrulcokSvUX4JSNOxlsf gxag== 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=l1roCuB83s6BTza1dTxo7wLXyYv8fR3JV6KVi3J2MFs=; b=aza+ttBFzWKes/UlRd7ieSBbAV8b4jMu9NPY0UEcapjBg6UyMmnNUFpayy9YZlaLQ/ YoxpLAnePYqjDrF325vxak3+dDMiHDluIuniYh6oDqTei3sA+UTPgVMVIS+tIB181pqq 1tWP+JzmIh4ezmxfxRyuSMpxqqNrXNLulxMCwJkMP4qGN67yTmqFA3Fhb0twfNFbGmc0 KT9uGYLYAdRAxFNzbKOSuLofR35WEtVMTE0AP9lgeth9AoefWV1FZ5X1da9e8R943Ul6 1eMekYLxaTxjDJ0s6wN6n8Uaox3XeNIaDMQB5N4stIwN/UGSpk9U4k4vuwWYPULuGsB+ xFDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+SpCdHW; 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 e24si2965888ejy.620.2021.02.25.02.04.57; Thu, 25 Feb 2021 02:05:19 -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=J+SpCdHW; 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 S233977AbhBYKBD (ORCPT + 99 others); Thu, 25 Feb 2021 05:01:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:34112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235313AbhBYJ4i (ORCPT ); Thu, 25 Feb 2021 04:56:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 121E264F0C; Thu, 25 Feb 2021 09:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614246860; bh=7k9QtFurMaugxdaYCJsxt+ILbD9L2vCCc3qV3SAQVKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J+SpCdHW3s1ZXjhCHQBmi0P+lqcFKUBOPvx4C1RFgfXdXRPr0Ro8lYXDfDptMLwP+ 7WRX16xUeW4Fh9/nVfncOmzw8L4f4JZnH5qR83TdQPlvi0xxYaQDk10DKx7bxI5z9z xncAoia8SPFj3X3k38LVyvJBVXmrzFykN8yfV+f0= 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 5.11 07/12] arm64: tegra: Add power-domain for Tegra210 HDA Date: Thu, 25 Feb 2021 10:53:41 +0100 Message-Id: <20210225092515.346943075@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210225092515.015261674@linuxfoundation.org> References: <20210225092515.015261674@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 @@ -997,6 +997,7 @@ <&tegra_car 128>, /* hda2hdmi */ <&tegra_car 111>; /* hda2codec_2x */ reset-names = "hda", "hda2hdmi", "hda2codec_2x"; + power-domains = <&pd_sor>; status = "disabled"; };