Received: by 10.192.165.148 with SMTP id m20csp579828imm; Wed, 25 Apr 2018 04:37:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx48qcQzdjamGFSbb/d1Ua91kSRdUMrqXGUGTM0ZuSa/VQXDZ3vNqfUH6iIVMUllr6sfJkR3H X-Received: by 10.101.91.204 with SMTP id o12mr21237409pgr.81.1524656221028; Wed, 25 Apr 2018 04:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524656220; cv=none; d=google.com; s=arc-20160816; b=KIs81UdIne/18CVWAWTVLvfufVLWLdWZw1UNYXXy7vq5LpBKm3S7q29o0WqQduM+Ja 48OnLYmGcU/GcYE0Ko0o9dE/rffl9y83p9v03vE6qvA2DDyull7tB6OstYcPdmPIPxEJ YiwIMbiLvvWh7LGTknIpONgK09GwzxRZkwnFFoXBLm0Lf783YgkmsJ76YH1KlFWl4d+d LwjLPivLpJOuxtmB6Zps/f55g0C9qQ2GUNUjCz2EqzXvzNAdmD3YFAaSHQQHQ+I+pVLp gSqBs/WqfF1d0jkFBikm8UF8SI104eia5Bmso89TYxvXysmNPBhTt9CrU3cCMyEsuP3X +5nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=O8tWBf0KTJ/OBDHXSGLlYbH/VnJ1XnLXuHdGF4IwKOw=; b=IYfG0qbV+HjmKWGzMBP10fwrxf0Vv2hYi96ppHvJsEQpRsMMaCUaYUyksE2Lrvpa4M AwQRChHKpGMlYQBEF7CAKO8cXkT0V2WYso8a6c/lUkjo29vG0VOOv28cALqMQuSU38Hd YXqB6F4r6r5QZRZA//jcWNnziGiif8wyzIa3l4AgKptXdUIrzU2ByJmf4BwC4lF4pwU7 FJ0OmRhJUEbthRJ7IKCGhQcnfYIQi2mEEo088AQAzMsrVXNVym0IPGB/LSno+89IinxF Y6nNGOPUjXrim5sBJH7jzd5uAJIcMFIJ6piExVob+8LLhRWEu38VW0TubvZVSmERcAx/ x87A== ARC-Authentication-Results: i=1; mx.google.com; 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 o14-v6si16157003pli.13.2018.04.25.04.36.46; Wed, 25 Apr 2018 04:37:00 -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; 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 S1752938AbeDYLfu (ORCPT + 99 others); Wed, 25 Apr 2018 07:35:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752281AbeDYKeC (ORCPT ); Wed, 25 Apr 2018 06:34:02 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D9D8741C; Wed, 25 Apr 2018 10:34:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gaurav K Singh , Abhay Kumar , Jani Nikula , Joonas Lahtinen Subject: [PATCH 4.16 13/26] drm/i915/audio: Fix audio detection issue on GLK Date: Wed, 25 Apr 2018 12:33:22 +0200 Message-Id: <20180425103315.374964303@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103314.842517924@linuxfoundation.org> References: <20180425103314.842517924@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gaurav K Singh commit b4615730530be85fc45ab4631c2ad6d8e2d0b97d upstream. On Geminilake, sometimes audio card is not getting detected after reboot. This is a spurious issue happening on Geminilake. HW codec and HD audio controller link was going out of sync for which there was a fix in i915 driver but was not getting invoked for GLK. Extending this fix to GLK as well. Tested by Du,Wenkai on GLK board. Bspec: 21829 v2: Instead of checking GEN9_BC, BXT and GLK macros, use IS_GEN9 macro (Jani N) Cc: # b651bd2a3ae3 ("drm/i915/audio: Fix audio enumeration issue on BXT") Cc: Signed-off-by: Gaurav K Singh Reviewed-by: Abhay Kumar Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/1523989338-29677-1-git-send-email-gaurav.k.singh@intel.com (cherry picked from commit 8221229046e862977ae93ec9d34aa583fbd10397) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -729,7 +729,7 @@ static void i915_audio_component_codec_w struct drm_i915_private *dev_priv = kdev_to_i915(kdev); u32 tmp; - if (!IS_GEN9_BC(dev_priv)) + if (!IS_GEN9(dev_priv)) return; i915_audio_component_get_power(kdev);