Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4855206rwr; Mon, 8 May 2023 13:47:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vLnnjWxwYfbipEPhdGsuvzlqoPvrJ0XJ1CLCnCAC09nIulIGpufxjTT143Vff9IEtTIxH X-Received: by 2002:a05:6a00:cc8:b0:644:d220:64ac with SMTP id b8-20020a056a000cc800b00644d22064acmr10223330pfv.2.1683578827943; Mon, 08 May 2023 13:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683578827; cv=none; d=google.com; s=arc-20160816; b=HyjsGd+1GcpiNCaIqQJnaL9luwggtpZ7bodk+1ztgwvbIy+OCP5DaXnL6jc0Umf9dP 5kz2AL1YxQaK1qxgRjfy8oSdOUP7Bodz9cOevEnK+hZ2g3Q3y9vGuW9EEGo/lu1ijVhh MJxeom3BIcxvqUY9/xTdJuU+CJgoaKruQ1W8rIhp3l44E8Dbhpvzt5CQlfMWdzElHr1t AyHNTrLq5CpqvCLf4hYFmSMNFut+Mx3TKYGf9Yoc5NGSjwrIkjEddvgWVzyLMkNfhO/7 76sB6oXV20TX2XoTD6o2wMyFXcD1tbNO4ZY/u10qs41WWvrA8ZiuLjzzF3DPX8ynQZkG cI+Q== 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=t4+SrCPMdRcrKZEemyCVdw3uY83K6P9r2Nkbak5C0J0=; b=WR6DjnLAqJdV4K0IUSzH/L0n0YHOGN5/aJdI4xcKYTo+n7rGmz4AFsKU8LTvUg0uQe df0HMkb3KGQe7l9eSVphiEHrW+T3Aa0HsYXjJ5PMIgiYYznjUJ1CaC/XapN9NTulGwaO mwLW1ar6c1rFzMwxBI5ncrMpp1eNi7LQ6jSH4A2DgQ+PY498X5agplMVH3gprT+nYagy 1rMdEZ/sOyUgY98znv9KxYl/Y/X8FcKhqPRQmfi9RNt72VCqx1qUEXyzcLRxnKDCCF8W xDOYTTwM6K1GeS/y6ZfxcOde6VKd1HMwXVA6tGUJHZ0jiDHGpfm7MDVQm42BN+i7NIvf CRIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=UmZU77Eo; 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 i18-20020aa796f2000000b0063b1b437e53si641826pfq.306.2023.05.08.13.46.55; Mon, 08 May 2023 13:47:07 -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=UmZU77Eo; 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 S233238AbjEHUhL (ORCPT + 99 others); Mon, 8 May 2023 16:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232941AbjEHUhJ (ORCPT ); Mon, 8 May 2023 16:37:09 -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 4D96D558F for ; Mon, 8 May 2023 13:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1683578226; bh=t4+SrCPMdRcrKZEemyCVdw3uY83K6P9r2Nkbak5C0J0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=UmZU77EogypVMy21ccwpymNjkFS/Sg+PiTuzjfAr21uubAbLTRqUvrpSz+Sr+YjStisMbgAi+TNxL1kQh8QGNWAcvhWs39zsVfcagjYbF2MJqDCY+hh045m8Xl1tms5y+ALSS3u9TdYxCfye0tjIDzP1Dh3u3vnC93aKiij/iW84p3IApPMCGv1eOcnBxFd43Fkw3v5frsE4tKvwYPaKTCtBu3Xjxal3jYX5nILzk/tOY9bxDKU6CkCglaLgslrB3P/+FypojXj5pb8Qa7QT3ukyguuH2NCqrYIvvlKW5TAqZoxZ5gkxRm5+XWv9F4OHF0RrNCh+/6vs0cFyNarcLQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683578226; bh=C4tr815zQmBO8Wf0Gsz6npblhY+d2wq3Ptw7Slh6ZGN=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=ZOlYJESBaTs/42RQbRxOih1RJUn1huBjkNq68sFaE+bgYDTYiNPPYDkFkQPa/BBf6RamJy+waGaZaCQOdIzLwdQ4hca/om5SyXwNYcasxxWI7P8lyH48bE4l815xc94C+H90d/MqhJ2TdDWa60adS/UeUveTocT5UHH1CXab3eEt0UtEQR4onc+8hCOomS9N7MgKRuGrcRZRCIJM+VTuQNskl3vkWDK17qYhN2KPHCu5fiEjo4GPXoMj+v+O6aoKBxTz8qyxCgGMUBrcW+FaUDG4loNBXpqUGMHHnyGK4/i+FNJRUpCvZW73NHtV52H91oxXyUf3E4TSzCSUVOms+g== X-YMail-OSG: NuhPGH8VM1kycUfNI86TPRU.19yU3NIJso6_CaXPB062ZVMYAhxAnpsr..JxcWD 9tGvzkYTWHZQRbATAt29w07korQT1LG3.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5zBFWQPzEtcG7VU59Wm7SvMYaVN3pxyCqTWdpml65AgGwmPXas gQrRWPRJ8VuvDcx7KmPbJlP0EDJmCUPRVy3PkEmCYROf883IZbGme2rpldKaythu.hjc8ukR_zDC LQOc5Ih8- X-Sonic-MF: X-Sonic-ID: 8660b609-22ca-44ba-9f7d-d2ad45bf4bc0 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Mon, 8 May 2023 20:37:06 +0000 Received: by hermes--production-ir2-74cd8fc864-w4pg2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0defa889196eb91511a25a6013c239c4; Mon, 08 May 2023 20:37:01 +0000 (UTC) Message-ID: Date: Mon, 8 May 2023 22:36:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 6/8] power: supply: rt5033_charger: Add cable detection and USB OTG supply To: Sebastian Reichel Cc: Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Beomho Seo , Chanwoo Choi , Stephan Gerhold , Raymond Hackley , Pavel Machek , Axel Lin , ChiYuan Huang , Linus Walleij , Henrik Grimler , 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: <20230506155435.3005-1-jahau@rocketmail.com> <20230506155435.3005-7-jahau@rocketmail.com> <20230508114323.rzqbp2isvczzg3wx@mercury.elektranox.org> Content-Language: en-US From: Jakob Hauser In-Reply-To: <20230508114323.rzqbp2isvczzg3wx@mercury.elektranox.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.21417 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spam-Status: No, score=-3.9 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,SPF_HELO_NONE,SPF_PASS,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 Hi Sebastian, On 08.05.23 13:43, Sebastian Reichel wrote: > On Sat, May 06, 2023 at 05:54:33PM +0200, Jakob Hauser wrote: ... >> diff --git a/include/linux/mfd/rt5033.h b/include/linux/mfd/rt5033.h >> index e99e2ab0c1c1..d2c613764756 100644 >> --- a/include/linux/mfd/rt5033.h >> +++ b/include/linux/mfd/rt5033.h >> @@ -53,6 +53,14 @@ struct rt5033_charger { >> struct rt5033_dev *rt5033; >> struct power_supply *psy; >> struct rt5033_charger_data *chg; >> + struct extcon_dev *edev; >> + struct notifier_block extcon_nb; >> + struct work_struct extcon_work; >> + struct mutex lock; >> + bool online; >> + bool otg; >> + bool mivr_enabled; >> + u8 cv_regval; >> }; > > Please move 'struct rt5033_charger' and 'struct rt5033_charger_data' > to drivers/power/supply/rt5033_charger.c; they are not supposed to > be used directly by others. Making it private helps to avoid > cross-subsystem series for future maintanence patches. Makes sense, I'll change that. For completeness, I'll add an additional patch to move the 'struct rt5033_battery' [1] to drivers/power/supply/rt5033_battery.c. [1] https://github.com/torvalds/linux/blob/v6.4-rc1/include/linux/mfd/rt5033.h#L35-L40 Kind regards, Jakob