From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFBC039B970; Tue, 14 Jul 2026 12:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784031087; cv=none; b=GyvRRZNGxjZGZfVfWT2tgYM33M/5aGEbiaurkxj/7Y791j6DNoY1h20a/fS1bIue0RkWTM2olnUMxBhkjb2caTaEGGYgUcPSEaZNeJ4+/5yQKfcpoO0MmAJsNSE9+TQ3WBOHcK51RPojJ5+fR5ux4WMh+FDbQ7jXbOD54Rwnjuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784031087; c=relaxed/simple; bh=O2QnN5ChhXWQNmFMBh+60tj96GJXERFa3E048iXmwiQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=MYR+UQO1XogvWMR/NYDhXsOMXzad8ihfhvbM4T8WGAgiC5KVTVuqGDNXMDS1jLJ0KTG4kZv4GMZfFuWIQiGl31tFcx7M/9CS0PrAqQ2biTivIEkUv5zulJmK54Zo6Qr0JM2zZWqG/fFgJ+OZHzUJ35mRTAkAMiVZ3Pm2aZaiYX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com; spf=pass smtp.mailfrom=perches.com; arc=none smtp.client-ip=216.40.44.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=perches.com Received: from omf10.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4334316039E; Tue, 14 Jul 2026 12:11:20 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA id 1CB963D; Tue, 14 Jul 2026 12:11:18 +0000 (UTC) Message-ID: <3e7b6acec459836275940908320db45a84f170b7.camel@perches.com> Subject: Re: [PATCH 1/1] checkpatch: Deprecate V4L2 pipeline power management code From: Joe Perches To: Sakari Ailus Cc: linux-kernel@vger.kernel.org, Andy Whitcroft , linux-media@vger.kernel.org, laurent.pinchart@ideasonboard.com, hans@jjverkuil.nl Date: Tue, 14 Jul 2026 05:11:17 -0700 In-Reply-To: References: <20260713161327.3682-1-sakari.ailus@linux.intel.com> <54ae65ff1286e2192b5a6575277e347469d4c44b.camel@perches.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: 1CB963D X-Stat-Signature: g6d9wmjfcakgrxcy9jrd17wcpx1pujzk X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/k9+EGrc2nnpm3fBgaBtFgVYRvyQXBofQ= X-HE-Tag: 1784031078-325384 X-HE-Meta: U2FsdGVkX18AhRnt8AiOuD3FW2hohlPAieRsTpz0FXVWmakKirpHg0JHeLAfKiqDrwC4IYHeqSeQXLBTEiQsfgzItZt6MnHbEPKw7al79LaNPmvnnYmvflQ1nMHVUuV1v37CVYmx3V64IaO5XgFoLM1JVrDK30OH6DScP66Z1gd49DfL2MWZ5BuLNWGpyc/lQurwsEDzcRSCoqCWlvZYh/4czqacWCgrfg1XMuhIVooBLO+JvnaETUNeXvaxYAkl38YDm3hWW6uh1B++QGmuO4qyEED/Hg6/BHymbyDYzcRTLBqP0zKbqTlFrLfpL6jE On Tue, 2026-07-14 at 14:14 +0300, Sakari Ailus wrote: > > Given this patch, checkpatch's message would be something like > >=20 > "Deprecated use of 'v4l2_pipeline_pm_get', prefer '' instead" >=20 > That's even technically correct: these functions serve no useful purpose > anymore, all new drivers effectively use Runtime PM anyway. OK, but given that there are only 32 uses in 16 files in all of -next, why not just fix the uses then delete the functions? $ git grep -P -w 'v4l2_pipeline_(?:link_notify|pm_get|pm_put)' | \ grep -vP '^(?:include|drivers/media/v4l2-core)' | \ wc -l 32 $ git grep -P -w -l 'v4l2_pipeline_(?:link_notify|pm_get|pm_put)' | \ grep -vP '^(?:include|drivers/media/v4l2-core)' | \ wc -l 16 > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > > [] > > > @@ -879,6 +879,9 @@ our %deprecated_apis =3D ( > > > "DEFINE_IDR" =3D> "DEFINE_XARRAY", > > > "idr_init" =3D> "xa_init", > > > "idr_init_base" =3D> "xa_init_flags", > > > + "v4l2_pipeline_link_notify" =3D> "", > > > + "v4l2_pipeline_pm_get" =3D> "", > > > + "v4l2_pipeline_pm_put" =3D> "", > >=20 > > Add something like "v4l2 runtime power management API" instead > > At least point out what that is. >=20 > How about simply "Runtime PM"? Better than nothing IMO.