Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp105578rdb; Thu, 25 Jan 2024 09:27:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqC0XP3Q9eCNQxWEbDUOyCwvqLkjUAXH88oF9TZ6zxhXDzoytkODatx/3aATCplS4TFeng X-Received: by 2002:a05:6a20:1447:b0:19a:2e13:667a with SMTP id a7-20020a056a20144700b0019a2e13667amr1612316pzi.5.1706203621872; Thu, 25 Jan 2024 09:27:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706203621; cv=pass; d=google.com; s=arc-20160816; b=chbmlFMgry8FxcncB7tsiBeOu6q+Eb7JSwWRhnt6yF0c4zwB2bQ/gJCRVgb/7Kbf2x bGqNdlvTeZxFKl2Je7NXRgbJyOgqFwpQVGi/jEstZUBR9iI2O3bFIgtmBYv9WxgEAha4 QvNSQ0b/XTmQi+YyVhGwju01tavXxAm2UvZz4TOc+NqF8Q0Oxj58aGbZw4XCGWUmiae+ +s3vc9eogcgyM4+Izq92PFVgwfVgNu4G2Oce5voWqWD1ojR5Ad45BBFsPv4NOFKsr08G aO+k8VLP3V9biq5D/wZ4Fe0pZBWu/jR6u1LKxYArsiOq1LdNlfww8dBQEDcn1v2v1vE0 WB6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8c4Bvxn/y0fOP851xoUieuCSU6aOCHy2vj2i1qN96zs=; fh=KMacXQKlxVQ2atX8oS8C+NWNol+ZAuV7vWs+ZVHNq6A=; b=QwBDduI7wsrE+3u6HanJNCqRgPziL1ZuPFqnMs/owSI29A1VdgM7z8S+s0DDpG91J3 dZpqKQZsmd9xTx9k9ECaUafUakxe+ag5cDgeLN69zNrD7JKazYDL9NrqY59WgB35paSE iBQ4CRo5R7faMsI7BMFATX6CIUynBms41iHnxEEXvkvpVh+AtHdG55R76SLkpa4chB7U +21pFIUmCWpM9pAp2u6YStitFwkeB6I7kaRMQvHRWEB47vIXjZk5w/b7ogJ5mUNx4Vyp fhxyysXSo+9MtL7IIzkVcyKbmZXjfuIqHfi1xDerc9K5KpDzZHlFwwVCyKiUig7T5I40 5XDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UGsjEBlW; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38870-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ay24-20020a056a00301800b006dd86b17ad1si3838525pfb.132.2024.01.25.09.27.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 09:27:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38870-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UGsjEBlW; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38870-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 38F30293C7A for ; Thu, 25 Jan 2024 16:11:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E3DB129A7B; Thu, 25 Jan 2024 16:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UGsjEBlW" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (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 DD30986143; Thu, 25 Jan 2024 16:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706199062; cv=none; b=vANzayhpyFTxyuGImUFE6TGnt64N6T6qMra2eHh53jfwW+jgSJ4Vgmh52rElOuR6UPV0h8ijvjzjjWEhhJgsVgNactvjIwrfmAiWX+WBr/V6PJs4Tg95s9Jqi0Hl59B5TNrQ3Ppk9HAK5HXl5gTy13fMWA/tXBnLhQhA0Kj8xIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706199062; c=relaxed/simple; bh=erA6r6+8c+fMm7TjsfyuG2K4tmIEaj6481Pqbo/gIRU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eg61iM8gqKsw+CTvF5lHoLHfXibH18Zr7aoS7WUeo6eDJfnqjdN0hIWfFD7tglBpje6P/sbWKzdWrRZAmhtXgbAbW/CHx8Xip8/2XgHr9d7ZQN9W5xGy2eI3PNj05rLgE2f7dubEROXozwV0mkKFJQ/cvEPgfCImWvmVnSRuXk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UGsjEBlW; arc=none smtp.client-ip=192.55.52.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706199061; x=1737735061; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=erA6r6+8c+fMm7TjsfyuG2K4tmIEaj6481Pqbo/gIRU=; b=UGsjEBlWD4hml9v1xNgHY6As2IYorXSB3+lIQR3W+kRa11R4pd1DJ5vf MipegmtzJOh3uIqxEF0o5vDms+Mfq9yr6ndFMtpBIuqRMuWfmRB5a4hbo kuarqa/3HqtLOlQqu9UBAsw2CGJwpaiP42IEumBt5ZDvdZBiUnjzj1AgY Hrnkp7l/f8rYABkRBeUJSfbU13kFSTtuCNwRsdQuwc6/BZ5A+9aN4dxKT qzGykkX2Mmp6REN9ErBTWgDtVT51GkLdgdgfhFipHL1bQNBxYo8L5O2z9 TV7gLxoyuUoMkNPy7wM+srX0bKPzNd7fk8ptabyMzAB56MEdGV/3cyJq/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="433358619" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="433358619" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 08:10:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="736372656" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="736372656" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 08:10:52 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 775ED11FAD4; Thu, 25 Jan 2024 18:01:16 +0200 (EET) Date: Thu, 25 Jan 2024 16:01:16 +0000 From: "sakari.ailus@linux.intel.com" To: Zhi Mao =?utf-8?B?KOavm+aZuik=?= Cc: "heiko@sntech.de" , "gerald.loacker@wolfvision.net" , "robh+dt@kernel.org" , "yunkec@chromium.org" , "linux-kernel@vger.kernel.org" , "dan.scally@ideasonboard.com" , "linux-media@vger.kernel.org" , Shengnan Wang =?utf-8?B?KOeOi+Wco+eUtyk=?= , "hdegoede@redhat.com" , "linus.walleij@linaro.org" , "andy.shevchenko@gmail.com" , Yaya Chang =?utf-8?B?KOW8tembhea4hSk=?= , "mchehab@kernel.org" , "jacopo.mondi@ideasonboard.com" , "jernej.skrabec@gmail.com" , "linux-mediatek@lists.infradead.org" , "bingbu.cao@intel.com" , Project_Global_Chrome_Upstream_Group , "conor+dt@kernel.org" , "10572168@qq.com" <10572168@qq.com>, "hverkuil-cisco@xs4all.nl" , "tomi.valkeinen@ideasonboard.com" , "krzysztof.kozlowski+dt@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "matthias.bgg@gmail.com" , "laurent.pinchart@ideasonboard.com" , "devicetree@vger.kernel.org" , "angelogioacchino.delregno@collabora.com" , "macromorgan@hotmail.com" Subject: Re: [PATCH v3 2/2] media: i2c: Add GC08A3 image sensor driver Message-ID: References: <20240109022715.30278-1-zhi.mao@mediatek.com> <20240109022715.30278-3-zhi.mao@mediatek.com> <42cf05ea80a2413aae588b762e67c3418b9514d4.camel@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <42cf05ea80a2413aae588b762e67c3418b9514d4.camel@mediatek.com> Hi Zhi, On Thu, Jan 25, 2024 at 02:24:52AM +0000, Zhi Mao (毛智) wrote: > Hi Sakari > > Thanks for your review code and comments. > > On Tue, 2024-01-09 at 10:18 +0000, Sakari Ailus wrote: > > > > External email : Please do not click links or open attachments until > > you have verified the sender or the content. > > Hi Zhi, > > > > Thanks for the update. > > > > On Tue, Jan 09, 2024 at 10:27:15AM +0800, Zhi Mao wrote: > > > Add a V4L2 sub-device driver for Galaxycore GC08A3 image sensor. > > > > > > Signed-off-by: Zhi Mao > > > --- > > > drivers/media/i2c/Kconfig | 10 + > > > drivers/media/i2c/Makefile | 1 + > > > drivers/media/i2c/gc08a3.c | 1467 > > ++++++++++++++++++++++++++++++++++++ > > > 3 files changed, 1478 insertions(+) > > > create mode 100644 drivers/media/i2c/gc08a3.c > > > > > > +for (i = 0; i < ARRAY_SIZE(link_freq_menu_items); i++) { > > > +for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { > > > +if (link_freq_menu_items[i] == > > > + bus_cfg.link_frequencies[j]) > > > +break; > > > +} > > > + > > > +if (j == bus_cfg.nr_of_link_frequencies) { > > > +dev_err(dev, > > > +"no link frequency %lld supported, please check DT", > > > +link_freq_menu_items[i]); > > > +ret = -EINVAL; > > > +goto done; > > > +} > > > +} > > > > Please use v4l2_link_freq_to_bitmap() available here > > > https://lore.kernel.org/linux-media/20240108151805.55584-2-sakari.ailus@linux.intel.com/T/#u> > > ;. > > We'll then merge both at the same time. > > > > After got the latest linux kernel code base(tag: next-20240124), there > seems to be not new API:v4l2_link_freq_to_bitmap() still. > > Would you please let me know, how about the status about this API? The patches are in my linuxtv.org tree's master branch now: https://git.linuxtv.org/sailus/media_tree.git/ -- Sakari Ailus