Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1973419imm; Thu, 24 May 2018 03:51:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYxhpUnxZ39i4Oa/2yZSj61guA5LHlHJRqtaOvPu2dv3Zyk7etq46UdiZAFjaRt4hG6tug X-Received: by 2002:a17:902:59c4:: with SMTP id d4-v6mr2734893plj.253.1527159089941; Thu, 24 May 2018 03:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159089; cv=none; d=google.com; s=arc-20160816; b=Zvsa3p3bbjz1XANnRoiKyLkjWTrU8VYwIys0Rl5F/HGzvDKm2YbZOoe6ENRxN32HW5 6lmLuDGHIsVwGjdc8rxOnyEM7qww958TcomhbAF/oegpO3GJ9bWdEecBrzEorxIbJVUZ lwjgPc9a/NLJOa9YVDGiwz3TC59AlvLZTwSHdI2SbIkKMeN/8fMhFXCgN7Wy+eNfi8xa gIVUVtIivCuSqQ5sw0FkHHFRIZo+1xWdy8xQXqOpByG2mGbeMgQ2kM9JcgvlS3VM9vJN SIgUDXVa5Dvpvzr8iom2PrHFKItM8Tf3ejxFBOTZ+Aie/6F1w5KYqH9CG3aJqYt8iaLE 2xIQ== 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=xqIeZeyTQBKwyOZiarEPI9X1+yj+lL+qqPh9OZ6XZuY=; b=0jKwRFQpdxBQhMsUYHgD/+OW55d78zw1hjcvcTRXYcjV+6HxSLsuxfNV009G0Zqylu r7VFu+y24l6VDiExKNps09J1Q+JbIFZJoWeVSlg19VHYDP1TDZzKD8XfebPjDBRAs/n/ 97tobSOUZMeJ7i6aoS5Jlbd36SbQ49g0FqcGTua2MsCkd1jo24RPs0TDp4noMcytFMGM BRA0SueCBKCBwl4g7TS2nfDIH6AnwRpnASy0mM0zuqicgsk/Wyb6wuUdURMUG3eOxNXT sy4zjtiEfkdYS3b4jshvIyHGHowCLoVoFlQ+fXEGxw40PFrWnWZId3xRcg86322Kfg7s rD2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x929Kved; 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 b3-v6si719057pls.119.2018.05.24.03.51.15; Thu, 24 May 2018 03:51:29 -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=x929Kved; 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 S1032561AbeEXKuO (ORCPT + 99 others); Thu, 24 May 2018 06:50:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:37380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030478AbeEXJ5d (ORCPT ); Thu, 24 May 2018 05:57:33 -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 84D8E2089C; Thu, 24 May 2018 09:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155852; bh=boHnS9RhbZduk19QlgmUHDtL/Tl4lss2co+yZqXt29I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x929KvedYKwgVo504A1sFeQUAODgYOpKf1NjqozdkAEp08orw7q7yDaNiTLmMy8FU nWZrL4adc67UVa3zCf1BJhiY73ZQP+mIVNVor+4qyhmt5k7bbhxxGPMC8AOQ/yEqlM E1DDcFRYP8gm+pn4gNFPsivjCq3vVScf4XJr5S80= 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.14 140/165] media: cx23885: Override 888 ImpactVCBe crystal frequency Date: Thu, 24 May 2018 11:39:06 +0200 Message-Id: <20180524093627.740175921@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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.14-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);