Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp39018pxb; Mon, 25 Apr 2022 05:24:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTeN567iShsqOZMMO7DoB++wGnvCveSzDjhjJjKpcXhKSv5s8EAAZallnU8P179xL0v+4I X-Received: by 2002:a17:902:e054:b0:15c:ed0d:f13f with SMTP id x20-20020a170902e05400b0015ced0df13fmr10286230plx.76.1650889457607; Mon, 25 Apr 2022 05:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650889457; cv=none; d=google.com; s=arc-20160816; b=GkI9l/7adhFm7J65WRiTK8sT63zAKAvHUhDYU0LMmgOJcIx0uYfksHu012epzKVli3 RjMlvlVqx7+MHEmjkBw2BjT3Plv5NIlzb7JbM7vQN0mWMJTrBQimlDx8lGtBxAUXxhNV O+ZdJnhT/lEupGIlGzQUiRlMoUV3fALSo9vbjBQo/YZcBPVYUFtYr4z2ZZj2nkSug5Wd b63ETNW6wbggHMDpB2zOPe1FLTyqQnrNhBK1m1OA62JPXFkuL7VjVL+tDbktnosLhMXr uDFcN1KmiUGTsdcRKpLJDMN8d0EEqwMU2YH14FBad2w7YgdfdsB1gJG1rXkdLXioU+on RRNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n5u6FKqG6dLw+IKOJfCZTykgQIbNrR59nH03FH7GL+I=; b=Wpyfg1bmlU5/GnQ+PADfO4kBZyiQAb6PeonLDGJr/Y5Mojpm+wJJ6/Xtv0Kxu0g9M/ zFujuVESFruqCS903SDrtxdkBJ0R2TRf9tBcu0VeQRftVMDkByqNvLbKP5Js//HrNVWd Zi6tBGhyHy9CMTGQ8iMPXB6fjpEKdnG7qPYfPyucztak2h+FlWOcWwZeqWxzDI5PSdPw D/r3rB4i/mepJ3SE32C3sCREJUtxO4Lg13wuBSIRH+xBggutcKp5rwokysLggqUZ+2aH N+5jx/cH0xdY0hyn+U7J9AL4xH+xiyj5xkABQk4JztxCNcct6gYt5g4PRNV7yG+nv19o nHLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jqk3EraT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj5-20020a056a02018500b003ab2603ce1asi3592029pgb.262.2022.04.25.05.23.57; Mon, 25 Apr 2022 05:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jqk3EraT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235749AbiDXQnm (ORCPT + 99 others); Sun, 24 Apr 2022 12:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235664AbiDXQnk (ORCPT ); Sun, 24 Apr 2022 12:43:40 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D42E008; Sun, 24 Apr 2022 09:40:39 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 43DC630B; Sun, 24 Apr 2022 18:40:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1650818437; bh=f67DrpMM3WqfmwBxGxHfSZkKGZr/pZm0y+ajUHoXOZ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jqk3EraTPIM1iGwsaGpmOnGv4XTKyalRg2PmRTMDr3pQ5fpDEixYEmxnsOrav825C Sg6wQS3oQm6Fp89FGS8elNIjnihXdfg+9jzgyVk8LQPGQ1mm5+jByTp5RsR7VbjBOg DKvfdXZP3XX9hwZWTyaykbqFz/vkNbT+Z4utlLuU= Date: Sun, 24 Apr 2022 19:40:37 +0300 From: Laurent Pinchart To: Dongliang Mu Cc: Mauro Carvalho Chehab , Tomi Valkeinen , Dongliang Mu , Hans Verkuil , Sakari Ailus , Lubomir Rintel , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: ov7670: remove ov7670_power_off from ov7670_remove Message-ID: References: <20220422085408.634616-1-dzm91@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220422085408.634616-1-dzm91@hust.edu.cn> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, TVD_SUBJ_WIPE_DEBT,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dongliang, Thank you for the patch. On Fri, Apr 22, 2022 at 04:54:05PM +0800, Dongliang Mu wrote: > From: Dongliang Mu > > In ov7670_probe, it always invokes ov7670_power_off() no matter > the execution is successful or failed. So we cannot invoke it > agiain in ov7670_remove(). > > Fix this by removing ov7670_power_off from ov7670_remove. > > Fixes: 030f9f682e66 ("media: ov7670: control clock along with power") ov7670_power_off() is a no-op if power is already off. What does this fix ? > Signed-off-by: Dongliang Mu > --- > drivers/media/i2c/ov7670.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c > index 196746423116..1be2c0e5bdc1 100644 > --- a/drivers/media/i2c/ov7670.c > +++ b/drivers/media/i2c/ov7670.c > @@ -2017,7 +2017,6 @@ static int ov7670_remove(struct i2c_client *client) > v4l2_async_unregister_subdev(sd); > v4l2_ctrl_handler_free(&info->hdl); > media_entity_cleanup(&info->sd.entity); > - ov7670_power_off(sd); > return 0; > } > -- Regards, Laurent Pinchart