Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:54295 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752507AbdJSQbg (ORCPT ); Thu, 19 Oct 2017 12:31:36 -0400 Received: by mail-pg0-f65.google.com with SMTP id l24so7612494pgu.11 for ; Thu, 19 Oct 2017 09:31:36 -0700 (PDT) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Lars-Peter Clausen , Mauro Carvalho Chehab , Ramesh Shanmugasundaram , Sakari Ailus Subject: [PATCH 0/4] media: don't clear V4L2_SUBDEV_FL_IS_I2C Date: Fri, 20 Oct 2017 01:31:19 +0900 Message-Id: <1508430683-8674-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-media-owner@vger.kernel.org List-ID: The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But some drivers overwrite subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all. This patch series fixes the problem for each driver. Side note: According to the comment in v4l2_device_unregister(), this is problematic only if the device is platform bus device. Device tree or ACPI based devices are not affected. Akinobu Mita (4): media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2C media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2C media: ov2640: don't clear V4L2_SUBDEV_FL_IS_I2C media: ov5640: don't clear V4L2_SUBDEV_FL_IS_I2C drivers/media/i2c/adv7180.c | 2 +- drivers/media/i2c/max2175.c | 2 +- drivers/media/i2c/ov2640.c | 2 +- drivers/media/i2c/ov5640.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) Cc: Lars-Peter Clausen Cc: Mauro Carvalho Chehab Cc: Ramesh Shanmugasundaram Cc: Sakari Ailus -- 2.7.4