From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BD76185920; Thu, 17 Apr 2025 18:49:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915743; cv=none; b=dOc4bZgqe0RXIgN2pKLGIQfU8x1aWrJDqcQojCbSauAhZiCUraaXpF+cjL33vkf6rWWMD0oQIpt6U0JczAlYLSfsqFWYeRZEV14girh2dE9nJt8k7qAHTcGiy+PI1jcponnTEK5eUWvc3XcUJd8VUJ3P2wublOKNipYHu3HtXn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915743; c=relaxed/simple; bh=KBU3VgxIGHfK5R7YmFft1G1brrsZIjsWZ5p9qNEyBbU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ijuC9Gxsx96FoDlJXY1jiynLzuuaOhSKDo+XvWujVbtY4QYt4WNiVBlG6+m9ddg2XeA5EXLMJwtipHGT16cA2o+TPILGe6CiM2TPh1W5TRnIsPL/AIlgImxAyRvbraD8XcxW0mBbK/qppl5XewDpUUn85AfLAhp7xsWJXecFcGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wpYv/aq0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wpYv/aq0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95342C4CEE4; Thu, 17 Apr 2025 18:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744915742; bh=KBU3VgxIGHfK5R7YmFft1G1brrsZIjsWZ5p9qNEyBbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wpYv/aq0kHZbCOe+Vl65C70QX+f/nlxHWTl1T/qLJ+e7d2s7b8tOrZw34yoEJjXNX ahQiAILqlw8DdteTJ+XWcPSFuV8pN9Y+hgmV2qTbXkv/hPaFIAE/eEUghvZvdyDmco tPeFihvkIPJkp4KyeLDuFwHvi7J5X8xuEFvdJLCI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Hidenori Kobayashi , Bingbu Cao , Sakari Ailus , Hans Verkuil Subject: [PATCH 6.12 195/393] media: intel/ipu6: set the dev_parent of video device to pdev Date: Thu, 17 Apr 2025 19:50:04 +0200 Message-ID: <20250417175115.431606004@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175107.546547190@linuxfoundation.org> References: <20250417175107.546547190@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bingbu Cao commit 6f0ab5d3671f7cbb326c8cab6fb69cb7ab9901cc upstream. The bus_info in v4l2_capability of IPU6 isys v4l2_dev is missing. The driver didn't set the dev_parent of v4l2_dev, its parent is set to its parent auxdev which is neither platform nor PCI device, thus media_set_bus_info() will not set the bus_info of v4l2_capability, then `v4l2-ctl --all` cannot show the bus_info. This patch fixes it by setting the dev_parent of video_device and v4l2 framework can detect the device type and set the bus_info instead. Fixes: 3c1dfb5a69cf ("media: intel/ipu6: input system video nodes and buffer queues") Cc: stable@vger.kernel.org Signed-off-by: Hidenori Kobayashi Signed-off-by: Bingbu Cao Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/pci/intel/ipu6/ipu6-isys-video.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/media/pci/intel/ipu6/ipu6-isys-video.c +++ b/drivers/media/pci/intel/ipu6/ipu6-isys-video.c @@ -1296,6 +1296,7 @@ int ipu6_isys_video_init(struct ipu6_isy av->vdev.release = video_device_release_empty; av->vdev.fops = &isys_fops; av->vdev.v4l2_dev = &av->isys->v4l2_dev; + av->vdev.dev_parent = &av->isys->adev->isp->pdev->dev; if (!av->vdev.ioctl_ops) av->vdev.ioctl_ops = &ipu6_v4l2_ioctl_ops; av->vdev.queue = &av->aq.vbq;