Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp490404rwe; Wed, 31 Aug 2022 06:19:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR5nPyPM7ipeRy+SJ0qR4XCtNW7d2EQ7pMXh5zSCgZE1ZunKBzmg08rl9uk+uVDsT1QQXuBV X-Received: by 2002:a17:903:d5:b0:173:3307:bcf with SMTP id x21-20020a17090300d500b0017333070bcfmr26008254plc.87.1661951969728; Wed, 31 Aug 2022 06:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661951969; cv=none; d=google.com; s=arc-20160816; b=XS26bBl5taWaCJ3kxTv3UA4IyJNdSC4u9KaG0kk0GQb3m3aAV5QyybeN+yIPbdccVZ 7yTiFVnA+QWE/LH4/Tg5etxDa+QURp1DXM7zdkw6XfosVAVaqmN4ctrcEiqt2N/6mepw 9fHTV6ArIj3OimApQLCKL5uoID0wNH3eBVKHeUHbo32S3dFxOPjIJFsN09HxaEqraKMU fk0sw584BxbkpSq5zsfuTheiP7fv1gOgdeAjTg7SEUx116iqTpyBUdXduiDicjbrwvM2 lwrnyvv3DEkcbV+tX3EEjIeVJHz2QTccjV2dkNuszdlNPW02ArQudcXqBYFfASnzLxEV zIBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xp7tXXLPMDYdofl4qf4Gl9td/1mRU85TsGKFUiJpwew=; b=IyIEtZJWQfw7u5+cfKawUJ76w7FAPgcnokkpB0LbaOxk6OGv8ie66O/9w8cN7HMVfs vmbAZN/Wq3PlfH1auJ4PORBBwRSpk5iGxHOfo+YoJkwbub9agB8IPUoRpnSFT0uGMuTP 73tnJRO+VE8mjkySocCIMLqddKVYUrA8p35JQni3nX0IdubVnRgY5k+g2F6yYPlttafS 0ICW1Flo05oCIXk0HSteyg88sqPo8rjzD9fr8kj1ssY3TV0yYbASPTwQ8HfihWHJ/vIr T5l8mXjadUg9Kms8oSvb/6s/V6E359KD6RsyAvzWmAe98pJl5jMJu5TFRWmo8sO2m8R/ PF+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=KoLazJ7+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i123-20020a625481000000b0052528200c80si13115521pfb.282.2022.08.31.06.19.18; Wed, 31 Aug 2022 06:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=KoLazJ7+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbiHaNAT (ORCPT + 99 others); Wed, 31 Aug 2022 09:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbiHaNAR (ORCPT ); Wed, 31 Aug 2022 09:00:17 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F122FFCC for ; Wed, 31 Aug 2022 06:00:15 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id t5so18256376edc.11 for ; Wed, 31 Aug 2022 06:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=xp7tXXLPMDYdofl4qf4Gl9td/1mRU85TsGKFUiJpwew=; b=KoLazJ7+3BZEa1mKsT29gWm/v+ceptUVBuOOTw9AJeRCvNCEDYW8zShrE95+gtAv/X nF7Xzl/0ZmNXPFoaJIZK9vYdolOWfcCFYzOD22Wijkt7b15q30Ew3qLjUJwBOSpIl5ab HNu6VeE9StJTJu8lRF/mlDw4zJ7bvbTGb6r7ite6/1bP6S0yzAxJ6G6sOodH97XSNWPL lGi2vMfzqYw2L4XUGZFCZ96fQu6eIe+Ul7ZSoGuHQ1w0u8eZT2O4629AC/MOXPHdbVCX Ug9eKg3dpOhjTZPjV+gjfq1DAnb6dgaZF2L6wyJx9lK/0c3URbbq87U1oJiezbNoMHeN wb7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=xp7tXXLPMDYdofl4qf4Gl9td/1mRU85TsGKFUiJpwew=; b=z3A8DunjqAZuykByvBmFlONaRXq6lXBHletNlxZhMmLtKv2CX6Fw9H2ff8+fzWF4cW PefXKqweFYp72Gvfov27BuvRenQLwPTMnZmd58OzfIenfOtrlgFIMqm1P2GJgT6Cit2l qBdH5i2FnC+SSoP26aAZVhMwrhVQVJOaXilg7elGaunOztFbt5kp/td1p03sfJiZMMVB mkIIe9pQVLxX1Dyx+0JyaoHbdq5rxZzz3u02NI3vlkcihHkmd/kDiVgp39ZHkwOT6boA sBdQ4UfSWJXZjsOZe8Mi540JYR7LPEFsiMjEMNOC6CWwapmq7AL91vrrGpv4sym3Yt5m 2XSw== X-Gm-Message-State: ACgBeo2bcYWge2eq8V8W8fEI6NiklMblQGIys8oxbNDbimOgIieloWY0 rmBctu9dyOLOUOPnspKaMQPdW8cp+mwUosi9O9Xljg== X-Received: by 2002:a05:6402:71a:b0:447:ebb2:18f2 with SMTP id w26-20020a056402071a00b00447ebb218f2mr19879155edx.408.1661950813923; Wed, 31 Aug 2022 06:00:13 -0700 (PDT) MIME-Version: 1.0 References: <20220828154904.20477-1-farbere@amazon.com> In-Reply-To: <20220828154904.20477-1-farbere@amazon.com> From: Bartosz Golaszewski Date: Wed, 31 Aug 2022 15:00:03 +0200 Message-ID: Subject: Re: [PATCH v3 0/2] add power-supply control to enable eeprom usage To: Eliav Farber Cc: Rob Herring , Mark Rutland , Arnd Bergmann , Greg Kroah-Hartman , linux-i2c , devicetree , Linux Kernel Mailing List , talel@amazon.com, hhhawa@amazon.com, jonnyc@amazon.com, hanochu@amazon.com, ronenk@amazon.com, itamark@amazon.com, shellykz@amazon.com, shorer@amazon.com, amitlavi@amazon.com, almogbs@amazon.com, dkl@amazon.com, dwmw@amazon.co.uk Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 28, 2022 at 5:49 PM Eliav Farber wrote: > > First patch describes the new binding property. > Second patch adds the functionality to the driver. > > Change between v3 and v2: > - Apply on top of v6.0-rc1. > > Change between v2 and v1: > - Use a gpio regulator for power-supply control. > > Eliav Farber (2): > dt-bindings: at24: add new optional power-supply property > eeprom: at24: add support for power-supply control > > .../devicetree/bindings/eeprom/at24.yaml | 4 ++ > drivers/misc/eeprom/at24.c | 40 +++++++++++++++++++ > 2 files changed, 44 insertions(+) > > -- > 2.37.1 > What is the difference between this and the existing "vcc" regulator? Why are you going through all the hoops in probe if a regular regulator_get() will return a dummy regulator if the supply is not found? Bart