Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp248973lqe; Fri, 5 Apr 2024 22:29:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkSDvAE3uq25XbOaHMwulPhMCtl9bkmAsvh6asoc8Zsh9YeLeJ3FvpRRu+dT16N9CKe/T81JZktiyJtd/x+MPBr0ssqG++PI03PE7n0A== X-Google-Smtp-Source: AGHT+IE1PqkwXbvRQXmjJAgNo5CfFltPzkvmRm7ulWXYBodCRa7Om9UdZxE5U3oWy7uFxMfVnIax X-Received: by 2002:a05:620a:564:b0:78b:ba82:d134 with SMTP id p4-20020a05620a056400b0078bba82d134mr3290492qkp.50.1712381348489; Fri, 05 Apr 2024 22:29:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712381348; cv=pass; d=google.com; s=arc-20160816; b=PYTdFwOMyuFXENClonKh6Uw6Xem4yeYNCS2XHiwmqOIV6wPEX2tQ7zOzbFj3UJed9A W21+HQaSVv2hVwc0+ppA0QDkaKZLabIPx3UJC0BwiJbYJHOoVhY/7UbvyfwGlk6w97XP 3aNUXXGGK7fBZ0Ency73OgvDcNyNYaAT1XJTuc+8wQjXL4J7G6fz/TgNkrAtykaMKwLC ciqPugGLknxLI6nFE6VfyauPAGjslV8QsDMC0R5Ejprt1FzuSofL0tpMAvkWKmSODkUY 1hJ/l5iuAl/Xkk5tZsAg8uZ7SM2Ogvxa6qF+ZQTne5Y9wO4D+zMjJB73sE+Byr0iWTrU 2y0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ZmuhkTALxM8lf0cfAvP+7dJ0PJ20DaBe8z1ii1wZ960=; fh=t1jCORON07ObHtItRRLLCBr5/XfEXiqF38NOxmhBuVc=; b=GIJ92DIPZUA8nHpHUP+f2dZiH4XmspFAAgrvOspZIyOYOM2wj7P83DWIn/j883FMVJ KmD2GuVsL3Qdi9U3LlgOz7wozNQsTW8xZvj8+0EgCiwEf9PyCAoYADkNfm5wG6JwJNiL 3ut9hWkHXj2sHdU7p1VCCYhGJMfxI6leF4KDyO8Mw4ES6BqXbVP8PMybNpIu3zVdCPRg iKzWV+BtnLKGobAlfcLKuBx6U1ABWOhwG5L+T5rTGTduzOrPAWb/beQ2p8YCF2IU3sHN 5dazKm6E/0I4rkvlYPZLFfc0lJGeYRNs9nQYu0Me1Dxz9aX17r5M8cxhzRducr5c3nDE ZQSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=RU30JmeZ; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-133814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133814-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q2-20020a05620a038200b0078be5a96997si3507529qkm.509.2024.04.05.22.29.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 22:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=RU30JmeZ; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-133814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133814-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1B41A1C2104A for ; Sat, 6 Apr 2024 05:29:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C15B208C4; Sat, 6 Apr 2024 05:29:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="RU30JmeZ" Received: from mail-108-mta3.mxroute.com (mail-108-mta3.mxroute.com [136.175.108.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D479F18E02 for ; Sat, 6 Apr 2024 05:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712381341; cv=none; b=XZjX4RhKm1fQcHD9RjD5bAmHhYzsdrLbw+Xqe6eg2hQSTzne1D8Z60wi/RsCz6uXCg/STCo7SDGWlnSNrXYf5RFCRL1LFqM6VokHj5qZZPUd//m2F1P3lPNH7DiGRdLvnyPsCEQVZdmtw7PvvS0KZzHP2NtkUVHSa1Z4hOrAoeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712381341; c=relaxed/simple; bh=XvGGiaKjAp46vAegdWKN0fVnxmrfC1H1J6zN0QKFTrw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=b18wrU10kKIR7ztROAhRGkeO7L7pLnXngdfB4FaI83Cm0HJG6rU/AbffJza9V9LDmCwaPpNfYXOO1ZkpB5CCF0HxRunrrHUTcqAuOFYjPrTnzlvZpxhlya6E/iepBUffQuiMdvGIiO4JslI7CAm6DoAh/aVmBO1349uTBMGWMiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=RU30JmeZ; arc=none smtp.client-ip=136.175.108.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta3.mxroute.com (ZoneMTA) with ESMTPSA id 18eb1dce0660003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 06 Apr 2024 05:23:46 +0000 X-Zone-Loop: 2c23c9c3f44d8386bff19afe2fabfbe4d319e8d0e977 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZmuhkTALxM8lf0cfAvP+7dJ0PJ20DaBe8z1ii1wZ960=; b=RU30JmeZw8NfKZujRbkVuhHZc7 Wdnson/TB15EBa0BLASqHxyQNxUo4sK/fpaxMJHvihEmZLBTATxOJV2BXo3NfWsttfvLKNJJWHRsE CeKtDYAyQP6Ppj2blTGdGqOtuua7XHqeODzZls2nZUb2ZPnnyrjg5+IiMbLf1veOem4ZcIE6FulIa cFzdxpC9SCQ77SbyAmHMfGhhZKRZBLnK2b3qt+pu5WL3NOdQhoD4Sx3PAD7JyD1tpsiBRFs/Iw5M2 WYtRtpD/Nl5uPmjzU7acJ0j6ti7PD2GE0ijqjph2h/9H2Iu3mWHFgIpfSZoj8eNzC+j+RW3r4jlbG IjfS1GLw==; Message-ID: Date: Fri, 5 Apr 2024 23:23:42 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 05/25] media: i2c: imx258: Add regulator control To: Pavel Machek Cc: linux-media@vger.kernel.org, dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org References: <20240403150355.189229-1-git@luigi311.com> <20240403150355.189229-6-git@luigi311.com> Content-Language: en-US From: Luis Garcia In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated-Id: git@luigi311.com On 4/3/24 12:44, Pavel Machek wrote: > Hi! > >> The device tree bindings define the relevant regulators for the >> sensor, so update the driver to request the regulators and control >> them at the appropriate times. > >> @@ -995,9 +1007,19 @@ static int imx258_power_on(struct device *dev) >> struct imx258 *imx258 = to_imx258(sd); >> int ret; >> >> + ret = regulator_bulk_enable(IMX258_NUM_SUPPLIES, >> + imx258->supplies); >> + if (ret) { > > Will this make it fail for all current users? > > Best regards, > Pavel > It shouldn't affect current users as this was added in by dave for a completely different sensor and it still works on my ppp. Looking at the dmesg for imx258 it does reference the regulators that the ppp doesnt have but it still works.