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 1DE3521D3DD; Mon, 23 Jun 2025 21:38:41 +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=1750714721; cv=none; b=N4g+OCgInZaVjEFpTuHbYEHMrgjGOI+6eliugcBfKJIpfTSWNzIy76es802R82LwCaBE+e+7aD13VeOUYdv0PpDVgTb7np1T6/8lyEkJw7oPNCNCv9dz72b7Kn3uULHRvnzLHeKWAQyh3m+U6qJ2a9YJu2cNtF63vrDwlUyA30w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750714721; c=relaxed/simple; bh=7wjfWorVJx6jX89wFBl72iu1TAeEBWDDiBzaO6h/1w4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KwzZ10DN+PiJTdso0Q59CktuCbJ3j23SGWgAHdrDQ5OvkMR1X0DHkka9oJqEFtElqAhBnA/ohxmB51uS5HdR6BrHWS5qh6Dr/jwStJmUHLInZTmTKpBb7ausWDDrrZNMZpbbdQ7twvYNBNdVvHwod82jQdsKqjMpxgZA3Sg3OJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cYgG+KmM; 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="cYgG+KmM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8F9DC4CEEA; Mon, 23 Jun 2025 21:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750714721; bh=7wjfWorVJx6jX89wFBl72iu1TAeEBWDDiBzaO6h/1w4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cYgG+KmMtm/SIHiXq4dVylyEt85UAYA4++m0EU2kwgmwwGFFcMqTku6K6MmL1ZVnV xtcqs3kuHWJz/UAJbAZgRuGKlDiqIUtCtmEhEvDn5WOtA2Ca2RXjslNozaYv17iGnx bNUCNzqUMQl51ZlmT07hw6rijFnsGEMwcUepFdXY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Johan Hovold , Sakari Ailus , Hans Verkuil Subject: [PATCH 5.15 205/411] media: ov8856: suppress probe deferral errors Date: Mon, 23 Jun 2025 15:05:49 +0200 Message-ID: <20250623130638.833275703@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130632.993849527@linuxfoundation.org> References: <20250623130632.993849527@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johan Hovold commit e3d86847fba58cf71f66e81b6a2515e07039ae17 upstream. Probe deferral should not be logged as an error: ov8856 24-0010: failed to get HW configuration: -517 Use dev_err_probe() for the clock lookup and drop the (mostly) redundant dev_err() from sensor probe() to suppress it. Note that errors during regulator lookup is already correctly logged using dev_err_probe(). Fixes: 0c2c7a1e0d69 ("media: ov8856: Add devicetree support") Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/i2c/ov8856.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) --- a/drivers/media/i2c/ov8856.c +++ b/drivers/media/i2c/ov8856.c @@ -2297,8 +2297,8 @@ static int ov8856_get_hwcfg(struct ov885 if (!is_acpi_node(fwnode)) { ov8856->xvclk = devm_clk_get(dev, "xvclk"); if (IS_ERR(ov8856->xvclk)) { - dev_err(dev, "could not get xvclk clock (%pe)\n", - ov8856->xvclk); + dev_err_probe(dev, PTR_ERR(ov8856->xvclk), + "could not get xvclk clock\n"); return PTR_ERR(ov8856->xvclk); } @@ -2404,11 +2404,8 @@ static int ov8856_probe(struct i2c_clien return -ENOMEM; ret = ov8856_get_hwcfg(ov8856, &client->dev); - if (ret) { - dev_err(&client->dev, "failed to get HW configuration: %d", - ret); + if (ret) return ret; - } v4l2_i2c_subdev_init(&ov8856->sd, client, &ov8856_subdev_ops);