From patchwork Thu Mar 26 15:21:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210427 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16E68C2D0E8 for ; Thu, 26 Mar 2020 15:21:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E272C20775 for ; Thu, 26 Mar 2020 15:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585236096; bh=IrNjZ3rpXCLq0ROmJORSHoP5KphKizMWinfQJm/QS74=; h=From:To:Cc:Subject:Date:List-ID:From; b=qxA8AquU9uTpkTR/VSQP+ZidVUjY5eALWUB4IqV9CFls/+uPndngIaKB20ale8NNf SShz0Huhs7YCO6I2dCalx5oFDZIaK0DXMHo9ENww0t2kcbXlnkoLEDtahdZCXK2W4I /2xMcxb+q7fCaZTmmRmYezHE0X/MKcpBqetNyW/g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbgCZPVg (ORCPT ); Thu, 26 Mar 2020 11:21:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbgCZPVg (ORCPT ); Thu, 26 Mar 2020 11:21:36 -0400 Received: from mail.kernel.org (ip5f5ad4d8.dynamic.kabel-deutschland.de [95.90.212.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 696AE2073E; Thu, 26 Mar 2020 15:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585236095; bh=IrNjZ3rpXCLq0ROmJORSHoP5KphKizMWinfQJm/QS74=; h=From:To:Cc:Subject:Date:From; b=TsSIrKgUvl6/Im0yJnwtI4fCtipN2ZVFHVOx3XkozrGfmUb9RYzZw6UG34hL/bT/u InVz3yx+C5ewSa2xKjm5A6yvcOr2iOruA9Byey6fhWgaUcfOR0Ac5JRyoU2AK2BrsW lRPeCScCOG95BVrxP21qaqMJTBuNM4v1B1S24QDI= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jHUK5-003dib-K9; Thu, 26 Mar 2020 16:21:33 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Maxime Ripard , Helen Koike , Ezequiel Garcia , Chen-Yu Tsai , Greg Kroah-Hartman , Laurent Pinchart , Sakari Ailus , linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH 0/7] media Kconfig reorg - part 3 Date: Thu, 26 Mar 2020 16:21:25 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org That's a third part of the patch series with improve the media Kconfig settings. The entire series is at: https://git.linuxtv.org/mchehab/experimental.git/log/?h=media-kconfig patch 1 addresses a report from Helen that an user might not notice that drivers are filtered. So, it adds an explicit message warning about that; patch 2 marks PCI skeleton and dvb-dummy-fe as test drivers too; patch 3-5 duplicates the dvb_dummy_fe driver into the ddbridge driver. The ddbridge driver is unique: it has a PCI bridge with some slots for frontends. When the slot is empty, it uses the dummy frontend. As we'll be soon changing the dummy frontend to make it a virtual driver, and no other real driver requires a dummy FE, place a simplified copy of it at the ddbridge directory; patch 6 fix several problems related to media test devices. Before such patch, one would need to build a real driver in order to select the needed cores for the test ones. patch 7 adds some missing SPDX headers at the media build system. Mauro Carvalho Chehab (7): media: Kconfig: warn if drivers are filtered media: Kconfig: mark other drivers as test drivers media: ddbridge: copy the dvb_dummy_fe driver to ddbridge media: ddbridge-dummy_fe: do some vars and function renames media: ddbridge: use the ddbridge's own dummy fe driver media: Kconfig: fix selection for test drivers media: add SPDX headers on Kconfig and Makefile files drivers/media/Kconfig | 7 +- drivers/media/dvb-frontends/Kconfig | 15 +- drivers/media/mc/Kconfig | 2 + drivers/media/pci/Kconfig | 9 +- drivers/media/pci/ddbridge/Kconfig | 1 - drivers/media/pci/ddbridge/Makefile | 2 +- drivers/media/pci/ddbridge/ddbridge-core.c | 4 +- .../media/pci/ddbridge/ddbridge-dummy-fe.c | 153 ++++++++++++++++++ .../media/pci/ddbridge/ddbridge-dummy-fe.h | 16 ++ drivers/media/platform/sunxi/Kconfig | 2 + drivers/media/platform/sunxi/Makefile | 2 + .../media/platform/sunxi/sun4i-csi/Kconfig | 2 + .../media/platform/sunxi/sun4i-csi/Makefile | 2 + drivers/media/test_drivers/Kconfig | 2 +- drivers/staging/media/hantro/Makefile | 2 + drivers/staging/media/rkisp1/Makefile | 2 + 16 files changed, 210 insertions(+), 13 deletions(-) create mode 100644 drivers/media/pci/ddbridge/ddbridge-dummy-fe.c create mode 100644 drivers/media/pci/ddbridge/ddbridge-dummy-fe.h