Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2434396imm; Tue, 4 Sep 2018 04:32:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbYRvHp/qiGXkC8JTwAnj87Q4XmnmGUTI0MMuaMR4Wt0b2zv1Hc5en3u0LWkIthsXM1uQL4 X-Received: by 2002:a63:e811:: with SMTP id s17-v6mr30779436pgh.176.1536060725052; Tue, 04 Sep 2018 04:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536060725; cv=none; d=google.com; s=arc-20160816; b=N8FLeaBMGec2vCv3IPqPc0BK32acdz2wyUv9ElJSHC/1gsgYs7zN4FhWCa/5EOtlcw WmbXRjpbzZVt3Rc8wiqIi55Sl4PevrhXqbGctBZHVfo8DFT+Vyh7xiwNT6V+BMQjUeov 4VkaRoywFZhVEARjP2F0NnJcKzSglnWFM1qfcjW/gol3cZ6R26vXTLkFSGcLgwkG3hjl 4/hc676x+FbnWUa1ezfW8RUJwQLLzmz5ulqQmAN/NJAhgrptH+ZkVkvwnzXOW4FLtkQs rIdj2KMYM7t4SMc5p0qaAiA6Q0wB8/6O4qMkWjyjvIga37grD3/08e+YKoWVIoDIcSlu bKpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vSCn6fiZzyTTaQUxUDlBKjxYgYBbsl94RTnRD9W7vnA=; b=PaJuHmeAehluTD1u9xo73ssMuyOUgSI2f9+h5d+r6mr7LDoLkYThuetePXazwiYkIN PHvbj1Arwe680tMKWNmXYCdS7TaBfFv0IYXOztSg4gdLZzE4hU3SPCbWFD2/fqN20dJW kc5iw6vG6HAjhZ9+ML/ZGWdhPYi5eJ5IZ1KPIjDvQiUSuhXB/kDpfAtqkDpf+caL+V3X /XDmSaB3Y5SzkP1msgYThNb5QYkPX9a65bxma2H9jLdUfOrIWsaKyINh03REGiUh7/Xd IXTpH8v2ECfMZrdW2ChVanAFZoVzAYsFnDN1Wvqg75DKjpTArBpqocMRnvCncsqOnzVI Qm8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15-v6si3677856pln.137.2018.09.04.04.31.50; Tue, 04 Sep 2018 04:32:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726961AbeIDPzO (ORCPT + 99 others); Tue, 4 Sep 2018 11:55:14 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44173 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbeIDPzN (ORCPT ); Tue, 4 Sep 2018 11:55:13 -0400 Received: by mail-wr1-f66.google.com with SMTP id v16-v6so3538269wro.11 for ; Tue, 04 Sep 2018 04:30:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vSCn6fiZzyTTaQUxUDlBKjxYgYBbsl94RTnRD9W7vnA=; b=jjHMSPKXZb1b2hokF9VwLxy6BLlapRPCmfbY9qDf5pd/gZ8Z35H++4rawxL0uVv6+b rlVmAZEfVKLyEKwzNvKxVoPtfsTAOGG6rL5hrGDu5shwkjBm159gqsF5Bxyg3zqQUoSo Mh5/ZkoKcKaJ/mQq7pjZfCJJwOA6ciy4tHSIKkTtoChvwu9euSJU4PV6P5L1OStVZMYX Jl09M0POj/HbHi9uDOufpch1ZwXsikdRkz0XVzbtHEanNrAV+3nP/brA5rGzV+4+aQUD tv9iM4HfPdTvg8q1+oHcaESGUqwbinQAm8yhdqG7lS4dMND1Om7G3et+bIaXpiZF3Xgw 7kRA== X-Gm-Message-State: APzg51A/lbgzjMUjpECbfxA/XBeZp4pH1XgHSL3jvjYxT7AgHWB/+tz8 Y3sy/Lg8JbVxVaDTQdoKs9f0rmewnEs= X-Received: by 2002:a5d:6841:: with SMTP id o1-v6mr22152860wrw.159.1536060629096; Tue, 04 Sep 2018 04:30:29 -0700 (PDT) Received: from minerva.redhat.com ([90.168.169.92]) by smtp.gmail.com with ESMTPSA id s13-v6sm22574155wrq.39.2018.09.04.04.30.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Sep 2018 04:30:28 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Tian Shu Qiu , Sakari Ailus , Javier Martinez Canillas , Mauro Carvalho Chehab , Jian Xu Zheng , Yong Zhi , Hans Verkuil , Bingbu Cao , linux-media@vger.kernel.org Subject: [PATCH 0/2] media: intel-ipu3: allow the media graph to be used even if a subdev fails Date: Tue, 4 Sep 2018 13:30:16 +0200 Message-Id: <20180904113018.14428-1-javierm@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series allows the ipu3-cio2 driver to properly expose a subset of the media graph even if some drivers for the pending subdevices fail to probe. Currently the driver exposes a non-functional graph since the pad links are created and the subdev dev nodes are registered in the v4l2 async .complete callback. Instead, these operations should be done in the .bound callback. Patch #1 just adds a v4l2_device_register_subdev_node() function to allow registering a single device node for a subdev of a v4l2 device. Patch #2 moves the logic of the ipu3-cio2 .complete callback to the .bound callback. The .complete callback is just removed since is empy after that. Best regards, Javier Javier Martinez Canillas (2): [media] v4l: allow to register dev nodes for individual v4l2 subdevs media: intel-ipu3: create pad links and register subdev nodes at bound time drivers/media/pci/intel/ipu3/ipu3-cio2.c | 66 ++++++----------- drivers/media/v4l2-core/v4l2-device.c | 90 ++++++++++++++---------- include/media/v4l2-device.h | 10 +++ 3 files changed, 85 insertions(+), 81 deletions(-) -- 2.17.1