Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3107133pxb; Tue, 13 Apr 2021 19:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3KATI8eYQn+GyizO0uoYJbqLe4n36czd6/DSx/1YZMVSpnaEV1oF9c+f4sdui3lPuE2d9 X-Received: by 2002:a17:907:6192:: with SMTP id mt18mr567794ejc.530.1618367014147; Tue, 13 Apr 2021 19:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618367014; cv=none; d=google.com; s=arc-20160816; b=cpCuPa1w04Hk87QU/F2Xlb8cgxGbw3te7PB/2wYNuL0rcKoCzvKT/O8QsH0WVxv02C 6H7rNZVsFf7ITd29n/nhQC7nPH68mJONikZ+LTyuCPEj9WMwAz5oj6CAsBDEaBk85+Uv XHd6AlncUtPE0s7JAxIaWhtSp40P74PqWNr6PkAocZjOQTGlJCgb5GMdRFNt7+9X4Dwd Abf2pC6TIA07HT4wxReXxwqncT1Za7QBpcBai3UI9n6b3H4YWEKz0HnLrxPDwvep1QVQ mUqN3RbiUU0hrnCNtpojO3RWz3BoNOjyt6ZmY5HH3JMDujUBBaKY2BwKzFRVbwOZIhq1 Zbdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=25TzYrmJny5OVMY1XtMANRYlZ7R83xwy0F0M0GvkIZY=; b=Flb68kbhAIJZnK0W4lZjZzaTK7R9pwz/cLGNspUeb9EBwMdkKrQ0oHRWi2sG7BLOvn Lqxkg+0r6PGrTJEDncJ0OZNcJGcUl7UiOGqVBg3wgaJyVUBEKBN0RVcvnivlF1+kPbZm GHWU1qhpz1TEaqW9W/0Cr2OOc2CrVLiRNqpJHt9PrU1j4r78zNBpoRNqf3BOyezN78xn kooP41QnLnG80KbPQmlKsshef5gm9ASEecnzqXXbzMRoY0eFNASLsiAZyv0xS4mwl7pV gURPfAPQaQVvnhCIVgG2CGq4GAGBRl/NC2MogUeSuzDgEvYf9LCsFtujfVmUl8KkCqsN zElA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck3si12311220edb.85.2021.04.13.19.23.11; Tue, 13 Apr 2021 19:23:34 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237043AbhDMQRO (ORCPT + 99 others); Tue, 13 Apr 2021 12:17:14 -0400 Received: from mga17.intel.com ([192.55.52.151]:50326 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbhDMQRN (ORCPT ); Tue, 13 Apr 2021 12:17:13 -0400 IronPort-SDR: r8m9em0NkVXxo5RcGBdGd0vmeSau9gh7sEjDnI38b383ogy3m6imq0MsExrACLyuRMvhNWi2fm AE9IsXnJAM/A== X-IronPort-AV: E=McAfee;i="6200,9189,9953"; a="174547165" X-IronPort-AV: E=Sophos;i="5.82,219,1613462400"; d="scan'208";a="174547165" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 09:10:33 -0700 IronPort-SDR: ru4crNMreHoXQpsxGuzZMkdEosvf9+r3cFUPGuvreADT9tP6nftbq1raPDbxxsb2etlBCuEIfz E+6gqYoUayfg== X-IronPort-AV: E=Sophos;i="5.82,219,1613462400"; d="scan'208";a="452019778" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 09:10:25 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lWLcM-003nnM-Az; Tue, 13 Apr 2021 19:10:22 +0300 Date: Tue, 13 Apr 2021 19:10:22 +0300 From: Andy Shevchenko To: Daniel Scally Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Yong Zhi , Sakari Ailus , Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab Subject: Re: [PATCH v1 1/1] media: ipu3-cio2: Fix referece counting when looping over ACPI devices Message-ID: References: <20210404181409.1451026-1-andy.shevchenko@gmail.com> <1ab48622-be85-f1d7-caa4-8b04a4727d5d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ab48622-be85-f1d7-caa4-8b04a4727d5d@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 05, 2021 at 09:37:28PM +0100, Daniel Scally wrote: > On 04/04/2021 19:14, Andy Shevchenko wrote: > > When we continue, due to device is disabled, loop we have to drop reference count. > > When we have an array full of devices we have to also drop the reference count. > > Note, in this case the cio2_bridge_unregister_sensors() is called by the caller. > > > > Fixes: 803abec64ef9 ("media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver") > > Cc: Daniel Scally > > Cc: Sakari Ailus > > Signed-off-by: Andy Shevchenko > > Ah; thanks for catching those, I'm annoyed to have missed the > acpi_dev_put() calls in particular > > Reviewed-by: Daniel Scally Sakari, Mauro, can this be applied as v5.12 material, please? -- With Best Regards, Andy Shevchenko