Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2667519pxj; Mon, 31 May 2021 07:49:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygcP9z7ZTMaY82fNMfXYDrb0P5G0KfKE7X7MJYgbLJIR2EBzbU0++ZIOQFZfYTBVDd0euT X-Received: by 2002:a6b:f30a:: with SMTP id m10mr7635512ioh.56.1622472573762; Mon, 31 May 2021 07:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472573; cv=none; d=google.com; s=arc-20160816; b=MzWrKPZasO9kJiTwo9o+UuU6GHWttbN9PGTk7e1iRIstNBqNA4k0oK07yRFEJY7Abc 6dk8W432Tf9jSrzF9bRN4ISISKw3AabojzlKMd3ZkrjaI0xedvghzQskwa+L7mkj7LwU hs7gm6LIgX7b2eT7vzgNSF+6T/9hESB3JNLh64D9uLvbr9JNg5l7r7zgx3Yoh0V5cByf jckkyA2b/9E97+SvLRaSZfB+juzwxqD+yn0SAgKOf/iyap/Xd6KPANJUZ/3hHjQCoJlp VnAIqlQzoPoE7zMyBOpt1wyMuZd1z08zDblV0RlVDbXzOGuMYOKFYcaWEUEWZ0PmEp0j rjnw== 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=GR8hHQLksJZ79Tyw1XnpmMOT6pn3hxbOwdQFi2QGM6Mu3a94AI7GI8PN/S1EGaGmf7 UyyflHdAEtK8dvB4FZpWdxuuWwqGO3JIwBzmPmR5fMfb5rBNV5+rniWqwceSIwr+TCOA JvFd6EtcQyLRXPTtN/wahJmH/RkIkUDrHY1i9MpjuOGE4kBvZieX4RzwcL+ClCE5OYhV MnH+BvI+5qATNwMSmHP2xqardJylCqCvC/GVpXChVKb4vDtwiM6c2LvnOHBr6GC9VK6T YUc6lakjA3hbUwz3Uv2vU5wV92B7STNdTClT0bH2eI1Q+Nezw4CoGXDX3AzHUzjgFfkw heeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oyLUmo68; 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 e1si14587862jap.46.2021.05.31.07.49.20; Mon, 31 May 2021 07:49:33 -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=oyLUmo68; 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 S232388AbhEaOuT (ORCPT + 99 others); Mon, 31 May 2021 10:50:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbhEaOBy (ORCPT ); Mon, 31 May 2021 10:01:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0EFE76144E; Mon, 31 May 2021 13:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468219; bh=yGMZrSeD5ldYQ8amepKy7fmPBbO/88Lgz8D1NmVxsVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oyLUmo68KQcWBxphMdxXFeS5kCbXzVQ0hqhxx6RYYl6+kiQgZrZkgNQGyF+ABQvox ABLTcvWdapz1MMLc6mfIpErGOg91gSs7o1ffF+9/zXibYBmCAviy/iNsm4bpQuDNmx nhojCKee4kopgkFXIHoDDrl1Rp/iiLDSOAFuSeXw= 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.10 162/252] Revert "media: gspca: mt9m111: Check write_bridge for timeout" Date: Mon, 31 May 2021 15:13:47 +0200 Message-Id: <20210531130703.523072148@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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