From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82D89C433F5 for ; Sat, 6 Nov 2021 12:05:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F2C960F9E for ; Sat, 6 Nov 2021 12:05:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234130AbhKFMIZ (ORCPT ); Sat, 6 Nov 2021 08:08:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:38632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234106AbhKFMIV (ORCPT ); Sat, 6 Nov 2021 08:08:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E16006124F; Sat, 6 Nov 2021 12:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636200340; bh=ExULPcPAQoZ6nf/Kka4K5xyWq9L9oGa+euKjhEgJoac=; h=From:To:Cc:Subject:Date:From; b=cB8G277AtlUgFWTh/DwPMKZ/RZDJontr2wA+KRVrc6eVljnKV4nAFnhs+Qz0rnSGJ xw72TmCL2Nj5ufau79Is1kiz+db53vLAWjqjHKnwW3dd8s1yvw1ekZHneXYKjewl8z IlBI+E0136TiI+YcdV9+pTlJEjPmO3cwtLX6W/mtSDyns6u3TKJVCZdO6Q82m/IN6j iN1034zEAXHuZ+HOCmkyy5ATZguTDoHzq4G520qasKaiXRgn5VIZxo+VVKDKljqNhW 0Jd0/YZeGgRc3hGtf+CbaycGKimnWm4hys4RCLP39b4o3U7pX8ljMRmD5tfD/H6KeD eEcp2XjhgyF4w== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mjKS2-0006ov-22; Sat, 06 Nov 2021 12:05:38 +0000 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Sakari Ailus , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 0/2] Address device enumeration and run_mode Date: Sat, 6 Nov 2021 12:05:35 +0000 Message-Id: X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the atomisp is starting to work with normal V4L2 apps (on USERPTR mode), change the code to: 1. start creating devices from the one that atually works with normal apps (the preview device, previously /dev/video2); 2. Set run_mode for all device types that need it. Please notice that patch 1 replaces a previously sent patch: https://lore.kernel.org/all/543e61dd07c90a7d8577b3a94696edc77953b9d8.1635497370.git.mchehab+huawei@kernel.org/ Mauro Carvalho Chehab (2): media: atomisp: set per-device's default mode media: atomisp: register first the preview devnode .../staging/media/atomisp/pci/atomisp_fops.c | 5 +++ .../media/atomisp/pci/atomisp_subdev.c | 31 ++++++++++++------- .../media/atomisp/pci/atomisp_subdev.h | 3 ++ .../staging/media/atomisp/pci/atomisp_v4l2.c | 4 ++- .../staging/media/atomisp/pci/atomisp_v4l2.h | 3 +- 5 files changed, 32 insertions(+), 14 deletions(-) -- 2.33.1