Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2705756pxj; Mon, 31 May 2021 08:41:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEeLkq3bGxb9HUjYhgCsKiDOm3k8Ml0buItSMtw8S+pF1EIUd5Y2b5G5ONDBOMWh9aiTq4 X-Received: by 2002:a02:354c:: with SMTP id y12mr21049524jae.144.1622475719560; Mon, 31 May 2021 08:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475719; cv=none; d=google.com; s=arc-20160816; b=RKLiPP/gKvK88Oh4huxauzaJZWAi5BgRUSXJSdyeUf/6KLGh4987sxSfgMRu19cMDl 5r2uXFsmNXZvC6f5wWnZO0r9v1gcSfGwWLkF1/MyBxQimROeHEOs53GZ/WcZmQ20XGkB noe9JBFzA3bNKMx9luyoAKXx+ppW9SUc22dKVc+Uyym6vn2Y4YGRMdTItRNf9/9oGc3l BiWbZK1S8yjq28nNoKobUvVgyT2ZpLZals5NPqgL3PIkaKkUqg/YBZK2SMqbHZhZ17LB AMEahIcl7p6Hz7Nb9/pMC0bl/7g4xXD1LZjQJQFpi7G8cp47K49zvh9dDY53r9PFSDyM f4ZQ== 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=nCp31YdfwfAoD9P7PvrfjC4wCZ6cirmqoq9CNyG6TWc=; b=TUfraCBJukqb/ic1HFTLMo38C/26GMGR4wQFxXtn4Ip0lZH05V4R+9EiCr0UBurnmj 1E2nx235weRkFXGgF+7BcwMPmqXqP9XnQRcH/TI1Vx85P0ogKhdLAyYd+ZVsOQtP0Cvb 1Pi5qCQZVEyXm9I+YiHt8gC/6OEFBop/n4Yie8IvNWuKBmSfLF+u0NtDc8aSUHggQyXf emBMSn6YArGp4ZPpnOvQd/78h8vYAgwcyyuuXLuKJZLvAR8kqdMybbYLy2bRYZv16l+0 ppJP9mrAN+YW9Q2VRVMU5AZq8n4kpWO4I2YoAvhWZhYStRqbtChFcnCh8kZJFNoLMUMX HlfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m4T+Q83U; 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 m2si16331379ilu.120.2021.05.31.08.41.46; Mon, 31 May 2021 08:41:59 -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=m4T+Q83U; 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 S232644AbhEaPmm (ORCPT + 99 others); Mon, 31 May 2021 11:42:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233675AbhEaOXd (ORCPT ); Mon, 31 May 2021 10:23:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5D1461A13; Mon, 31 May 2021 13:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468757; bh=yGMZrSeD5ldYQ8amepKy7fmPBbO/88Lgz8D1NmVxsVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m4T+Q83UKg2YWfUNebsY5lWGmmgC2R4n5qbInb8fJ1MDcE/gzLHPcE3kqYnnJbFF9 gVYovuH22ITlTcfP0r6gSKdlLZAYaj31agUWxAkgT3QYYpc3qXjWA9Dmc7VLWAxCjI RPHMSdxfO68X+ub39M5Fn83iS4J5mLi3eA/tqjRs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 115/177] Revert "media: gspca: mt9m111: Check write_bridge for timeout" Date: Mon, 31 May 2021 15:14:32 +0200 Message-Id: <20210531130651.886507528@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 d8c3be2fb2079d0cb4cd29d6aba58dbe54771e42 ] This reverts commit 656025850074f5c1ba2e05be37bda57ba2b8d491. 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. Different error values should never be "OR" together and expect anything sane to come out of the result. Cc: Aditya Pakki Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/20210503115736.2104747-61-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/media/usb/gspca/m5602/m5602_mt9m111.c b/drivers/media/usb/gspca/m5602/m5602_mt9m111.c index bfa3b381d8a2..50481dc928d0 100644 --- a/drivers/media/usb/gspca/m5602/m5602_mt9m111.c +++ b/drivers/media/usb/gspca/m5602/m5602_mt9m111.c @@ -195,7 +195,7 @@ static const struct v4l2_ctrl_config mt9m111_greenbal_cfg = { int mt9m111_probe(struct sd *sd) { u8 data[2] = {0x00, 0x00}; - int i, rc = 0; + int i; struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; if (force_sensor) { @@ -213,18 +213,16 @@ int mt9m111_probe(struct sd *sd) /* Do the preinit */ for (i = 0; i < ARRAY_SIZE(preinit_mt9m111); i++) { if (preinit_mt9m111[i][0] == BRIDGE) { - rc |= m5602_write_bridge(sd, + m5602_write_bridge(sd, preinit_mt9m111[i][1], preinit_mt9m111[i][2]); } else { data[0] = preinit_mt9m111[i][2]; data[1] = preinit_mt9m111[i][3]; - rc |= m5602_write_sensor(sd, + m5602_write_sensor(sd, preinit_mt9m111[i][1], data, 2); } } - if (rc < 0) - return rc; if (m5602_read_sensor(sd, MT9M111_SC_CHIPVER, data, 2)) return -ENODEV; -- 2.30.2