Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1427662rwd; Wed, 31 May 2023 13:55:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qXHGOmrkjZuv4I94lGnCpeGuoQxeuG2z7JrtZODVpnMfYbiLbGiUMjGJ2HEN2428MOCBY X-Received: by 2002:a05:6a00:2393:b0:64d:2a87:2596 with SMTP id f19-20020a056a00239300b0064d2a872596mr9827842pfc.10.1685566541172; Wed, 31 May 2023 13:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685566541; cv=none; d=google.com; s=arc-20160816; b=Cs29ClrEiYNxWuN+olO3s+PhUhJPArbWPgDLirccigFQPIiwT5/pWFozIBsO2vYB0l d1LajBMKo8R17WdGvxpSZDy5STCPKd+TG6gb9rjk2m/51vchFNIRLP7A6DX+jFOSpDMy 8S6oWVIIoa8Yf7PVt89c5K74d+uR0+F4PmLObKPQr9zEqmIfwNmxs+Vhcelp2EOnpewS iKnA8QWUj9wZ9H3k9sS1fpceJ5UgVeXH2vl+Z8KHwBCFeHOGrjcUhsBCEpy1cmofUcCi MK0fNlY4GCZ3qyYIEOw2jRzUAvqtFCdnYRxN+T5XosWjKmQnZIEbChSdmk9x8SN/xnEi OqVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6OgdwRPEVOAnUypYBZcbRGwsqbPIwbDvaah8upw7a50=; b=ihV80JTg6Xux+S/YAWXLbxPsYJLkWFfA+0sdmb528htMOEguoc02hH9W9JgcduD/db XmqhH5LSYRPQ4G+DcvQDv4awv6EIeY11xCS8JbNop25X0HTeVLBSDDTmtciIb7uxv8TN GjX3FP4nGnjIpvUPiUIl2w2FsjICTiCr9kVDIQsOta/tZM7bvWwEWkG9WtunhET2DqNz DyrXF4gshFo3/4GWJV1iP4xHKq+R8xzNiLZi15uIFzsbHnNOKN2UX/7lYbrdaY3L8hSX eyhzDZYWO50Gd78X/U19YDzc5U5oamWhCEbXcKyHDhu7tts1fzKz6rD73vNdH663tPEb bSoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=sch8Ao8h; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y73-20020a638a4c000000b00530725b58a1si1686365pgd.24.2023.05.31.13.55.28; Wed, 31 May 2023 13:55:41 -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=@rocketmail.com header.s=s2048 header.b=sch8Ao8h; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbjEaUVm (ORCPT + 99 others); Wed, 31 May 2023 16:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjEaUVl (ORCPT ); Wed, 31 May 2023 16:21:41 -0400 Received: from sonic312-26.consmr.mail.ir2.yahoo.com (sonic312-26.consmr.mail.ir2.yahoo.com [77.238.178.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E1E126 for ; Wed, 31 May 2023 13:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1685564496; bh=6OgdwRPEVOAnUypYBZcbRGwsqbPIwbDvaah8upw7a50=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=sch8Ao8he/yAvlM9s41ZXYOjCyH9fpBAzm0+RmlPq751Q+c8Z6x5V4SWoUTDNX7SAvvFSHK5VsA3MAcXRBNi5TohJnsDPtqgTeGIKnsmSEo1EYj0DL8m9NNmwW0DkNEqYp98JP7mSo869E4i15SZD7n9QVibKQ0i0BnxTl63B+u8WSFgekXEy4KTKsu3oXLB1LCC0yrTdoOWPIfErgxFA0xYa80JQgzlC3faoDJ3jaq5GzhRd6MZTcPyY00GsLLngyjN2oKOdYsiqOJWix/S2xr7OsTuHGF7jJ29kVP2E6eTwIYfq2b7oXd7dl3r+K7cPuGhYeJ9COrg6T170VTE3Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685564496; bh=7Je2vZxEGGzhri1FBqIPmiqoPlQfNhqzCiWOlzzQpj+=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=scQl0fFzY1u3jol08gDwwEAjCyk9bDFJZvQuIt4446Se7mi6j4bAEZq1wCmy7TLBG7T1EGYdnTy2/YbIfRbi79DiIPWIH0MBkjFB+zV/1h278zBdABRaqUqS9dKABzhGOvS0iSbw3C4El5ZRHucp/as/oOGYfUfYZkvTt/4yw9ZAIaHB24BwP4GyGW0yMOS8msJS9Lx5Leswg3fPpVoCPbfdxDQmxQaAy5P0AuXVcKZu89fu4a5BDeovyo3Vaq4LejIcSO3CvTso1VEDd/WCM7UcXkczKUrqMs8TSEjp1M0J7bN/6cEZHJLVwmMb3AhJ0Y/Y7/MWMQ2slBLE5w8zLQ== X-YMail-OSG: 0eaclWIVM1lHU45eX7fNlAgMKec1QeirNvDCCEPzkSz41h.E6Dn4z6w.yXX6Qky DvMYxqXlR9fM.KuzF2UAZnE86SnlZ7H.MK8IkuUb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GBNodVGeyqfCuOATg4E27.mNf5wSWEu 5CwS9iqlrAWZGGXAP_BBst9Cub2yWqx2GUwMa8eYIJSZg0qcMXJ2_AehQQgkwF9HUEcBw8jwo_ze LNgwIpIgA X-Sonic-MF: X-Sonic-ID: 8b609f84-0906-48bc-8a41-980051ad6cc6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Wed, 31 May 2023 20:21:36 +0000 Received: by hermes--production-ir2-7867f454fc-ns8nf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID eb42ef6bd1d82c8aa9c19bb50c192c5e; Wed, 31 May 2023 20:21:35 +0000 (UTC) Message-ID: Date: Wed, 31 May 2023 22:21:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v6 00/10 RESEND] Add RT5033 charger device driver To: Sebastian Reichel , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Liam Girdwood , Mark Brown , Beomho Seo , Chanwoo Choi , Stephan Gerhold , Raymond Hackley , Pavel Machek , Axel Lin , ChiYuan Huang , Linus Walleij , Henrik Grimler , Christophe Jaillet , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: Content-Language: en-US From: Jakob Hauser In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Dear all, On 15.05.23 22:57, Jakob Hauser wrote: > This patchset adds the charger driver "rt5033-charger". It is part of the > multifunction device rt5033. The patchset is based on an older version by > Beomho Seo of March 2015. For more information on the history and setup of > the patchset see the cover sheet of version v1, there is a link further down > below the changelog. > > RESEND: Sorry for spamming. The first try of sending v6 got interrupted and > was split into two threads on the lore list. Therefore sending it again. > > Changes in v6: > - Patch 5: In function rt5033_charger_probe() after > calling rt5033_charger_dt_init() replaced the return value from "-ENODEV" > to "PTR_ERR(charger->chg)", as suggested by Christophe. > - Patch 9: Changed the patch from adding "power-supplies: true" to replacing > "additionalProperties: false" by "unevaluatedProperties: false", as > suggested by Krzysztof. > > v1: https://lore.kernel.org/linux-pm/cover.1677620677.git.jahau@rocketmail.com/T/#t > v2: https://lore.kernel.org/linux-pm/cover.1681646904.git.jahau@rocketmail.com/T/#t > v3: https://lore.kernel.org/linux-pm/cover.1682636929.git.jahau@rocketmail.com/T/#t > v4: https://lore.kernel.org/linux-pm/20230506155435.3005-1-jahau@rocketmail.com/T/#t > v5: https://lore.kernel.org/linux-pm/20230514123130.41172-1-jahau@rocketmail.com/T/#t > > The result of the patchset v6 can be seen at: > https://github.com/Jakko3/linux/blob/rt5033-charger_v6/drivers/power/supply/rt5033_charger.c What's missing on this patchset? I'm not familiar with the procedures. If all patches need ack's, then the ones for mfd (patches 2 & 4) and for dt-bindings (patch 10) are missing. Link to the current patchset v6: - on lore: https://lore.kernel.org/linux-pm/cover.1684182964.git.jahau@rocketmail.com/T/#t - on patchwork: https://patchwork.kernel.org/project/linux-pm/list/?series=747771&state=%2A&archive=both > Jakob Hauser (9): > mfd: rt5033: Fix chip revision readout > mfd: rt5033: Fix STAT_MASK, HZ_MASK and AICR defines > mfd: rt5033: Apply preparatory changes before adding rt5033-charger > driver > power: supply: rt5033_charger: Add RT5033 charger device driver > power: supply: rt5033_charger: Add cable detection and USB OTG supply > power: supply: rt5033_battery: Move struct rt5033_battery to battery > driver > power: supply: rt5033_battery: Adopt status property from charger > dt-bindings: power: supply: rt5033-battery: Apply > unevaluatedProperties > dt-bindings: Add rt5033 mfd, regulator and charger > > Stephan Gerhold (1): > mfd: rt5033: Drop rt5033-battery sub-device > > .../bindings/mfd/richtek,rt5033.yaml | 138 ++++ > .../power/supply/richtek,rt5033-battery.yaml | 2 +- > .../power/supply/richtek,rt5033-charger.yaml | 65 ++ > drivers/mfd/rt5033.c | 8 +- > drivers/power/supply/Kconfig | 8 + > drivers/power/supply/Makefile | 1 + > drivers/power/supply/rt5033_battery.c | 38 +- > drivers/power/supply/rt5033_charger.c | 744 ++++++++++++++++++ > include/linux/mfd/rt5033-private.h | 64 +- > include/linux/mfd/rt5033.h | 24 - > 10 files changed, 1034 insertions(+), 58 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mfd/richtek,rt5033.yaml > create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt5033-charger.yaml > create mode 100644 drivers/power/supply/rt5033_charger.c Kind regards, Jakob