Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp834380pxu; Mon, 23 Nov 2020 05:29:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg9ZgW2NsF/vSwR2NlQJDQwhJeOSs5R0gci3XhGd1LYFrEoAijmPERtfxKJGpmFN+deO62 X-Received: by 2002:aa7:c886:: with SMTP id p6mr45641184eds.352.1606138151012; Mon, 23 Nov 2020 05:29:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606138151; cv=none; d=google.com; s=arc-20160816; b=MS8scSlzdR1rNwOwx6/E1XhdwH2foovfIzLLx1C+o/UYF2pwxBy7aBgokJk3W8RUCL c6AuAIRvPHlRrzWCXYk1JcjEjc6nUnWZOKUMSSeZ5sHy9v0oK0cCcxM1NkN+EwtGDluw vaAu4ozF38PGh4h+ig4HmXwZkxB/Y34MhpMXfXlNcNcpmWTMOtaJBKZNvnoYhkwEnKbS ZK8h1+QgnKbx/GI4D3DxH3OMD65u15oGwz8N1BpXoKNkcoqxGbYRDN+iSzBLDz94yRgF RbuYdtDEcK5dw2vr2lx+0VLQT7ubCk3J8F5TlGnYxPBJMVtTIeNj6L9DAJYvPE5K8zYg d/ug== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Yf9gnO2F7Hm2gzwPn4a7T8sHbcFxPKNKxVoyG+pl+0A=; b=wP3ffh5TVJ/brymGpaDu7XeA7Jgl3XtDmuqFN3qqA4g362/JDe5i1OtFKw1gGGjMED s739RH857DNbsPql+hV69dGpUkSPqtEo4yBRzZS8Mp4iHTEK4C005qgVfeHXLMuGUdAR +NtTiJ78tz4n92MAb9K4nvDjz9A9r/KTEJdXmX9mb5DS8EV11IKGANkQXfhFUocQjyHV sBwictnNQh9fhk/0NMIdV3ihafaR/XauDXy6GLHp1YHllazZfTYN2A0c6zMv9hKprSv6 EoKupFeiWLJLFnWyybAr/WhBifzsHFDbE03VOKNCse4WhWgRKyZr8yHv8uU/jEiAC1NN fDhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="m/CajdNh"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si6374814ejc.357.2020.11.23.05.28.47; Mon, 23 Nov 2020 05:29:10 -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=@linuxfoundation.org header.s=korg header.b="m/CajdNh"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389137AbgKWNZm (ORCPT + 99 others); Mon, 23 Nov 2020 08:25:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:44156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731143AbgKWMcz (ORCPT ); Mon, 23 Nov 2020 07:32:55 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18E382076E; Mon, 23 Nov 2020 12:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134774; bh=p/BMhVuLgfQmPSua40UMbAp85aa9kbc6tWNh85jGz6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m/CajdNhScmR+8rdcqo6uKogWAmnR5gPxjLIU701NLY76gMIsdg3Ei9qcDLpq+DOH jNl5IxriqAkbfi88+TG5UlGLhVXFjG+CtFg/jdBGrTJLBNzS7rfndxeq2uP1TaiK+D KWVVlStsrFvJ7sqLhuQLa/bhVgM91peHYWeLK4Go= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Nyekjaer , Mark Brown Subject: [PATCH 4.19 78/91] regulator: pfuze100: limit pfuze-support-disable-sw to pfuze{100,200} Date: Mon, 23 Nov 2020 13:22:38 +0100 Message-Id: <20201123121813.119234370@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Nyekjaer commit 365ec8b61689bd64d6a61e129e0319bf71336407 upstream. Limit the fsl,pfuze-support-disable-sw to the pfuze100 and pfuze200 variants. When enabling fsl,pfuze-support-disable-sw and using a pfuze3000 or pfuze3001, the driver would choose pfuze100_sw_disable_regulator_ops instead of the newly introduced and correct pfuze3000_sw_regulator_ops. Signed-off-by: Sean Nyekjaer Fixes: 6f1cf5257acc ("regualtor: pfuze100: correct sw1a/sw2 on pfuze3000") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20201110174113.2066534-1-sean@geanix.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/pfuze100-regulator.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -755,11 +755,14 @@ static int pfuze100_regulator_probe(stru * the switched regulator till yet. */ if (pfuze_chip->flags & PFUZE_FLAG_DISABLE_SW) { - if (pfuze_chip->regulator_descs[i].sw_reg) { - desc->ops = &pfuze100_sw_disable_regulator_ops; - desc->enable_val = 0x8; - desc->disable_val = 0x0; - desc->enable_time = 500; + if (pfuze_chip->chip_id == PFUZE100 || + pfuze_chip->chip_id == PFUZE200) { + if (pfuze_chip->regulator_descs[i].sw_reg) { + desc->ops = &pfuze100_sw_disable_regulator_ops; + desc->enable_val = 0x8; + desc->disable_val = 0x0; + desc->enable_time = 500; + } } }