Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3983266pxb; Tue, 25 Jan 2022 00:38:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCBBBnHDbP4Te60NsyaCMODq/xvjOzPt8eHF7AtFG4Ll5x7fImDAZNOzPxHmvFB/oGOfn6 X-Received: by 2002:aa7:9562:0:b0:4c9:f1a0:e0d0 with SMTP id x2-20020aa79562000000b004c9f1a0e0d0mr5345770pfq.53.1643099930685; Tue, 25 Jan 2022 00:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099930; cv=none; d=google.com; s=arc-20160816; b=YyKmGXrhRLkIowKn5h8X8pieCAFpLYfadBh7namQtr3T8ETGBpi7PI5s50XLjKSbRe lioZPWBqnpBtTRCxwHvTEIvlWUB6PZ0OS0iqxIseSUFsZpeaj7ANttxI7auwu0jKfpZt wLgAwzlhDuRJ4XSxqWHG+C1QSix6q3Dol5+AzuXva7sxAkjhzNsM5lsqHApHR8SYS5Y/ dH65Mt2kKCrP1XYx2yWPGNr6EaoBBj8Kym/qJxXR7VDAYJW1WjstkfYcb16dYiuVkjpN AhTvhCTIJwRI/I+hv3ynZAMI44+A8NnEu28vhSHezGqxz+P/hYAoDn7QHUj8EntPxjNa u9Kw== 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=pVRUjQghnqaYUEMyAOBUbGw3sRB+iH0WMez6xPBkV2g=; b=lw9fNoBj4//VabiPg4zz43VWpxJYmcLnmwKtuT5RONWx6jrkVUWncmkKma+XU+iTVg bo9vEiJ9eNhhW6ir8qf9PmXSMTaKEq8o3AF1yC92Atk29dzLYNz2YC6pznU+8/KqafBc Ut8w+0xZFDzf0h7sOlIz9bJzQ1NsZSDdxZ/Hf5QfZ/jlwbB1/aJ0uEZ9QUbEl2HKOyno 0hxvYYo1bfolxnOMLff+/+50ys81hG3BzSu7/Q/I2K8rJpBTpyPqdBpMvNgCUhc88Kgh r9rjQOasBNezWdTwpxJ682MrtPy/Kw15Xvo//9k9Om8F5d7ObqhrJqa5ctagVWynEUbO ZdXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gCT33eWq; 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 d11si1399100pjw.33.2022.01.25.00.38.39; Tue, 25 Jan 2022 00:38:50 -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=gCT33eWq; 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 S1315588AbiAYCxv (ORCPT + 99 others); Mon, 24 Jan 2022 21:53:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2374234AbiAYAQe (ORCPT ); Mon, 24 Jan 2022 19:16:34 -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 50023C038AF3 for ; Mon, 24 Jan 2022 14:01:43 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 954E11F438FE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643061702; bh=mp0tkZLX7tw26KY5Skjy5PePDYT8EZn9ewhzvxDKrbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gCT33eWqw4pxs+yhUVMZLtqSf/8GYh0J4Wkp6nTh5xxs+5b9p+y2hWcBpd/AqYSmA oRI7XkvYLCPHIDnhAwuKXr1rRWTEoFc9da7YMdS1R0wxXHSdHIZJdI3JwxHwnwoVfa MYeExtx3CPjl1zMpFS8KQ1pNrM8XGpbMgGLEb8jL1d9TlLMMAZVxU6zuk1gE5N/CYL oHnImIqjs4aiwOpm/NgNkaM/wJU4+F4a70TbpUPualPksdjdBp4FEA7BLtoL0Z3zCh SCSBcjAp4UffpzkRIyjI7ZFzmGQMntQ3orHxi0r8oxLqVvBxixgXsxlGTPTHfAs6rL acZNeeFUCsdSg== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown , Detlev Casanova Subject: [PATCH v3 4/9] regulator: rpi-panel: Ensure the backlight is off during probe. Date: Mon, 24 Jan 2022 17:01:24 -0500 Message-Id: <20220124220129.158891-5-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124220129.158891-1-detlev.casanova@collabora.com> References: <20220124220129.158891-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 Signed-off-by: Detlev Casanova --- 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