Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1930871imm; Thu, 24 May 2018 03:07:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZofcS+yJDC1fMu7qT8mEulewGqbRcxNWQkWNGTuVKvpi3vAaR8klhGHf15K+i4Aq5ZG5x3t X-Received: by 2002:a17:902:7c03:: with SMTP id x3-v6mr6478493pll.237.1527156465452; Thu, 24 May 2018 03:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527156465; cv=none; d=google.com; s=arc-20160816; b=N8NufGNN2j1FjSlk1faMFvcIgsRRMAoZQDbOF+gSYZbFjdaDBErqzI58QHYPXvOts5 3hAEcK/Wx+OSn/8v830VGYSpQxktJ7ajwpO3oalFK3gtGnGop3ZEO0cE1XmiOi3qJR9n SoTrTmzS7vdOAbaMuxJLtgznlVUnSJ2ORll2SImvx4RtO+9snmPwonxqlY5Uf7hvLc0o jo0QIctQPGWB5LkUEcHA0vkS/VF7YgQ8OdSsb2PAb2WmL3yc7gW8WNGqc5LJFjILQTB0 KdTbuhXvtO/TIudQfS1eafzmSfSvOdOX6yyIfWarRw4tEAyCnUWd7hs5z6pvS+wzW2IA WAwA== 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:dkim-signature :arc-authentication-results; bh=2jMMzX80crl4ZHP+kSxthlVW34gMU/M0l1qiuJoHYbM=; b=zTq/nsKshEPDEOcNZX9K1Et+2x31GhtB9n5o3XsGzxd068pHU8Gwe/TIZwcaEjab7M F2uhV+X6SNc36Mk18z7Yqn/xsQ51QnS9/VRQHuu7gcWbXVIIyubOMbpO7gTQVZ7yxAK6 UrT6aANpsW5yojYlNVE2Koah5FW7qdSmzlaO262QScerl4pj5vELpaOx4P0V/VZ+cAuS 8CjkDhtzR4/51FKW0//3iJjY7uBtW+RIymgqxDQruucpxdDgnUuy+JxZLkNEXfePsZxm UhLn8lHFD2AWePe2sVg+HEcxzqVy8XHhSkFcvYvu+x5aBZLR5ekbpPx/ojtzJZgmg72n mLbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xDE+2h3E; 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 j11-v6si20244411plt.325.2018.05.24.03.07.25; Thu, 24 May 2018 03:07:45 -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; dkim=pass header.i=@kernel.org header.s=default header.b=xDE+2h3E; 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 S1031216AbeEXKFY (ORCPT + 99 others); Thu, 24 May 2018 06:05:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:54480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031541AbeEXKFQ (ORCPT ); Thu, 24 May 2018 06:05:16 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 9072D20893; Thu, 24 May 2018 10:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156316; bh=7Hi60k2OYBywCyKuG3LEPdQ7aejHW3sBeV8UeZg+wnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xDE+2h3EvKc8VCSSEf/3xGj3i84x1NhvQwHV4TzAZrggKgtnrH1IGvtQYGA/2RCOK cckcCNblUyqkE2ZbW588FB6CMTaveLXmA0oW/tipxVOdKCItgnid73LyR5Am65HhHQ KUpGBB8n7qwhM+PL23XYkBmKnrKsoREA8jO3BAps= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brad Love , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.16 135/161] media: cx23885: Override 888 ImpactVCBe crystal frequency Date: Thu, 24 May 2018 11:39:20 +0200 Message-Id: <20180524093034.551885957@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@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: Brad Love [ Upstream commit 779c79d4b833ec646b0aed878da38edb45bbe156 ] Hauppauge produced a revision of ImpactVCBe using an 888, with a 25MHz crystal, instead of using the default third overtone 50Mhz crystal. This overrides that frequency so that the cx25840 is properly configured. Without the proper crystal setup the cx25840 cannot load the firmware or decode video. Signed-off-by: Brad Love Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/pci/cx23885/cx23885-core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/drivers/media/pci/cx23885/cx23885-core.c +++ b/drivers/media/pci/cx23885/cx23885-core.c @@ -873,6 +873,16 @@ static int cx23885_dev_setup(struct cx23 if (cx23885_boards[dev->board].clk_freq > 0) dev->clk_freq = cx23885_boards[dev->board].clk_freq; + if (dev->board == CX23885_BOARD_HAUPPAUGE_IMPACTVCBE && + dev->pci->subsystem_device == 0x7137) { + /* Hauppauge ImpactVCBe device ID 0x7137 is populated + * with an 888, and a 25Mhz crystal, instead of the + * usual third overtone 50Mhz. The default clock rate must + * be overridden so the cx25840 is properly configured + */ + dev->clk_freq = 25000000; + } + dev->pci_bus = dev->pci->bus->number; dev->pci_slot = PCI_SLOT(dev->pci->devfn); cx23885_irq_add(dev, 0x001f00);