Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2797714pxb; Fri, 12 Feb 2021 01:18:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKcaCLgG7R9RQgqPvn3wfMp7AocRMlgvgBwgj8a7mpYZMcdWzyz0lE0swPArPE4DgZYQzX X-Received: by 2002:a50:fe86:: with SMTP id d6mr2391205edt.80.1613121502940; Fri, 12 Feb 2021 01:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613121502; cv=none; d=google.com; s=arc-20160816; b=nvYAF0kKoy8HqH1MAmWqTjLHqZ2Ec8bXr4T+FFP75qZolyMmYXxrzAVAyI/ppgUphp vR6/pskSAVrV+UTUtjTlGhBdBRqiMe+OiCa8o9QDg1QSODUCMV8pyolRZxvOuLVJu0sq mqVjoqUUqVuynMIx1l5vPhL5ZOTNmww2Ny+LgjwXkjDTZYoxvTc2SnE0TLxq8c2Y5+Dp pCQrvNdHeZtq3hy5hQkkE4UuZlY8UnVKiR64jlDaV/JIk6ls1SaY/Y3dmP1j1ODaKJwk EyqEryriOExCLjvTuTRyk/ec4jV1mDDfEjttn3eQsucVDX+OVTx9+QqnczcLn510Vpzc vDfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kUYv2KevXMCG7W+75jCv+dsU+nPEnb7kuNg7HUmjQ5o=; b=b0RkjACOIAvQafT3ura6Iwjze4DB5WGUrnbaLUz1T8IXPmGfWjAFOSP1Sl2J/fVJHl Fke4dj1VeHCCNnEZjXvY8kLlSd8wDs6UtrwyoZhXXkI9i9igabKf8/YidUWW+koP13e/ EMGpV7CmfC2PnmyBBxSJgIRzRDOppzSX/0OLG473+YCUczka4pIWzmFp4WFsx5TJmxuP 7nvm3AWdgJT8undSR21lqWDzOGBNkiDDv9WNWbf6dwTam0L6MtPXkjB6GgvJuklcpxTu 7tA2dsgPVLLskE4NGylFq/UWmkGnCClyjud7JXvslNxInFTf5zMC1/HKZ2qqHy/Xt9wv S3BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m6CghIaD; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si5555336edv.123.2021.02.12.01.17.55; Fri, 12 Feb 2021 01:18:22 -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=@linaro.org header.s=google header.b=m6CghIaD; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbhBLJQ4 (ORCPT + 99 others); Fri, 12 Feb 2021 04:16:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhBLJQw (ORCPT ); Fri, 12 Feb 2021 04:16:52 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC520C061574 for ; Fri, 12 Feb 2021 01:16:11 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id r21so7029191wrr.9 for ; Fri, 12 Feb 2021 01:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=kUYv2KevXMCG7W+75jCv+dsU+nPEnb7kuNg7HUmjQ5o=; b=m6CghIaDlsvS9RXTSKN/UkJVG3PaNDlKvEdGnZ+ExwFnX+73cen1AO8a538AlBr3qj RyEK9pMH0HdTV8whKNq1HDs70mxgUkwsip76e/yrFEaAYYqUYIncB3U8HEOnya+H7Fbc VYmIxykXFS+ZQGBQYZ/gfpG/eM6SiNikkKx0chmEjtuunKxhI7/EFqzgaH5tnE1qC9gQ 8Ct+FhIhBrZXX7zf8Mtm1ZFAbm6GMKWItBTLVLlK2ftl2lGwRO/hngTefp6LyGmmXrOt WWFVF7/rrk7cDqGOdnLcRJkV6F/1Ug9W+C0f1BW13y2E9Wrjah/5T9Uf7/Qxc74SlNdi chxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=kUYv2KevXMCG7W+75jCv+dsU+nPEnb7kuNg7HUmjQ5o=; b=A7FQJUxvWcV0fPObpW3ZRN/iwrUv3sLE0Jwn9KMHjkFuJvx3saQnFIeI9mUpC2svJv D5clt7WWdXIEbPb2GDQIxDkZQXz+i3VHwXgWC3uP2zxIDGbOAYOB1NKec2W7odwv+c7s oS0VDCcfA0Py0lmsdzUUcoBQPXxGo2IKkurXCy9x5LcpeJ6J69jaR1xa1h6MgSVVKsnt C0ko1L+yjxoVl7lFajYE92XErsreMQi3da/Kjir+HRfVWxFbylARy0RX/aAXzF4PpJBO ui51vHkUf3Dhj+69Ohb0V5H96aK2BOBjWKsIkRvpbGhPv45i+QTxlmKhitZ7VWMA8YUa Aj/A== X-Gm-Message-State: AOAM530XJ8S9jIc0Em73J4OssNVx2R/Uft9eltLbd2G02VGp4zY3/kVs kwtZ4m/ROy5a0ZWFET8N940OmQ== X-Received: by 2002:adf:8365:: with SMTP id 92mr2306295wrd.23.1613121370571; Fri, 12 Feb 2021 01:16:10 -0800 (PST) Received: from dell ([91.110.221.187]) by smtp.gmail.com with ESMTPSA id f7sm9258623wre.78.2021.02.12.01.16.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 01:16:09 -0800 (PST) Date: Fri, 12 Feb 2021 09:16:08 +0000 From: Lee Jones To: Matti Vaittinen Cc: mazziesaccount@gmail.com, Liam Girdwood , Mark Brown , linux-power@fi.rohmeurope.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] regulator: bd718x7, bd71828, Fix dvs voltage levels Message-ID: <20210212091608.GE4572@dell> References: <20210212080023.GA880728@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210212080023.GA880728@localhost.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Feb 2021, Matti Vaittinen wrote: > The ROHM BD718x7 and BD71828 drivers support setting HW state > specific voltages from device-tree. This is used also by various > in-tree DTS files. > > These drivers do incorrectly try to compose bit-map using enum > values. By a chance this works for first two valid levels having > values 1 and 2 - but setting values for the rest of the levels > do indicate capability of setting values for first levels as > well. Luckily the regulators which support setting values for > SUSPEND/LPSR do usually also support setting values for RUN > and IDLE too - thus this has not been such a fatal issue. > > Fix this by defining the old enum values as bits and fixing the > parsing code. This allows keeping existing IC specific drivers > intact and only slightly changing the rohm-regulator.c > > Fixes: 21b72156ede8b ("regulator: bd718x7: Split driver to common and bd718x7 specific parts") > Signed-off-by: Matti Vaittinen > --- > > I just noticed this fix never made it in-tree. So this is a resend of a > resend :) Not sure what you mean. Isn't this patch part of: [PATCH v2 00/17] Support ROHM BD71815 PMIC ... which has just been reviewed and is awaiting rework? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog