Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2705406pxj; Mon, 31 May 2021 08:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7yxOWkR6VOowRl/IqwgUs2AezOJXM5ZA89eMlRdPXn2voPPSP9+Bp4K5zsVsA/y+d1X+9 X-Received: by 2002:a92:b102:: with SMTP id t2mr17842082ilh.102.1622475686455; Mon, 31 May 2021 08:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475686; cv=none; d=google.com; s=arc-20160816; b=0FGV4qBr377/82RC7NBVs8gNJeRIq4YMWdDxpW4+NqPzMRWs1e0kBPG82Bzs8tuTRN zulFaO1kMF0L5f8uBNSbpok52Hhi6+R8cGhaiTbUB//dWWilS290bC5pG9wOVLYPj0pJ IG9WnXu+Iv5n7Sa7iL4bMPjqY4pZtnwqHyf7L/3WANrpFDivaMJv2zN0CquJ4KW9xHSR Hn9b/Uu+xNCL8axttYD1tA8+9hXr+RC8FMXao2I52dX+FSCF21sNSBaS59PiqwBWzwFT eNpUIzDkELXsBEX0OHXcq0EccUYIlqus+3nmPE5iwK5G6Gbj0Gy8GsrSdwMTd7kjFuIe vJ6A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6KpC6ebRDuGqA0tySWcTUqENZuNmjwEIIsNt0iAG604=; b=lKU+0r2FUSGolFKAGPcOcUmrtRJIDklBneMi87kmR8JNWpe2H0lilIDUadUqu8W/PC jZ7iy9PAOmXyTJQyLve/E6IcbiNr7P5CWD8gu+PGxtSgx5jXilFNf8erT8UTBNZsvW/v c0uv/GlUmrt7BuUcgzmxNbyAu5b7Hiy27vY/XMxt7mS3Whaj07lOI28ZTc7beXlAG4wG AT7rxL77gjmwgkuBaDZRszl5+UcTh2Ha+v5JvMLqAsPMpBL3zsW7hd3bQyXesHYEBrl0 wzWfsNU3Br+9sv2NnFEZFatnCZi1GhEAe/BTXccNzrTRCjy81SNmolftsGS5+zSFOBtM YoDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DsJ5QW1q; 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 m9si7010125ilg.125.2021.05.31.08.41.12; Mon, 31 May 2021 08:41:26 -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=DsJ5QW1q; 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 S233631AbhEaPmE (ORCPT + 99 others); Mon, 31 May 2021 11:42:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:48830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233656AbhEaOX1 (ORCPT ); Mon, 31 May 2021 10:23:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 82CCC619D4; Mon, 31 May 2021 13:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468750; bh=jLKy2fs+izQ6dpIvDbWD8/SxmqacVqGQoXpuCfbhMlc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DsJ5QW1qjLTvKfxSrNJyJ9UI6NcPRzbXGfp4QAHS1npOvgQSKgoTfQXcCu5u3T825 evvKeFjqhQI4ZiP9cezs0u3tG2CxK3O38L0hMm1HO6b8S2Q4wlytXqIlvB+qNhTNGo CFCBlNuVrVYoSSCCsoUOjccqcSZR2co+VkwLfTdg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Sean Young , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 113/177] Revert "media: dvb: Add check on sp8870_readreg" Date: Mon, 31 May 2021 15:14:30 +0200 Message-Id: <20210531130651.815328116@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 47e4ff06fa7f5ba4860543a2913bbd0c164640aa ] 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 Link: https://lore.kernel.org/r/20210503115736.2104747-59-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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.30.2