Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp158623pxj; Thu, 3 Jun 2021 03:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdgyQFRx6N2Kj9OK9LKO4+8YWTHM/X7zhENKmvpjqHX58h0+CMvqZqca0yO5gBGzWF+XmQ X-Received: by 2002:a17:906:fcb4:: with SMTP id qw20mr16925413ejb.344.1622716303831; Thu, 03 Jun 2021 03:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622716303; cv=none; d=google.com; s=arc-20160816; b=s0Cs+vxPm0K20jRmuKH1xEaJDsEmdrOq5tejS50q7+s8EEcQwJvIMVu5rjfzS+TO/z I0p2J/NzDC87Ci+rrsdLaomJkeKuRN3zgA2Q4KmcsPwuzgHa03ZpxAFKDJALSF9HRhl+ BCLkGDiAhjiCXGnQQic6StwoD5eSu2tPHeZaDA0c/7g3i0iboM2YALOj6FEbftfkrXr+ 9ZtbSAcNiM1VIlL9B3Ir8itw9PlqHH19ZQXM/oLa/5yj5WD9s98LKEf3HLQh0Ny0ZRJc nySyOKlwmjI8EaIkyqoTf3bMQkrSkcXvfi0NVLVifIKkYBw0Q+1Fak1++xeVyYbqgeGO L4Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tamsZZ4GrS0eJgr315W6Rp32jKP5+n6WY10gRy7bKWU=; b=PTjgdIWN4NML/DRCYuOimmR5eqi1GWJQEWaRyAKOLXDP+NZLiCQcMbszF/bwdqPbvs EHiMaknv2yMmgpueild3YPSkT+TAigqOKlOOre6q7ZaGecRQEygY6gA46vHbgcQxNM1U W6tyl0Jbh5OmgFMfoF62BViMT3HWj7NEjdsTCRZZqrHJAlRKS97FsH5NCjuXYMbQ56Or VFYSX4NULYVGp9gAHG3xBMcRP52RoRaSjPfQ+jvR4T+UWJChzqeENTE645oI/Lq6ynie 7GAzF6iixML/hTZSeKoVjjqMU4LdYSdf93jnXUuxHSM4++eLCHa5BdTw39yMROVaaJR0 ByaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=YdbkXsL0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si1880871edy.464.2021.06.03.03.31.20; Thu, 03 Jun 2021 03:31:43 -0700 (PDT) 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=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=YdbkXsL0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbhFCKax (ORCPT + 99 others); Thu, 3 Jun 2021 06:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhFCKax (ORCPT ); Thu, 3 Jun 2021 06:30:53 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FDA3C06174A for ; Thu, 3 Jun 2021 03:29:08 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id w21so6399937edv.3 for ; Thu, 03 Jun 2021 03:29:08 -0700 (PDT) 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=tamsZZ4GrS0eJgr315W6Rp32jKP5+n6WY10gRy7bKWU=; b=YdbkXsL0KkYKS7Ix9rw76X7uWaTzw3/D09NeO78zwZUXrv8yDTgwrT157P28jtHaEl Qxq8IJyyhB41PxkvkkFFLaz9szb01NkEIf8DhCwsX9NZTebDQqPDzg4FnE1Y+GOHmjIK JSWVMxSSH0OL9LRLzaQkMuvKBmxgRdUDyAtQO9R4gFdn4rTW2FS7fFOnueunkzJfVLZ+ Oj+Tw0Tnsst+zweB3/sLfxlXU/gyn+B1uPHEiqgybqxBs/5lA2KHz2SY15I1qGmEVd5G iOXuSyEj1ZsxsY3xKqa3uM33Rw8pJ3VIBrnsOzLlllZIoMC57897ltPm6rGH8L8B572w YrHA== 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=tamsZZ4GrS0eJgr315W6Rp32jKP5+n6WY10gRy7bKWU=; b=IwZ/kl4uuxyV3Eod8ThEjXbz8Epqk+SAuH/lUExAh/hwXvxOJU6VWN1CaDqiOwoioq bRj5bPRZ2di+DTx2VlNsrVEXUXGKutznpeFUep+VA8e3PLNjoOQw0ODTuc1buR4HH4AD aE/GbPcGIhgv0Gnx119ing0pH1JLfVfSrC/St+aQc0k2tt6P8ZvjEAfNApQXhV7OJL0e zWetDTbQXs4j/FdUSVXI19Ebmr5cDZvFWejts01VTHlkf8Gd3JGA++kNNXfxl4Wz6O0S 7dk9xx/6CXb7I+eDsBXTZhQzi8VfpRBV68+pc0jFMm+bXmK9bOt5icRHKRhfW+Qmq8xT gFAA== X-Gm-Message-State: AOAM532+tADqpYMuGAG+wSbsJdt0Cur1rP1Bl8x8CCZDvvoXjyPk8mLo lBOTDMfWmO9BQkzwBIi7w6vnHo71TWh6v8AteqEuLg== X-Received: by 2002:aa7:df04:: with SMTP id c4mr13138611edy.147.1622716146797; Thu, 03 Jun 2021 03:29:06 -0700 (PDT) MIME-Version: 1.0 References: <20210603093809.1108629-1-axel.lin@ingics.com> <1622715641.1034.5.camel@richtek.com> In-Reply-To: <1622715641.1034.5.camel@richtek.com> From: Axel Lin Date: Thu, 3 Jun 2021 18:28:30 +0800 Message-ID: Subject: Re: [PATCH] regulator: rt6160: Convert to use regulator_set_ramp_delay_regmap To: =?UTF-8?B?Y3lfaHVhbmco6buD5ZWf5Y6fKQ==?= Cc: "broonie@kernel.org" , "lgirdwood@gmail.com" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cy_huang(=E9=BB=83=E5=95=9F=E5=8E=9F) =E6=96=BC 2021= =E5=B9=B46=E6=9C=883=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=886:20=E5= =AF=AB=E9=81=93=EF=BC=9A > > Hi, Axel:> Use regulator_set_ramp_delay_regmap instead of open-coded. > > > There's some reason. > You can refer to https://lkml.org/lkml/2021/6/1/1145. > > It's because our ramp value order is from small to large, not large to sm= all. > It conflicts with find_closest_bigger value chosen logic. I have verified the rt6160_set_ramp_delay() behavior exactly the same as regulator_set_ramp_delay_regmap. (both functions get the same selector for a given delay) Could you check if this patch works? Thanks, Axel