Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1405552pxb; Fri, 21 Jan 2022 17:53:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXV4rY8ZJI+n4XX6XI9RG9YYYI+ncd6VgPtv6aAhyBLFoOF/hvtzJC4X6ZEIVbqs3QuLlj X-Received: by 2002:a17:90b:30c9:: with SMTP id hi9mr3117791pjb.68.1642816433124; Fri, 21 Jan 2022 17:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816433; cv=none; d=google.com; s=arc-20160816; b=ulFQE4AiG2cA698P03hPbndmm5y3Gj0J/QwFfxx2Lo13q44uu+d0xIuBCn7Uj1STRb 9ngzGYcGhsOkVjJDHar2Xu46ZxnEwUDzf62g4lUsvg28DBooA52jiKIvTnttfRsvJ5rw EyvvizDcwcpKuIkxMCxgNYEA/Od03Sh44cwKgqHrkZ0yGvShi2eNBl/vhNBBk26S3Ovg ncRIM68yUWDF5HCKYN9b43e/ZNMxVZGeYb/8i3PlwfVyACqhR4LdrgOJNqOUa2rhRr7F BET10U5kqaNpU7Tw8X+pGtmlLl8KrGMjCl3ZYxoMvoMoZod3cDd0xF7G9gaXiEYP7kTw ss7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nz+O1xiZgRQSDg4mQ+m8vy4+rGZzik3A014FFkanMU0=; b=Td6QLSRaoLYfkWCNvRwO2EIe9NQdzgxprh/5LblXO1qTdLCt1oQI5AEBrC8EIAxWn2 Ry9coEuO4p8AKp5I8ZRhthgGDxVavXSeurNf/K7UcDIAT2chf0eXY6kkCy4DBabJrI11 wMfGCZajxbMRYMRYYrTtWV2kFXF+te5kdBqdBFzJiwA737yijIk4/Ezbbx+SQ7euvL8Z CdW1CrfiK5ofMrfFl5BqqZ9RNc8n4enWfqXOPKCj0eS8mBFzxrzNE0RbI0+c9TCUW/5R VH3KUOMXKoVmc8JdnSEb1WzBEae/UbC+nK6BtWjwb4hfJpdd4DbAr2P3Qj8pwFx3gUG/ cAoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EzNQpGdn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw19si2617692pjb.86.2022.01.21.17.53.41; Fri, 21 Jan 2022 17:53:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EzNQpGdn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381570AbiAUPVq (ORCPT + 99 others); Fri, 21 Jan 2022 10:21:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381536AbiAUPVb (ORCPT ); Fri, 21 Jan 2022 10:21:31 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38A8BC061744 for ; Fri, 21 Jan 2022 07:21:31 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 8F1B61F46214 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1642778490; bh=r2NUuVpLB3Cn7OcgzQz7XHk2TvhI+FZhqWFg7FO+3BE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EzNQpGdnZS5R/oj54hGdYMdDgIy6KogxpbzxvxykxzNTQTvClZuOE5FTwJe0+BMcG ZG5YR59CGUI6JgJvfx1pEgdo5iSyva3jH+CWEGPoxIz38+xosa0X4cN9MxMJP/4VkX eJ8pYuiD1TSDM4vhYhK6dhd724flyIzpzAMYu6+GmeLFfxfdCyhEXcpLHMrQYvPgRS dHMbmDhrzKw843StpRG52M/BKdwFAB+2JfaI9U5BkEfLPMcH/wd0536BbSSJo1N4ro hZ6yzoCAuIEcsZ9Xf+lHYzl+oElk06p+8jV4m663/gRXt5p6qV38PKAzxptVewnmGM aGvJokb0giCHw== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown Subject: [PATCH v2 4/9] regulator: rpi-panel: Ensure the backlight is off during probe. Date: Fri, 21 Jan 2022 10:20:51 -0500 Message-Id: <20220121152056.2044551-5-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121152056.2044551-1-detlev.casanova@collabora.com> References: <20220121152056.2044551-1-detlev.casanova@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Stevenson The initial state of the Atmel is not defined, so ensure the backlight PWM is set to 0 by default. Signed-off-by: Dave Stevenson --- drivers/regulator/rpi-panel-attiny-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c index a4af7adad2b5..b3629a1e0e50 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -250,6 +250,7 @@ static int attiny_i2c_probe(struct i2c_client *i2c, regmap_write(regmap, REG_POWERON, 0); msleep(30); + regmap_write(regmap, REG_PWM, 0); config.dev = &i2c->dev; config.regmap = regmap; -- 2.34.1