From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11B9EC3A5A9 for ; Sat, 2 May 2020 07:17:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD998208DB for ; Sat, 2 May 2020 07:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726787AbgEBHRc (ORCPT ); Sat, 2 May 2020 03:17:32 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:45865 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgEBHRb (ORCPT ); Sat, 2 May 2020 03:17:31 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 4BDD71003CE02; Sat, 2 May 2020 09:17:29 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id B7EEC3F76B2; Sat, 2 May 2020 09:17:28 +0200 (CEST) Date: Sat, 2 May 2020 09:17:28 +0200 From: Lukas Wunner To: Takashi Iwai Cc: Nicholas Johnson , Alex Deucher , "Zhou, David(ChunMing)" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Takashi Iwai , "Deucher, Alexander" , "Koenig, Christian" Subject: Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state Message-ID: <20200502071728.fn2fcqvt6aies3zu@wunner.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 02, 2020 at 09:11:58AM +0200, Takashi Iwai wrote: > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -673,6 +673,12 @@ static int amdgpu_dm_audio_component_bind(struct device *kdev, > struct amdgpu_device *adev = dev->dev_private; > struct drm_audio_component *acomp = data; > > + if (!device_link_add(hda_kdev, kdev, DL_FLAG_STATELESS | > + DL_FLAG_PM_RUNTIME)) { > + DRM_ERROR("DM: cannot add device link to audio device\n"); > + return -ENOMEM; > + } > + Doesn't this duplicate drivers/pci/quirks.c:quirk_gpu_hda() ?