Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp152274pxb; Tue, 28 Sep 2021 18:00:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPYpRTZERXpTG4lku918kJ1dO/pzJ2ar4F7wZh52H0nrqPtsSTU6i3NZh1Q+p366dI0AG/ X-Received: by 2002:a17:906:6011:: with SMTP id o17mr9999778ejj.157.1632877229785; Tue, 28 Sep 2021 18:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632877229; cv=none; d=google.com; s=arc-20160816; b=iPDFOBxQXDKBB+ZKD1fJ/TZo2+a/l+52Kd5cI9fLcl32T4YNnQvaXarZz6Pubt+Z39 6FPSieulR9it1sznTFeRkdmSwII19GbMhRZ7+MFQXiGm44CZJFD4G7pgnsIcXFYWV1F8 kn1QP2nD9EqksENNHi8uz8o7OQKJrQvtn8jjB5PoMGwptQJbpoyop1XW1nDXZSMAOazY uvFO27DttGoVoQ5tPqIEK+0iK5ndmtTEHpHrIUfo4mozAIwzPKj7VewEqdA4zEA4R4gc tKj2sdgknkfJnQZ8TmvdZKGKSA/QsOQ5Ul1wIEW73zZ6Tjy0hMdtWjozeV5MM4cH5glM vh7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=2mxd01gCnZEsFp/hLLpns10xUmAI+MvkBhJ/F8+qv7g=; b=cMTvd/oUDxbiCOROCR4rAP8vH07iMylV0HDP3Yew3AeH0XqGknWmZlVsLtivlEMywk q8Grd9fzQ33BxuJW/Pk58YiQZyxmRwOKWHLAnumPnkckPaEoZ6CYuK16uWvn+1ZEiyED HZuWcmWSNdBV9inFLaVELaDZCMn4uP1uKSyofO9VbfQJ5AmqoHIZNPoZBtDD2/3llTv9 2DvzTvBiiKENOIARycIc8K4fRA6WLoG4BCupDua8LAY94syRlC35EgCN6+7ObN1tUdpy 0be+oquRDN+9soGLCfCvO/9qqotBajXlk2XWkzRio7l+ocSZNM0OG7g7oWLjISoT+JtN cHWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si1025739edj.124.2021.09.28.18.00.05; Tue, 28 Sep 2021 18:00:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243504AbhI2BAZ (ORCPT + 99 others); Tue, 28 Sep 2021 21:00:25 -0400 Received: from mga12.intel.com ([192.55.52.136]:20191 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242636AbhI2BAZ (ORCPT ); Tue, 28 Sep 2021 21:00:25 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="204322693" X-IronPort-AV: E=Sophos;i="5.85,330,1624345200"; d="scan'208";a="204322693" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 17:58:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,330,1624345200"; d="scan'208";a="519517143" Received: from ipu5-build.bj.intel.com (HELO [10.238.232.188]) ([10.238.232.188]) by fmsmga008.fm.intel.com with ESMTP; 28 Sep 2021 17:58:43 -0700 Subject: Re: [PATCH 4/7] media: ipu3-cio2: VIDIOC_QUERYCAP: Fix bus_info To: Ricardo Ribalda , Sakari Ailus , Mauro Carvalho Chehab , Yong Zhi , Bingbu Cao , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Chiranjeevi Rapolu References: <20210928211033.2415162-1-ribalda@chromium.org> <20210928211033.2415162-5-ribalda@chromium.org> From: Bingbu Cao Message-ID: <0afce6fa-068d-2b66-e394-d9398e99069b@linux.intel.com> Date: Wed, 29 Sep 2021 08:55:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210928211033.2415162-5-ribalda@chromium.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Besides the subject, Reviewed-by: Bingbu Cao On 9/29/21 5:10 AM, Ricardo Ribalda wrote: > bus_info field had a different value for the media entity and the video > device. > > Fixes v4l2-compliance: > > v4l2-compliance.cpp(637): media bus_info 'PCI:0000:00:05.0' differs from > V4L2 bus_info 'PCI:viewfinder' > > Signed-off-by: Ricardo Ribalda > --- > drivers/staging/media/ipu3/ipu3-v4l2.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c > index 66995c6f15808..2594ac4eb0763 100644 > --- a/drivers/staging/media/ipu3/ipu3-v4l2.c > +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c > @@ -592,11 +592,12 @@ static const struct imgu_fmt *find_format(struct v4l2_format *f, u32 type) > static int imgu_vidioc_querycap(struct file *file, void *fh, > struct v4l2_capability *cap) > { > - struct imgu_video_device *node = file_to_intel_imgu_node(file); > + struct imgu_device *imgu = video_drvdata(file); > > strscpy(cap->driver, IMGU_NAME, sizeof(cap->driver)); > strscpy(cap->card, IMGU_NAME, sizeof(cap->card)); > - snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", node->name); > + snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", > + pci_name(imgu->pci_dev)); > > return 0; > } > -- Best regards, Bingbu Cao