Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp289130rwb; Thu, 18 Aug 2022 04:03:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Wzh80kD5Kwmt0iTqo7mUCE488ZKiHrgl9kITXnrVR2QMBvY1F4rklzvUsvSm3y1TzsSC1 X-Received: by 2002:a17:902:ea03:b0:170:a235:b72b with SMTP id s3-20020a170902ea0300b00170a235b72bmr2428092plg.13.1660820615800; Thu, 18 Aug 2022 04:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660820615; cv=none; d=google.com; s=arc-20160816; b=cr5bXznzObIktXRrZqKlspjXGU0vPhlLZNasX0aff/HxQuL5+ZL7KWfoNqPWaGUajS OgAu7s3NmwIZlgxUS9xZPSZSL8YvSpwfx7vAsoKGgNTgM9cdlPpWaBk41aDmtNNF0CQf Y34xlT4tv+ekqSobHqK5B2SeSLEtdFLC8Vyak50SUKaRTg0Xj3RDxkdinYVIQ/p3kzS2 VbSugfsKbcDvnL+Q6Tu0uJt3py8I+LSvWezgVmO+2/6X/iz6+FHIIaBvCdFPdpLqDx6C 8tNqc9JBfIA5XhMH3p+bWwmXfVSpCKKuiMfCzeFrc7pfov7tcZN40ho88YTQoumiF/CF SgbA== 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=9vZKSAmG8I4EgDVUcYaHeGxa/jI1j+UCbOHpxXjMwqc=; b=a/koYDv4MKs2XqIK1Yl7r4HNRfXkKjSB8WRBKO6hbHXLPbshJ0+DqqbOtboGhXQ8AJ uWwVF1Ase5qHXs2hIMzmTo42eUidLzVhemgHHdMojODHoSmNips2Lahy8HiCTZTuufEp mFTlt1zskN3rcseHzyuyap8tcFlwXxOyM9Gtgu23O9tVjplIY4Ph1kBEq4VMXx+cEWGv h8XdzHslHSnH6tvwZJEWSmVUneUHHOL0DH4ta9iXGxcFUXEIgcN3ZB4ippXSjtdOdADU fC3YIBaCrkJggPvnJynQjz/NCpoqnabjuHi/J3WxYoaLnP/k/nI8RYYE5sfy/MbsiWty ChCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eCt769iz; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a17090a1bc300b001fac782604csi1252890pjr.188.2022.08.18.04.03.23; Thu, 18 Aug 2022 04:03:35 -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=@gmail.com header.s=20210112 header.b=eCt769iz; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244106AbiHRKbA (ORCPT + 99 others); Thu, 18 Aug 2022 06:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244105AbiHRKaw (ORCPT ); Thu, 18 Aug 2022 06:30:52 -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 A09237EFFE; Thu, 18 Aug 2022 03:30:50 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id o22so1298274edc.10; Thu, 18 Aug 2022 03:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=9vZKSAmG8I4EgDVUcYaHeGxa/jI1j+UCbOHpxXjMwqc=; b=eCt769iz680T564gsrZwVhkuutB9GSfw3qDqOUTK1YlumPDVNF5fwumLp1OFQt90Ru eXWjF4hQagG1RnxctP8B53aKdP58tJXD8M3LSZr2Z4V+zkUnXSurv2BPUSlU4AMHD4xi lE9xObpZ9iwbov6Qd8PcHu56/Ze5M9X/VvUePgpkV8kapSEPtb4L+6fCxDcYcjn55FgP aU45C3njQJDLRzwhRu3Fc5KCAD6JK75tQrPkoJ78jobMg3Ugh847WU38NqIbacYyLd6h jYeSLMgnKYGP2wuBfCqEwtgko0HIpxrXtJJHxSEfxhDQMM6S/aG00nUNZGOTh+ew3mZq Ml0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=9vZKSAmG8I4EgDVUcYaHeGxa/jI1j+UCbOHpxXjMwqc=; b=vvki00Ez9kJzfh4AH6GTuR4q0/7w3zCosi8/XzT8GPPCizgWvTea1TwoybGpM4QqvY sJg9+bDmZgvj3Yh5a+S7NHWZettKZCxVS9TVYAlrAPciZlSYr+2khotFfKnOn+wdbe+7 OB3aeo8Z36PHNzxQFqu6f55wOhDLJyjmDLg2mhll7l8zzliKPshSkMnI7fDlVdwdIccB ikZheqY7XVMuolPogS/3+bIwdHah+8me+bpKt7n4a8xTmbeswam85ZTXskrCBKlhIpnu oazBJ2ypOO+ZYvZyr3WAiLKxlt8aYBdSN9dzkAAqyjnjMHFfds7jryA/nE+Jm176gy8N E6+Q== X-Gm-Message-State: ACgBeo1i6G8Xl4Eo1VIlupCmkxc2iMv8f5dZAgeVJs13lbCyPfxnaKTQ 2QpHGPVk347H6za50HUvSBLXB4a5B2j8ns9hXdls2oQE X-Received: by 2002:a05:6402:438d:b0:43d:b383:660f with SMTP id o13-20020a056402438d00b0043db383660fmr1725007edc.283.1660818649081; Thu, 18 Aug 2022 03:30:49 -0700 (PDT) MIME-Version: 1.0 References: <1660785696-9010-1-git-send-email-u0084500@gmail.com> <1660785696-9010-3-git-send-email-u0084500@gmail.com> <85193de5-244c-2cda-e442-656769b97b14@linaro.org> In-Reply-To: From: ChiYuan Huang Date: Thu, 18 Aug 2022 18:30:38 +0800 Message-ID: Subject: Re: [PATCH v3 2/2] power: supply: rt9471: Add Richtek RT9471 charger driver To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Sebastian Reichel , Matti Vaittinen , =?UTF-8?B?5ri45a2Q6aao?= , cy_huang , alinayu829@gmail.com, Linux PM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Krzysztof Kozlowski =E6=96=BC 2022=E5=B9= =B48=E6=9C=8818=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=886:18=E5=AF=AB= =E9=81=93=EF=BC=9A > > On 18/08/2022 13:16, ChiYuan Huang wrote: > > Krzysztof Kozlowski =E6=96=BC 2022=E5= =B9=B48=E6=9C=8818=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=884:09=E5=AF= =AB=E9=81=93=EF=BC=9A > >> > >> On 18/08/2022 04:21, cy_huang wrote: > >>> From: ChiYuan Huang > >>> > >>> Add support for the RT9471 3A 1-Cell Li+ battery charger. > >>> > >>> The RT9471 is a highly-integrated 3A switch mode battery charger with > >>> low impedance power path to better optimize the charging efficiency. > >>> > >>> Co-developed-by: Alina Yu > >>> Signed-off-by: Alina Yu > >>> Signed-off-by: ChiYuan Huang > >>> --- > >>> Since v2: > >>> - Fix checkpatch error about 'foo * bar' to 'foo *bar' in psy_device_= to_chip function. > >>> - Specify the member name directly for the use of linear range. > >>> > >>> --- > >> > >> (...) > >> > >>> + > >>> +static DEVICE_ATTR_RW(sysoff_enable); > >>> +static DEVICE_ATTR_RW(charge_term_enable); > >>> +static DEVICE_ATTR_RW(port_detect_enable); > >>> + > >>> +static struct attribute *rt9471_sysfs_entries[] =3D { > >>> + &dev_attr_sysoff_enable.attr, > >>> + &dev_attr_charge_term_enable.attr, > >>> + &dev_attr_port_detect_enable.attr, > >>> + NULL > >> > >> You need to document the sysfs ABI in Documentation. > > Can it be define in 'sysfs-class-power' or a dedicated file called > > 'sysfs-class-power-rt9471'? > > Not sure which one is better. > > I don't know what is Sebastian's preference. You can wait for his input > or do similarly as last patches reviewed/picked up by him. M... OK. Whatever the preference is, at least, I can prepare the ABI contents first. > > Best regards, > Krzysztof