Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1930722rbb; Tue, 27 Feb 2024 05:58:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV5WxGY4h1HURwsjVz7mjJ9gMQ8jtQa5BooG+v16Y34G6wicJO/n0DbngThqtnz8/qg3Dzm2v0apv0olxioI4zQbp0BZxQTiVNi1/zgaw== X-Google-Smtp-Source: AGHT+IGeDK6XdyEAd0slVTs0VGu1D4Cy2ue5wv3RomS1fL3XTccy4f7G+qd+Cf8aypjIBguGXki5 X-Received: by 2002:a9d:7dd6:0:b0:6e4:253f:c551 with SMTP id k22-20020a9d7dd6000000b006e4253fc551mr8979340otn.29.1709042290143; Tue, 27 Feb 2024 05:58:10 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n66-20020a632745000000b005dbde399b23si5478800pgn.901.2024.02.27.05.58.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 05:58:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=ZCWgK8nC; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-83313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3E59CB23F05 for ; Tue, 27 Feb 2024 13:27:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B7B013B78F; Tue, 27 Feb 2024 13:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZCWgK8nC" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 1C6DD13B2A9; Tue, 27 Feb 2024 13:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709040423; cv=none; b=nUXwBj177d0xgRsKpbVpdKgzNtD8Vr9HWGfABGdUsxUt3hUc3GUZyKnkl5XaMcyNzPQtGGXAMuzVv/DjZbVUdjv/MGf0VJynEkARmmid+myLJ0VaAnF/02RN1Cn9zIQiRPZtGy3YNun+zXjp6j8HZq7P6+9C5LZXnILwMdCCRoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709040423; c=relaxed/simple; bh=yYxg/i0g4KAnPdT2UJlvna1xTvMCnP9hCbmuoj80UwA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BsrilDFPPDPT/FIAlz4+mXW03AjjOxYVjixp5pNpU11MdL6s4yT/GMAQV/iR9ogrVc6buwFBQ7QAEGRn/IU9Ev+/yaRpfSyTi15jnwrhA2dTi1wnriKW34B3Pf+9jkM/xUaXcEx/Px97WXuH6kWAAfEcdakZ9/EwZc93kuFkg+4= 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=ZCWgK8nC; arc=none smtp.client-ip=198.175.65.16 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=1709040423; x=1740576423; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=yYxg/i0g4KAnPdT2UJlvna1xTvMCnP9hCbmuoj80UwA=; b=ZCWgK8nCXuePHi0NFc8UXT0onrfVWoLJVUvzBcJJsq0kxU1M9OvnFo00 ze4RFePYxBQYpZpJVTyrKcFPo0jtVoV/+TjlPLTIPZjJMRheNVub0SoQh ztGtcquomAWDd5fPZFdiKDLLbX468dFRQppF49xQe/evG8Pf2pyvxn9ty VdSh0DhWfLLBpP3LamMDwct23kNQ74WNqwIQwJp0NnkxCD41LkL7NfkwO vXobss1lM7V9qTSonQIASt79RKAeaPqOv0Yk73US+AtXJea0ZzNJ4PtDV JN/jldqNAPIbSdPq9UeJNF77HUxkRmQzfQDrUPk48kQ1weSplK1mjTkk4 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3507308" X-IronPort-AV: E=Sophos;i="6.06,187,1705392000"; d="scan'208";a="3507308" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 05:27:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,187,1705392000"; d="scan'208";a="38075100" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 05:26:55 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 031C511F855; Tue, 27 Feb 2024 15:26:52 +0200 (EET) Date: Tue, 27 Feb 2024 13:26:51 +0000 From: Sakari Ailus To: Andy Shevchenko Cc: Zhi Mao , mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, laurent.pinchart@ideasonboard.com, shengnan.wang@mediatek.com, yaya.chang@mediatek.com, 10572168@qq.com, Project_Global_Chrome_Upstream_Group@mediatek.com, yunkec@chromium.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, jacopo.mondi@ideasonboard.com, hverkuil-cisco@xs4all.nl, heiko@sntech.de, jernej.skrabec@gmail.com, macromorgan@hotmail.com, linus.walleij@linaro.org, hdegoede@redhat.com, tomi.valkeinen@ideasonboard.com, gerald.loacker@wolfvision.net, bingbu.cao@intel.com, dan.scally@ideasonboard.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v6 2/2] media: i2c: Add GC08A3 image sensor driver Message-ID: References: <20240227013221.21512-1-zhi.mao@mediatek.com> <20240227013221.21512-3-zhi.mao@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: Hi Andy, On Tue, Feb 27, 2024 at 02:46:54PM +0200, Andy Shevchenko wrote: > On Tue, Feb 27, 2024 at 3:33 AM Zhi Mao wrote: > > > > Add a V4L2 sub-device driver for Galaxycore GC08A3 image sensor. > > ... > > > +/* > > + * gc08a3.c - gc08a3 sensor driver > > Drop the filename from the file, it's impractical (esp. if the file > will be renamed for some reason in the future). > > > + * > > + * Copyright 2023 MediaTek You could update the year. .. > > > + endpoint = > > + fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), 0, 0, > > + FWNODE_GRAPH_ENDPOINT_NEXT); > > + if (!endpoint) { > > Strictly speaking dev_fwnode(dev) might be NULL or an error pointer. I > dunno how the graph is implemented there and if it's possible to get > an error pointer out of it. At least this probably needs to be aligned > there at some point. This is fine---the fwnode API returns errors (for functions that can) for NULL or error pointer fwnodes. The patches are in my tree already, please post a patch on top of this that I can squash. -- Regards, Sakari Ailus