Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 BCF161632DD for ; Tue, 1 Jul 2025 12:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751374100; cv=none; b=cBK/X804HgdOcldsWZfl3dYU7ZuKyOQ5eiN4YVq2UkK5bSuRfDZ22Rq9SvFksQpq/zWOeTlbGOyj4xqbHTDMTn+K7SJFaJZqHd3InXGov1jbX4lnEU0scu5kLmJX7Mys5zPtwWONHk9NdzKLcO0F8gnSrsa3nEn/fBt+gD1UGmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751374100; c=relaxed/simple; bh=B5sYwCzrOUsbU8d2XsfZDMOWyPI4TT2SG8glzF58Rjg=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=p/toIqeADcEwewpLxHhO+fX8YDJq0ysQE61u3Jh8OhPGD1lmiLBvIBSAHbBNvNTM6GnLsNAvyycE36G05lCrbXtGpO75LGFmE8PtLACQlMtHoWvubCRUfPM2xv/ziBkSKXauSO9sKLvP8tWT19h9laMeuzWsz5+rbVIadDj+Iyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gd8TZmdp; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gd8TZmdp" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4537deebb01so16703525e9.0 for ; Tue, 01 Jul 2025 05:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751374097; x=1751978897; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=DFgm4nb9P5q9Y36iXQaitvKFdafFjm+S1uOuQEYApsc=; b=gd8TZmdph5XWeYYTFgghe58oAWYdKEA+sObAWnRWt04NOEcCAuaBXbBEImHKtJTzpx 7JVnDNrEMtt8JifbaSoNMNG6Xlf5lrLAN2iiSEbaMnwy3N1ORLvAzypcazItkQU5I9rY 77kiFbbHufn+cyE0Qekhj7TZ9d9i4axC2A3/uCWA032M+vcnnfGNB1P8keu4LNuqDkow mUlYBbVG7KVHhTMfPEmlTKsK0X7pJK8M5LynsqGytAfKh8vINIDPyEIhlVv6DfDPeGAu 1H58AiuAEdz/TZH0Cv7PKWLc40eUlcOeBlOT/w3aGkmfjr05KuI2Ugl7Yf09X0yOWWxq ps7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751374097; x=1751978897; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DFgm4nb9P5q9Y36iXQaitvKFdafFjm+S1uOuQEYApsc=; b=BQeUpUkHZ6K+otQ5dRryipWxI/4SlER8MiZH55Gpf0vUl9Yb8j/3tLSUHCa0yoWgt5 XYj+yuaAWI0JMUGIkWshXxLuU45MWM3Z+cQm/kfSzmT1seisP+QnnA/I6qFnQzZn3SIX K1IjoY956RQQxfLzFunjCvwjobZYyZUtXpYYBB0crRTu1mzp2q7enuQlVgse6jdSFWON aqR/NuaHJ4gSJ5udmConhPneh9WI04tOaPmOVTYG7TNkGpPK09QMyMb6r5JLqfyrtbjz 5YqaXeBjyHojk8TlwSk4mqT3GIKYnIV4e5B9U8d1JfHbJDxMLxgmMWRImS2AB3KQajge jqbw== X-Forwarded-Encrypted: i=1; AJvYcCXORm0o914AuA/03LRJReugE1Nle1tCRDySfp0tif/9ZYCdciusaJau1IHNh/WD7ymM7xWPXnLNuck7OxkB@vger.kernel.org X-Gm-Message-State: AOJu0YyQaVDBnf3sexnbyqyKBMYySM7+j+75nlQWYI3zkZorQZBR0bqv pqyoGmrJmwe/Yvumy9TfMTxPZkkEv3rW5UeqQFqomb6lQopQl7AI+W7IPnJFXGkRn5c= X-Gm-Gg: ASbGncuwCp2qR4NR7Pqb5FIJZwNXA/mD5uB/K/Pm6moI3a3KPmJYf7evWeMhqUTA+ji YplNrKbjx4jLkf7DNIrHum9JG26DUOWvN74JtKthOHp68kun2JzcsuUO62aqhibePBzzlY6hULc PUMaXjyuIl4BO1VAWMlGg78QJuh/2xl217WFhBBLpg6ph46+QS963j0ogeQPNlKYe2+u2wICk8d az1UsAzcm2l+QJ2WlsflyYee8ARdNDDa26Y2Q3iBLQ8m/PPrNmX7/HsGaNGTAFPJ9hpFy3Hguzh uTBLj+4wRAadPEz2btw/HKRj9rnFPmZtrtgnVPkBWArAnaAMFnPGSkLSAAciRRcIG44f2tKByaS XmxPM1gIGCyXu/f19YBJ5Y+u2Hgaxy7FVvllJQQ== X-Google-Smtp-Source: AGHT+IEBhwcFqQlAPSzSQUtiRdSN/GLV080z0dQVtAlBuMYPKfmioQErq23N/4IGxkxNFd6RD6iFSw== X-Received: by 2002:a05:600c:8b01:b0:450:d30e:ff96 with SMTP id 5b1f17b1804b1-4538ee5dc58mr175426545e9.0.1751374096628; Tue, 01 Jul 2025 05:48:16 -0700 (PDT) Received: from [192.168.0.35] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4538a390d11sm167773995e9.7.2025.07.01.05.48.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jul 2025 05:48:16 -0700 (PDT) Message-ID: Date: Tue, 1 Jul 2025 13:48:14 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/5] media: i2c: imx355: Add power management for managed resources To: Richard Acayan , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Sakari Ailus , Tianshu Qiu , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20250630225944.320755-7-mailingradian@gmail.com> <20250630225944.320755-10-mailingradian@gmail.com> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: <20250630225944.320755-10-mailingradian@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 30/06/2025 23:59, Richard Acayan wrote: > +static int imx355_resume(struct device *dev) > +{ > + struct i2c_client *client = container_of(dev, struct i2c_client, dev); > + struct v4l2_subdev *sd = i2c_get_clientdata(client); > + struct imx355 *imx355 = to_imx355(sd); > + int ret; > + > + ret = regulator_bulk_enable(ARRAY_SIZE(imx355->supplies), > + imx355->supplies); > + if (ret) { > + dev_err(dev, "failed to enable regulators: %d\n", ret); > + return ret; > + } > + > + gpiod_set_value_cansleep(imx355->reset_gpio, 1); > + > + clk_prepare_enable(imx355->mclk); > + usleep_range(12000, 13000); > + > + return 0; > +} I'd say this sequence is out of spec w/r/t your sensor. Almost certainly should be - clock - rails - reset lines The reset sequence should be - Assert reset - Wait for some amount of time. Either you get this from the spec or you borrow a value from a similar driver... Suggest again what we've done for ov02c10 and ov02e10 - De-assert reset Then use these power_on/power_off sequences in your probe discovery, since they will already have error jump labels to do your tidy up. --- bod