Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2442023imm; Mon, 28 May 2018 08:09:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdkcUN+XnkdNPHu/gX6Zf1k8lV/Fq5RUk9dfl9srgSmGg9Xx25cSpN571s7vNSYX7ydqFP X-Received: by 2002:a62:ce4e:: with SMTP id y75-v6mr13630179pfg.175.1527520179746; Mon, 28 May 2018 08:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527520179; cv=none; d=google.com; s=arc-20160816; b=PgWlsi5P1aSgL9/Hj4ZXLaUeO2M5a4qt00w12UGWscrgFvXjhtess3oDEwLNTY7zjn rLiQeKWJlLUEXeM2VJEUOML2CBY/HkTEKGhPWYesjfeVDYkAWVVyjAY/KRuu41UJ5CT3 BFoHoHMqZYV8dxJ+Z2g1hCwo50cWPgzg18NSy0OwcP99yrRVj7i4GnDzR1gcuxMlOd9U WbO+rkKew9J1WManickKArazzvO/dQdqjLB45jMCRBBDr2gX3069H2xeUGEsi9SPhFJs Ium2dyI5G5HTClt1ydsiFFFH+DKNWcSLAFF7UgfB5yjPSn/BvCfZ81+xK5koTKYvK28z gHdg== 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=tc/WC2sERpGbaTOLpYbGddnh9fCfw4L02gHOq4jvmZM=; b=arcvtLvqJfcQW39Jn502H3Wo68WhswxB2QR6XnsPlmrtJDf4RVUElh5yjzs6Krj0Z0 yMpk6/oVaHkOwwVZkMXgfnvmW1al+PyP9Y3V2/g2KOQ0WuvND9HkT3x2WCUwhvs1BZRh n5n+uQg4G6vG8rOR2tLjMTmsxUzhb0gK8p3Bo3sFRHfPqC1M6Lhe+2x0jN54SdrL37cn X1CYNG/BtxLxUWwU+8EMfiy/m1ps+7aHWDQDPsbk7YlChGBieBiGf9yoks73I9giksas L+qcGHMJMyf068cddGe1aWu1nvJlE/BlLTkMHHr6xHmI6dNMUpX4WvhWbTb7VdJNAAfn 0YnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HIopnveB; 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 e187-v6si24353136pgc.127.2018.05.28.08.09.24; Mon, 28 May 2018 08:09:39 -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=HIopnveB; 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 S1033833AbeE1KYc (ORCPT + 99 others); Mon, 28 May 2018 06:24:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:43602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033792AbeE1KYS (ORCPT ); Mon, 28 May 2018 06:24:18 -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 6CAF720883; Mon, 28 May 2018 10:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527503057; bh=oEbUKYNfVvege6OMCeJZOQHHTyBTlzb27jWGOX16y60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HIopnveBAMO4T4bN1BKRASFDbZjY9G4IFPMPFe9YQHKeO+4lTaBUOG/pCvbDJOKlM dzrpkWU2wtPrf4w0FffAE2J2OBbefmL63UUeEwYtPQFqpG5xxqfe3SG/K5qyhsA5gK Skr8p3lgXzUaeFIKSaKFk5GiGdiBU310+oMF54J0= 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.4 228/268] media: cx23885: Override 888 ImpactVCBe crystal frequency Date: Mon, 28 May 2018 12:03:22 +0200 Message-Id: <20180528100228.897294331@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100202.045206534@linuxfoundation.org> References: <20180528100202.045206534@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.4-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 @@ -872,6 +872,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);