Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp803018lqo; Fri, 10 May 2024 16:04:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9TjDTZTD9wT8zEkyF8ngfm6oDPtY8jqj+YgxQTH+T+LzDb/FeK4mbLaULSVSmgFIY8vPLneg7g5uc6gHNUvTmnC/qRTbAlieKpwh7gQ== X-Google-Smtp-Source: AGHT+IFT9j4lsXR7726NX6X+zQe7/RZWtm+li5kCj4WkZuRoqK0157G/XulUvPBcznKq/+KgUEx8 X-Received: by 2002:a05:6a00:3cc7:b0:6f3:e6e0:d9fb with SMTP id d2e1a72fcca58-6f4e02c6a0emr4276732b3a.11.1715382273553; Fri, 10 May 2024 16:04:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715382273; cv=pass; d=google.com; s=arc-20160816; b=GzstXY61GBlnxt/uwx35Qo4qQeSqBLeNSgOC+uxEZ252tPObRwK5+1JoXzP3ioEpBz AAxagQWyEVFgTXkOuCi7hukDKkJCaGekLPwvJRInitq+W/WbCJk93WGUnHvBPWhejZw9 3PNldUOcRo6e6CjrANQhfxdJ/fp5INoN4YLi/lZQHztJd8LTWMoavRks0Qxq9tCFP6Zl w3EUpfd+1nLuljVD+3K4dytfGcYzZSv+M0DbEjFl7gKQQCCftF1PvEQH9wgrezqHTHEJ bHDvKfHDEVrhSsA9ADP/Vhw7cxwtKAg1ut9KQXguW6qJ9SB8j2SUry/RJlQq0wJjSO0e IloA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=mAy3Dn4ll0PXyI/uLRJNPlB7k2fxKvISYIj0Oz20zsI=; fh=3NmMVLbzhseB1h8x5bbWPKAHahpieGNaKJxxITNyxCs=; b=NchBnsML08n5pBZkH2HDcDcYOOxrE+SSc1magKEmbdqJRzY37Ac9R5Yh/umiojOsdv xwJWu9LgshFAEAhW9pWArbkVSyTOADrmp6XCcOG2MWqHNXjTXoTFA3wKLrzyDDUl+x1C enOGVDXmwFF1YpqdeRtMp4Nd4nf/Z5Eh7/DBdzncCQLwAPFdhcZol4/dYIyt1np4OidU N1nm/avHGuw1Tgpb607UWCXQpeqtaFgvELUzn3CawQULY0FViPixMPzGcxFl3OOhQmlh ZeKc5ICXpKOsAbpRPojC4uZy3atHUD+LQkBO8q814mQgS72uVCf+uLMQiD+DiXcx4KU8 ZMuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a3EJexqL; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-175984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175984-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aee5cdsi4951862b3a.206.2024.05.10.16.04.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 16:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a3EJexqL; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-175984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175984-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 D47EE28375F for ; Fri, 10 May 2024 15:55:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58CB0172BB1; Fri, 10 May 2024 15:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="a3EJexqL" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 DD32912C49A; Fri, 10 May 2024 15:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715356527; cv=none; b=E9XzjwaHQPpL2IYy2a/vL4GtVkojul3kyFOxSw/nbjJTeNHD9MxKf96jpzWlXI9Hzstg4vXTj+syJck0avliYUqvyyv00gJhU2pxPMgkMAlyBjH2k1TjHzCivOBvJTmvDYnvBm4ybwPBlXHwoo6jn7dcC404scLXaHL+RWemn5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715356527; c=relaxed/simple; bh=j+PEZx8467CAXDutqvKyg1G+wTPrUXhPSpI3yRUttds=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NI4+5FUgG5psGjQ4QWdi1KbMlB9/tLYBbBqlMASmjA8JvqUqq6EuUQkQePRqgNODwa3pth058ecyrNzV8w6raDAp/8K4kIGgarv+K+//x3boItegJy1mTP1r6lcJtLzA+TzFAYFWoocbb+hbrr36FAEmSSD+oIK0/yYUUpF5XYQ= 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=a3EJexqL; arc=none smtp.client-ip=192.198.163.12 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=1715356526; x=1746892526; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=j+PEZx8467CAXDutqvKyg1G+wTPrUXhPSpI3yRUttds=; b=a3EJexqLq9CD85OUp8dGYNvQUSFs7yaVCTv2JhFAhWRTcYLYj6PDSkh5 r9HRGGGLEzUOG3ytgk0aleoI05KBlqk7KJnTWz1O6Y9Wsp3LsB8wvCO0l zQFBwp7qgHewerXiBASSAraBKwMHzRRFh1v/xf+evOwuLFbzZXlguZMVY 62O6we5WqvCq9ndEgzAsXosCyCHYWXlg2hAQXYt+EWmmT7+qeW+DqZzFt O+t2MCUzhGrqXh/nbZZl/r7bSJTXINET+PLHU36yuAksOXQTH0kn97WGa C73fZkk9ttaKW52Ls//h2pPFgolHcuDyVDt9Brvxr3rsShSiOd3gCYUHv w==; X-CSE-ConnectionGUID: Ay0D0ftWT4Stikvob9tD9w== X-CSE-MsgGUID: O0V4t7U2TheHwv2J9t1w0w== X-IronPort-AV: E=McAfee;i="6600,9927,11068"; a="15156304" X-IronPort-AV: E=Sophos;i="6.08,151,1712646000"; d="scan'208";a="15156304" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2024 08:55:25 -0700 X-CSE-ConnectionGUID: whxk1HeLTWmDvmtnEXGwlQ== X-CSE-MsgGUID: eJFq66uXTs2bxZHOT4FK7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,151,1712646000"; d="scan'208";a="52869228" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2024 08:55:23 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s5Sae-000000069Ys-0KtG; Fri, 10 May 2024 18:55:20 +0300 Date: Fri, 10 May 2024 18:55:19 +0300 From: Andy Shevchenko To: Dan Carpenter Cc: Bingbu Cao , Mauro Carvalho Chehab , Sakari Ailus , Hans de Goede , Daniel Scally , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH v2] media: ipu-bridge: fix error code in ipu_bridge_init() Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, May 10, 2024 at 06:43:31PM +0300, Dan Carpenter wrote: > Return -EINVAL if "bridge->n_sensors == 0". Don't return success. LGTM, but I leave the main Q "Is it really the error case?" to the maintainers. I would imagine the use case where either from the following may happen: 1) the sensors are all new and not listed as supported; 2) there no sensors connected for real. In both cases I don't see this as a critical error that we can't enumerate the bridge itself. -- With Best Regards, Andy Shevchenko