Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5764985rwd; Wed, 24 May 2023 06:33:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GzK74RNpXOqDK6/ahH6QcR2mL10P7UOFXlhTtNZWyX4QePrQofuomQ4sRqrhwPtgHvgCh X-Received: by 2002:a17:90a:6fc7:b0:252:7a08:8c with SMTP id e65-20020a17090a6fc700b002527a08008cmr14474200pjk.48.1684935221203; Wed, 24 May 2023 06:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684935221; cv=none; d=google.com; s=arc-20160816; b=tUG/GQUcq60gFP/H8PhQCjsdq4/SdiDZ5n133ZUPciPxNRXcUeSP+CoFzw1LisNroo OjCt14B4+a+KPF04nWExlve1Kw4KUd5ITVnzxik7vcdHd+XrguDds+kfKp/VX0CfxEml d+s4qYU0fVXzBhXsKlv4sBoXPE08QUaARz2lHpr4Ahc1RxH+u0FvSy6AWO1h5vnRylpn LVqAKDTnFTUN3RB01mx3bs1X/AxnoeIVuCPN9fIB+d41stB4rnP4ednEsgmHA093+YCh THa8nCEUkH5O9qhfQOxfa1xXSsQm36qEHfWMbkfHaRs23+c1ldm/+TISdue/HKSJtfBT qYfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=7Bg2PWeD+KUooALaLlW0cfHYYkLrXe72wJpRTQR0rPk=; b=YrvxiTR1EmVnRNVXVUFVDzxscyQhwjbtQMfPn9JaokswEfSFbWjGdKyDgbWvoVT8qp zeyKxOi3OFZN44gGrvJt2rss49VW7Bd8hloz0DTKz6DP5xaqtrNlMZB2o+G4ZJ/IqVkj O0Ba3eJUO/XWIXzQYNpDN4UkKafnfVprlrEqKuS8z3Op0XEBxdXblCqaU4Ati3yNrmQc bttJivHHWrHG8f6KiQG5HZ0WG44zGwrV7Tcx5Ko1TKMDtcIF4b7JSMA+ntf0QbOO3WHl 7msORYuInk+jRpRgIE0QwBodaUIvB6+MM0LwGliiriEk42SBZboqdkdghHLiivAMQnh+ l1eQ== ARC-Authentication-Results: i=1; mx.google.com; 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 19-20020a631553000000b0053070cb6da8si8582483pgv.99.2023.05.24.06.33.27; Wed, 24 May 2023 06:33:41 -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; 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 S232803AbjEXN3j (ORCPT + 99 others); Wed, 24 May 2023 09:29:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbjEXN3g (ORCPT ); Wed, 24 May 2023 09:29:36 -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 33D9DBF for ; Wed, 24 May 2023 06:29:32 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 --- 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, -- Philipp Zabel