Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2699280pxy; Mon, 3 May 2021 06:12:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFsbyZfOQX8zV0EwttQb5KjuiDi6szXVdhkvMBoaAwrwRzC9gvmUO/515qnv2HVY4SYeY3 X-Received: by 2002:a05:6402:84b:: with SMTP id b11mr19970794edz.289.1620047533659; Mon, 03 May 2021 06:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620047533; cv=none; d=google.com; s=arc-20160816; b=q0JpylbuXHN+W8wfOHGieA44/MliurZVbfoIrZUoa7H5QhLY1II8NOzWFgaEU6c/2a mtRe+CC38FtbwJfVH+QjPa7itRfHmzh2jHZVfiVALtnbihz8cw4KrE57DByTIcIRWXVM QwYPY/mbrdtaftcqPmzR73oL27zX7Txtz7gdqMgijAfyptRPgX/sdrTYXQkoanPOkKV8 gD/rDKUTbkT1iCZPlwamcs0wdOpQ7Tw/5LaJWrldGR7OeEBWCfy6mvdupdDnpOSLUkgn 9wUFRp+HtNR7cKjyQke9VpF4MOopFk7ETeARrAlY12JyYlw9PuL0uaYxeH8l7KU4WIpS 6mVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mJOnCTM/CqZi/Itts08OWRLLg4kk8K2NAm4NEQIRwV4=; b=Ekr+RMeN9UMedsSf4o1GqcRuIraYFlTyOZXbmZliH3Jca/W7Zfn0Z/6198I2y7zi/A SlfsJmeCFvZ6LxrZfoDtVv9jYTuLxpDJhcvA6BSrToJ9iQlrFkkcD3tXYNM7rvBiVEXE LCL8AL5tCJwQtRplcA+y9QCWqG8AnKX5XwshdnJ6JdoxLmnV2fvpOrdcFYNTSsJv1Rjp L52g6UItwmfsKQsAFEdgZ5b3rEtoaAgTFKJm99BlmWoscqbToOzxWBeok1wO9oM0jDj8 aZ6tGlgN67d0qJF+Of8ldIvNAVpBSb31uOOcMxssQ2IIHhrJLzoKu9gJqT1zowDOhdM0 hILQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Eu03Z4cC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si9474041edn.224.2021.05.03.06.11.49; Mon, 03 May 2021 06:12:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Eu03Z4cC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234089AbhECMCu (ORCPT + 99 others); Mon, 3 May 2021 08:02:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:35144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233811AbhECMBo (ORCPT ); Mon, 3 May 2021 08:01:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5568561221; Mon, 3 May 2021 12:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043251; bh=JbOaIM6E4dGipu+uz48iC53kCYUrGp64hVeZkibwI8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eu03Z4cC+BDGL3xmWLmURJfNq26MWgWs7VWxOk4EQtdoU+hkGzmCmVF2PZFSIlw2W Jo1ae9dln0LY/downLO+n1KoEeXLkp6djBWxS5xxttufTahEPoZSo0R01SeMqp5FLT eCFZF0b7c5lFLaojzKrxMJWva+Z08YUkMjmOfvuk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Sean Young , Mauro Carvalho Chehab Subject: [PATCH 58/69] Revert "media: dvb: Add check on sp8870_readreg" Date: Mon, 3 May 2021 13:57:25 +0200 Message-Id: <20210503115736.2104747-59-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 467a37fba93f2b4fe3ab597ff6a517b22b566882. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. This commit is not properly checking for an error at all, so if a read succeeds from this device, it will error out. Cc: Aditya Pakki Cc: Sean Young Cc: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/dvb-frontends/sp8870.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/sp8870.c b/drivers/media/dvb-frontends/sp8870.c index 655db8272268..ee893a2f2261 100644 --- a/drivers/media/dvb-frontends/sp8870.c +++ b/drivers/media/dvb-frontends/sp8870.c @@ -280,9 +280,7 @@ static int sp8870_set_frontend_parameters(struct dvb_frontend *fe) sp8870_writereg(state, 0xc05, reg0xc05); // read status reg in order to clear pending irqs - err = sp8870_readreg(state, 0x200); - if (err) - return err; + sp8870_readreg(state, 0x200); // system controller start sp8870_microcontroller_start(state); -- 2.31.1