Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1284572pxb; Fri, 21 Jan 2022 14:20:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBzWfcTcgEb2e8Tqst43MyRm1kD8o7VObizWmod/GmK9/QZnAALG5DnldhKXVtHwY3PP4/ X-Received: by 2002:a17:902:e8c2:b0:149:fdf8:270 with SMTP id v2-20020a170902e8c200b00149fdf80270mr5805967plg.167.1642803618232; Fri, 21 Jan 2022 14:20:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803618; cv=none; d=google.com; s=arc-20160816; b=b0KeZigjmFG/cbq0NSW/yTLsvuRzQT/U8z2SoOWVJKW+IpJh6OIAauPPVP1Mo3qAuI vuTZfr4IJs1WiBczUsneDGFPk+FDLcnLJ0rylPPCDZYl+Z1b3utYSJ1p3o5yxxuPPlIQ pXvwL4vkE8jv8nA5g7R31JETSEzgubVRqWSb1fvq3RzS+oJN8nlzeYN2yVN8jVrwaf8D 45Mk5H8neMO3XBm169mW1lo7DVKvvTh/WDjBigSBtv/rGuVShwdhJipxbF1Qzr69+rNo 0xomX0sNuzAOr4FgtjhBl+2L4ATME+Q0CTmbxHvwHJAbnqJu1v20gPZcM639pehTODEk WWfQ== 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=JGnQebvDBS2Ltcf1Q7UXjY8k/mtjxYu55A6FWRoMykObj7fUqmg6ohpp3oq/qmFy1+ fLinrPo7RCxIb1k0o0X/223102u288EsES/IGoykey4boVXPECiZYZqJFfu+H61nF7jC ZxLDjxBEY/Roiwb8a/+65Nr53XhvIEgYK1x+MpCRRIRJ8lVLVBeDfq4hxL/X9SaQ8DZG +EsDqFDkUM+AnJ+Vn+bij3tdBhEpjUIAIHE/Wvs3fnzhAGWRO6Fv+iaUigLSzUeFbMub LU+uE5eoZIFfWP6UQi2yfMGJT8pPVsjyxtilHDZ3O00Lya1mOkYPL6IFu5zPevubUN70 m7ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TLly7VUz; 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 63si7102560pga.664.2022.01.21.14.20.02; Fri, 21 Jan 2022 14:20:18 -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=TLly7VUz; 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 S1376621AbiATPWl (ORCPT + 99 others); Thu, 20 Jan 2022 10:22:41 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:35468 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376568AbiATPWf (ORCPT ); Thu, 20 Jan 2022 10:22:35 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 474F81F4533C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1642692154; bh=r2NUuVpLB3Cn7OcgzQz7XHk2TvhI+FZhqWFg7FO+3BE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TLly7VUzvC4Qg/0krVuij9DtYEETbpDfY2IziS6baQ8u71D17P/BXPaONx9H3qZEM KeKbMX3hsuBh1kYxzFcbAtxqG/iVWepJG9PT4KPmuZrI7s8TYZfSZhxVhe9qPTrd53 rtrMQkG6Hhh7QM9O2sBy/GeC3V71Af0bTcyFMs0tgbVa1PqXVLVnuQymNIFBF3vA3j lZvrc4x4wIbYE6xeZmidJwpYFXWGShXgyAwRPe25uSwmR/u0G+1p+b5kCwUYdUeWBq hc+lmIw9EIF5kbJUxQFbrj3mA86/ohdo/mROqzsoM6CXyfJaLUBPHlB7zNE6V3wpiU tt6NHHI6ogqrw== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown Subject: [PATCH 4/9] regulator: rpi-panel: Ensure the backlight is off during probe. Date: Thu, 20 Jan 2022 10:21:45 -0500 Message-Id: <20220120152150.1952568-5-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220120152150.1952568-1-detlev.casanova@collabora.com> References: <20220120152150.1952568-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