From patchwork Fri Sep 9 13:39:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 12971799 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FDABECAAD3 for ; Fri, 9 Sep 2022 13:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hF/KtUyos5NisR1e7WCoZ8dekyif9fWquK0Ug7WUJx8=; b=ots0QrzErK+12F FEUU5Kmuz6wUDaAbJFLdOUk6w57btR2WB1tFPqNjzC/K+mZSznkZU9JXmhMoXqi/eN0xgVgxAK/N2 Fj03Az4EppnzRYVgJxboh41QEmVBKJ90ug3n6YcoUIXeWWbQ8Abt3ckphARCT/vJdxrHHxZH748f7 Y/Gtc0AJniB1n2eZ06TULL2uVC/DpOMHDBToJgjVkAAZayBreU+WI5Upaw4+/BuvyZd46nOXZjYaQ WrikdXSMUZRy/dUOTe+iJyTeEYt8gTarm58kbGpvm0Q8iMdWzMQICMi7pVkqobopL03j638ZjJy0E E18kOP+OXMlNPpQ1nRew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWeFS-00GNdt-PV; Fri, 09 Sep 2022 13:40:46 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWeFF-00GNVS-2x for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2022 13:40:35 +0000 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id F1FF31C0007; Fri, 9 Sep 2022 13:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1662730826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ymJxpyXPHP7SnAhvIF7gZ8BpVklD5DeS9VKlbiuGSqo=; b=aMUOBNCAEpF9nr+LoVLA74Tm2wRdWubL7OjHHSiyxjNF7A5DyJnc+Tw8Ry0qoodVDZTRGD Bn4rtApb/9sE30UV7S24NOsKqrDHZuLNvhqrNsbfIxeQt1y7REkrP02NNSADgM+DoGSYWu shA/LsPKsCqimA/DlAcdto195BwSyJB0Qb0e25G71nXurK+HWiCAiKeVNza3UX1HYxf93u PQ2wAu2+XsbTK2s361PNJ23W0dNbAknKuFwV7iY3a5I3jgLrmH7b9MOmBOj+2ejPM9aGJs L8C0UkQFZS5QPIHJrL4uPSQBNmtHWj/Nr0CgDq8vI/TuwaWPr/PKKECRYDynNw== From: Paul Kocialkowski To: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hans Verkuil , Maxime Ripard , Thomas Petazzoni , Laurent Pinchart Subject: [PATCH 0/4] media: sunxi: MIPI CSI-2 controllers link fixups Date: Fri, 9 Sep 2022 15:39:50 +0200 Message-Id: <20220909133954.97010-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220909_064033_322854_16B1BF01 X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix the MIPI CSI-2 drivers to correctly check enabled links and to register their subdev even without a sensor attached. This allows their parent driver to register in that situation and makes it possible to use a parallel sensor when both parallel and MIPI CSI-2 are fed to the same controller but no sensor is connected to the MIPI CSI-2 bridge. With this change, it becomes possible to always describe the links between the CSI and MIPI CSI-2 blocks in device-tree. This series is based atop Christophe JAILLET's fixes at: https://patchwork.kernel.org/project/linux-media/list/?series=670059 Paul Kocialkowski (4): media: sun6i-mipi-csi2: Require both pads to be connected for streaming media: sun8i-a83t-mipi-csi2: Require both pads to be connected for streaming media: sun6i-mipi-csi2: Register async subdev with no sensor attached media: sun8i-a83t-mipi-csi2: Register async subdev with no sensor attached .../sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c | 23 +++++++++++++------ .../sun8i_a83t_mipi_csi2.c | 23 +++++++++++++------ 2 files changed, 32 insertions(+), 14 deletions(-)