From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796134491; b=oMs2ISkLpfR/z6xw6reKh4fWo4L6jVRmlQ6aBs+n9kNNZ8uySWdckyltKfv1N9zbRBlH U+joZufmf9pQSvgU/VmBni/dkV98G0Sku1vL+21igQpDkHVlP0aQflzA4O6kkAFMzywtN kssvEf5VNGuC+l6XD9rDwM4FqbyIHfC0nWb8xc14LNC5V4ztK+dWCwrhbREeH75nt+v1M yMspI6XT6mgcYvsEPPq0HXKpov3jzbvI1+4xQbdVYb4RehZ9D1oDtVRXEIvPTSDhgf3SM o0rbojCRGrhK+2YbrJSX2L6a5wvoUMKgWGbIina7JnsNHSvuCZMAt6f9s4lLFS+9tdg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796134491; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:Date:To:cc: Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type: Content-ID; bh=WwAUhm+IRc1jUMvnwQHDI1cMtaSeM3WJslnES59wMmQ=; b=PMttnD+ZIgI2M2UoTMzHzcK3ijf1WO6+Xc7zoi9sPeo/ag8jDerjKOPxS1+6pu0iJtz9 1RZk64ZaFpWdllU0ci+y75jQqBSP5jr3cTCdqccYEicrr5UDEzsHbs/V7oWtqQaaE403R fc79hW/QbkUl4jdg7ktq8lzq5gOfeZJ1tAtYdL9UZ6PGyqGdVyrbzVPt124Qq0xbv9hlS CqEqMNGxFk1os2dF/qwXpPnocgkfGHRi6i6jmg5XWEKZWX8sCs2jKaXRo5K5eEBjQFIWk qbtlukqLQJyJ2aCYsjtOBmN8p8RIVfV8syr+p6WP1ll1Q7k5RgPVGV9wP64L22i0fQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=e8NvQxPY; arc=none smtp.remote-ip=198.175.65.18 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B26CE606A31A; Tue, 1 Dec 2026 14:14:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B26CE606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=e8NvQxPY DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796134491; x=1827670491; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=WwAUhm+IRc1jUMvnwQHDI1cMtaSeM3WJslnES59wMmQ=; b=e8NvQxPYvem+JN40gjGdX8ZlE8AyxtkdboKiDGk5zrcRAXpkWRRi9pwL g3y6oy5jO812Feuby7jmjFbu8zYi3VR6Iv9ZShaaTXKx+kJaw8KSmb3Sw Fh/fS1dx7O7dmikTm1mEGUsZ+Z7mINRoSFPHJWcCqlp6wLK8gGyBJ8X1/ 8GgkO9uERu5G0gHe30ms928j/0Tv7J7k+5LsHVRmqzSsg1dcTk1cZ7ryZ RfSbAq+JH+fMzWiDPtd1VlLKmuRTmWW3xxd5FzbJ6d8eB02sMUH11OIo9 6LvGQN3aOaIk/eqvS5H2xOmzISGDIvPJl4GX4uV4GbShMW31v2igWQ8yJ g==; X-CSE-ConnectionGUID: p/wMAiYZSdaf3xRplA9N9Q== X-CSE-MsgGUID: 46FTaXYjRGSGMayNCt/wxQ== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="5018407" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="5018407" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 06:14:50 -0800 X-CSE-ConnectionGUID: LySz4ls3QdORnOmyCYOhRw== X-CSE-MsgGUID: 675aGhqPQMyhwEgDg+CGUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13543436" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.245.21]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 06:14:47 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Tue, 1 Dec 2026 16:14:43 +0200 (EET) To: Armin Wolf cc: Hans de Goede , platform-driver-x86@vger.kernel.org, LKML , bifangknt@qq.com, nicokessler@icloud.com, sre@kernel.org, linux-pm@vger.kernel.org, wse@tuxedocomputers.com Subject: Re: [PATCH v2 1/9] power: supply: core: Add power_supply_has_property_direct() In-Reply-To: Message-ID: References: <20261110165318.631010-1-W_Armin@gmx.de> <20261110165318.631010-2-W_Armin@gmx.de> <1bea8907-a958-0f4c-3340-f7b0bde58435@linux.intel.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323328-1032315467-1796134223=:1168" Content-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1032315467-1796134223=:1168 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <0973fb76-287e-8374-4efa-01eaa61f4e84@linux.intel.com> On Tue, 1 Dec 2026, Armin Wolf wrote: > Am 01.12.26 um 13:29 schrieb Ilpo J=E4rvinen: > > On Tue, 10 Nov 2026, Armin Wolf wrote: > >=20 > > > Providers of power supply extensions might want to check if a given > > > power supply supports a given property in order to select a suitable > > > extension to load. > > >=20 > > > Add power_supply_has_property_direct() to enable such use cases. > > >=20 > > > Signed-off-by: Armin Wolf > > > --- > > > drivers/power/supply/power_supply_core.c | 26 ++++++++++++++++++++-= --- > > > include/linux/power_supply.h | 1 + > > > 2 files changed, 23 insertions(+), 4 deletions(-) > > >=20 > > > diff --git a/drivers/power/supply/power_supply_core.c > > > b/drivers/power/supply/power_supply_core.c > > > index 1cc203f2780b..75b53aec5db4 100644 > > > --- a/drivers/power/supply/power_supply_core.c > > > +++ b/drivers/power/supply/power_supply_core.c > > > @@ -1367,17 +1367,35 @@ bool power_supply_ext_has_property(const stru= ct > > > power_supply_ext *psy_ext, > > > =09return false; > > > } > > > -bool power_supply_has_property(struct power_supply *psy, > > > -=09=09=09 enum power_supply_property psp) > > > +/** > > > + * power_supply_has_property_direct - Check if a power supply proper= ty > > > exists without checking > > > + *=09=09=09=09 for extensions > > > + * @psy: The power supply > > > + * @psp: The power supply property to check > > > + * > > > + * Check if a given power supply support a given power supply proper= ty > > > without taking into account > > > + * any power supply extesions registered on said power supply. This = is > > > mostly useful for determining > > > + * if a power supply extension should be registered for the power su= pply > > > or not. > >=20 > > Please fix the minor errors mentioned by sashiko. > >=20 > > It would save me some time if you'd proactively look at sashiko's > > reports for your own work and fix obvious findings without me having to > > specifically ask for that. It's much more useful way to spend time when > > than pinging me. ;-) > >=20 > > I'd also prefer the comment is limited to 80 chars. > >=20 > > For the entire series once this is fixed: > >=20 > > Reviewed-by: Ilpo J=E4rvinen > >=20 >=20 > Sorry for wasting your time, i assumed that complains from Sashiko are > delivered via mail. It seems that only some mailing list have this, so > i wrongly thought that everything was fine :/ It's a balancing act. Auto-sending reports is not currentlt enabled=20 because I don't want newcomers to face massive reports about pre-existing= =20 issues. I've considered asking this to be changed because sashiko has=20 gotten significant better in not reporting gazillions of old issues for=20 every patch (many of which are low value anyway relating to rollback and=20 remove corner cases).=20 We have lots of first time submitters compared to other areas as there are= =20 plenty of devices we cannot test ourselves and having them fight with an=20 AI review bot that never tires in finding more and more pre-existing=20 issues might quickly become counterproductive. > I will fix any findings and send a v3 series. Thanks. --=20 i. --8323328-1032315467-1796134223=:1168--