Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5663556imu; Wed, 30 Jan 2019 01:14:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lGhh9scrHCsGN35jMQgQVBL86V8nBJiSOOZuYW0c8IruiwRvCBtnkkow4pmPFpI7Skw2r X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr29582620plb.192.1548839682370; Wed, 30 Jan 2019 01:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548839682; cv=none; d=google.com; s=arc-20160816; b=VMdw3QJaH2+r+cFCL6D6K7VJ9a1JP8wo09CgBHA3ULbWzyPQRErxzFMbOJhmz5+1eH 2mFYhdalZDFXBLF6O7pk3iPUY+CB6D4bOqkEACueop/VhlEsC7ie1Upu40EsPW82vU7+ sc/rbR+hx6xj7lnLfAZjWUFCusIpke/WsCnc+Bzv66TMdxKDnMWzu59CaSoO3DjY8A1J xtXAR2Pa7zSUoUcftG2qA5mN0HQJwDHioyvtBQFgwy69pn+B/5BYFqFHOkKzBct7NwbZ LAvXqLBHLUMs+TbXkfPmYPwiICQiecnB86LwtiajwrADwp7vdmXsw1DbdQ39Ler2T1RT paaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Luu+Ig06NuejecYK/kbFfwad08hacL7qfXGarypLpIY=; b=Jm+b1pXQs+uIJX90mcWLBl+lrTM6Rf1Y+1tlpm1/7eh4CJE/qOniVtFX3h6UVAEY6E v4CTyZinOIDOQ1GU1/sjU9swxaPWYw89qoLSQTw9TIhqFwZOE35qSVaZbyUeaa7edW33 AJUfC5prLM4hZY2CAJIdG7nrYat/Mh7oKBsu8jPttCdh6jLcPj7Yic8URi1SmNtv6LR7 Qvj9RCNr5CC8ESqkH9z9C36zt5d1hng+ZQYcFmkE8NquDgKiAXC2pLn+RT8YK4+wqmfo jkixnVEbaRGO5CsVBFczM98VVYuTNzhVCr4EsaqJv+pTq9p0IjK6A5tCP0gIvkT1lWqB fhSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=w9+34h0l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c191si1000190pfg.72.2019.01.30.01.14.23; Wed, 30 Jan 2019 01:14:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=w9+34h0l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730472AbfA3JOS (ORCPT + 99 others); Wed, 30 Jan 2019 04:14:18 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55079 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfA3JOS (ORCPT ); Wed, 30 Jan 2019 04:14:18 -0500 Received: by mail-wm1-f66.google.com with SMTP id a62so20797234wmh.4 for ; Wed, 30 Jan 2019 01:14:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Luu+Ig06NuejecYK/kbFfwad08hacL7qfXGarypLpIY=; b=w9+34h0lUh9hdZODM8LRm2TxyEWeQCz2ZePMNSbhGM3HOCDD5kc43Vbw9xDx5ZW69k rmziZIK30lSmerEXDFMX+RcjTZsi1s7w0ZzJ0DltfY9Vn8IV2NFwiIerRp6cGLbWoEQv PqWTzNpEArnFBX/o81qJ6gv/O0iP+6VnEuT8uAl3cDxgdTHWq7Q0THKRhc2e+zh1YOI1 Kyyag4oWxLG5DBb6gfOafYJfaHop4Whl0YPzxR5yk/emsORB+kwrphosGWDbWbySVWqg wcvGhDNnpA0VBLS4dQO9P8aOnLdkkyVfW4H2oiExriwNej9XYd/mHvF+PbfysYZydUMK GnSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Luu+Ig06NuejecYK/kbFfwad08hacL7qfXGarypLpIY=; b=O7SvzwsmB9hVR9psPGZOOmNrOGhYKvPThiGMB4cybuaOaQkZA7MvzfLO0WDKhle/yR E/U6EOIA+EbgCrbEypGMHmdhnPxd6ZiN/DBKJbP9xyEIloGbbFLVC91TfHe527rgNNt3 kXpohH236p1RljYZMUCas2ZTE7Z9psS1c0gPS1pFdtg1waOuJpvP84fhsFsPzbrUFuS3 JrotwJUCY3B/8vJcgdtsYECdOzM3HVjFbSLgp1O3BBkAtDBIvQ4CCqgii7Sj4q0k+vJR rCzGVzdhWVyn23Iwd8XSyJ5a1t4Ve5X8E67SHBsWUrpjik7J8rlUgvTLfWBJ/dCrtfhG toaA== X-Gm-Message-State: AJcUukfgBnf7sS0ALA1pHmebYS/i9lpmasQmmA31s62VCvsTM1ONrjfa KklvRFg1V55PbiIHXy58W7gJsEmkmSEjfqFXCrgVww== X-Received: by 2002:a1c:5984:: with SMTP id n126mr23660405wmb.62.1548839655845; Wed, 30 Jan 2019 01:14:15 -0800 (PST) MIME-Version: 1.0 References: <20190130090722.24134-1-axel.lin@ingics.com> <20190130090722.24134-2-axel.lin@ingics.com> In-Reply-To: From: Axel Lin Date: Wed, 30 Jan 2019 17:14:04 +0800 Message-ID: Subject: Re: [PATCH 2/2] regulator: max77650: Convert to use regulator_enable/disable/is_enabled_regmap To: Bartosz Golaszewski Cc: Mark Brown , Liam Girdwood , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bartosz Golaszewski =E6=96=BC 2019=E5=B9=B41=E6= =9C=8830=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=885:12=E5=AF=AB=E9=81= =93=EF=BC=9A > > =C5=9Br., 30 sty 2019 o 10:07 Axel Lin napisa=C5=82= (a): > > > > By setting enable_reg, enable_mask, enable_val and disable_val, we can > > use the regulator_enable/disable/is_enabled_regmap helpers. With this > > change, then regB field can be removed from struct max77650_regulator_d= esc. > > > > Signed-off-by: Axel Lin > > --- > > Hi Bartosz, > > I don't have this h/w, please help to review and test it. > > > > I think the only difference is the is_enabled checking: > > Before the patch, it returns en !=3D MAX77650_REGULATOR_DISABLED; > > After the patch, it returns en =3D=3D MAX77650_REGULATOR_ENABLED > > I'm not sure if this difference does matter or not. > > > > NACK. I intend to support the FPS feature of the regulator module in > the future (see a similar thing in max77620) and I will need to extend > these callbacks as there will be more possible values here. Regmap > generics will not be enough. Got it, thanks for the quick review.