From patchwork Wed May 24 13:29:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 685545 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEC59C77B7A for ; Wed, 24 May 2023 13:30:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232726AbjEXNaE (ORCPT ); Wed, 24 May 2023 09:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232374AbjEXN3o (ORCPT ); Wed, 24 May 2023 09:29:44 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3B8A9 for ; Wed, 24 May 2023 06:29:38 -0700 (PDT) Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1q1oYU-0007Bo-5v; Wed, 24 May 2023 15:29:30 +0200 From: Philipp Zabel Subject: [PATCH 0/2] media: video-mux: fix error paths and update to active state Date: Wed, 24 May 2023 15:29:24 +0200 Message-Id: <20230524-video-mux-active-state-v1-0-325c69937ac3@pengutronix.de> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADQRbmQC/x2N0QrCMAwAf2Xk2UBtpzh/RXxIu+gCs5OmK4Oxf zf4eAfH7aBchBXu3Q6Fm6gs2eB86iBNlN+MMhqDdz64i++xycgLftYNKVVpjFqpMrrheot9cIFp AIsjKWMslNNkeV7n2eS38Eu2/+3xPI4fO2r7W30AAAA= To: Mauro Carvalho Chehab Cc: Sakari Ailus , Laurent Pinchart , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Philipp Zabel X-Mailer: b4 0.12-dev-aab37 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::54 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-media@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fix V4L2 async notifier and media entity cleanup and replace the open coded pad format array with subdev active state to reduce some boiler plate. Tested on v6.4-rc3 on i.MX6QP with the async-multi patches [1]. [1] https://lore.kernel.org/all/20230524112349.2141396-1-sakari.ailus@linux.intel.com/ To: Mauro Carvalho Chehab Cc: Sakari Ailus Cc: Laurent Pinchart Cc: linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: kernel@pengutronix.de Signed-off-by: Philipp Zabel Reviewed-by: Laurent Pinchart --- Philipp Zabel (2): media: video-mux: fix error paths media: video-mux: update driver to active state drivers/media/platform/video-mux.c | 104 +++++++++++++++---------------------- 1 file changed, 43 insertions(+), 61 deletions(-) --- base-commit: a23a3041c733e068bed5ece88acb45fe0edf0413 change-id: 20230524-video-mux-active-state-0968b4303ea9 Best regards,