Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp713062imj; Wed, 13 Feb 2019 16:19:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IbaXxOAoMT5wUuHVug/gXny/uNKsnjpBCigRvT8OaSKiberNmkzVCqHibKKBCxw/jvqEFF4 X-Received: by 2002:a65:6147:: with SMTP id o7mr888721pgv.356.1550103547842; Wed, 13 Feb 2019 16:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550103547; cv=none; d=google.com; s=arc-20160816; b=L98kJz/ZHfbVQlZIXycc7CNAJuWNmsfd8dQYdHMHQXaywR6IOkhnmLKFjPUT4B1trV 2zkqskUy4FuhzYlNxixY2eEiFzIZnEgJYVZXgBeeYNk49GgeQJqr3U3R2j4Gc5JRG1cj gorzIkpMigVL5Lf8iUMvM49IBCZAokia7f6B6ikXi7jdxggXc6Kvm1NOIYNT588Uodir 2wg58mV53zCD5UuM4zU7pNSHkcncLxc6y/vjFk/7MJEvtwbmszF5649lx5hEiQH7bVVJ b0bPE2Br82etefTuNaM1MSOCEpq0R89+WtVXeE82SeeCeyi80jxK1EsrAL/7TiJ/ItYy y8xQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VFb07BYuoizdouHS3CQrvvHOqnj713fp32cxPJPvUQg=; b=G8LHrdHVlgkzI//m6Ykz0TQ/rPjfQxci7gxZMRU8nzSeTiRieZ7T2mhdwJsQyBxZ1H 8tyedDCRHgu0Vt6Pqy0WwiAuYwupfFmwpdNEBMYrE/4awsXQBcIao2ScE+tKnuJO08B8 6skC1lzoQpaCh2jnm6KYeOFvyDqQsjfq+4/JLn9bPzW3sKcEKKqLDl7aUoIcQgPYgOcn q+K4MKBlL/hvP/S7nCwpsnngrsVUsVLNA1alKm9Pwp13sUOFe/93ewGjE7p2M+6qV7av US3lXEP4MCfcvyNrVxOwLXUOx0ClsKQTA620Po15Ubvg/AQYhDl8Y9e2ER6DmvzUVBNC XJnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mxEiH+Qq; 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 e4si727286pgd.256.2019.02.13.16.18.52; Wed, 13 Feb 2019 16:19:07 -0800 (PST) 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=@kernel.org header.s=default header.b=mxEiH+Qq; 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 S2406452AbfBMSq1 (ORCPT + 99 others); Wed, 13 Feb 2019 13:46:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:44976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406438AbfBMSqX (ORCPT ); Wed, 13 Feb 2019 13:46:23 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7CBB8222D1; Wed, 13 Feb 2019 18:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083583; bh=aSPFxL8velRpwUa2xkj8tij54F45yWHTC3th/0IPJ3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxEiH+QqOgdT4aKqSoUHni6f8xD47A4kx+dW46AW14tnR1qlsTww7sfPLLbUDuJQI KTv35nk2F/roQUX4cBJkIlELCHHMecIhQOolXrLeUrAaoIGcCBjzuU+P0HQQOx+HmV 1yBHucYBV7IMeUtREZ7vMCeADLR1JnogrMMPUcKA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paulo Zanoni , Lucas De Marchi , Mika Kahola , Jani Nikula Subject: [PATCH 4.20 40/50] drm/i915: always return something on DDI clock selection Date: Wed, 13 Feb 2019 19:38:45 +0100 Message-Id: <20190213183658.845302330@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183655.747168774@linuxfoundation.org> References: <20190213183655.747168774@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lucas De Marchi commit 2a121030d4ee3f84f60c6f415f9c44bffbcde81d upstream. Even if we don't have the correct clock and get a warning, we should not skip the return. v2: improve commit message (from Joonas) Fixes: 1fa11ee2d9d0 ("drm/i915/icl: start adding the TBT pll") Cc: Paulo Zanoni Cc: # v4.19+ Signed-off-by: Lucas De Marchi Reviewed-by: Mika Kahola Link: https://patchwork.freedesktop.org/patch/msgid/20190125222444.19926-3-lucas.demarchi@intel.com (cherry picked from commit 7a61a6dec3dfb9f2e8c39a337580a3c3036c5cdf) Signed-off-by: Jani Nikula Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_ddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1085,7 +1085,7 @@ static uint32_t icl_pll_to_ddi_pll_sel(s return DDI_CLK_SEL_TBT_810; default: MISSING_CASE(clock); - break; + return DDI_CLK_SEL_NONE; } case DPLL_ID_ICL_MGPLL1: case DPLL_ID_ICL_MGPLL2: