Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9928pxu; Tue, 1 Dec 2020 05:04:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6O3X03Ekknzb4cp6Pen4mozNRLiKA9+d+duwHzlAwcP6suOOOJ7PZl7mcp/K8mr1GeNUY X-Received: by 2002:a17:906:6010:: with SMTP id o16mr2911624ejj.55.1606827852561; Tue, 01 Dec 2020 05:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606827852; cv=none; d=google.com; s=arc-20160816; b=EiHmBk9QSqiUHEWf3KeCjxGpjbNqpugRsOoinPKfnQL1gMNMlwbFOI2xVOO9jjtvbq Bos8iOYulaV6hd7p6cyd+KqgTe5AFiZGP68FMwttH/Timec9a2qhzsy/FYDJDhLjN4WD dJpSJbW/I7cvWLsiEwlf+GiirIbxeRR6R58bvqm2IejWxdxnumqsgrryl3+tCTwsTFpV jOMIo2tA6DR8J3WONVNUAUoYSC7QK1/B9LyIjc0XAQ8ue7Teb8DcB+mIJfxixfEZzyeJ hNXqDsUM1M7gmXNq8FOSJgGoVBUVAZFgn8tUSvwV+B00Caj/MrlZu0Yj1Glz02OwPgOq NrnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=vGoqysaTf/j4lArzjdKeI86oWCBoGQby5HAzPcL8d4U=; b=zXQ8MGWENN9IIcMr2D7dIDd5fc8a4ub8KT57Y5ve/W+7nUoAsktUfxYdTxE/RkqXEq sgneRC/AK7RgrD53CAzqRBw+d1fmcixLLSs5eJPATzPw+G2Qrfl4PyuM/g+A3OSREE6q tUtWKAJDfB8n9bls0qtwVaEyI2u6QXEhlqEgbJmAq9tZzIfxlxNc+YGGnMgKqvAKFqTz 7QK2FliYyBbttu+CNCRlrNHKQKQZ3H3SPMP08gbxJ/8L+jGtirWOEDd0V8svr0gDofJO Ql46hMLMDHZ0dz8QHH/3t+3VNwZXgqx3oqvZuQWktPzu14KOb1Wnyui4B+LqN0tOI1/6 OXkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si1043585edw.587.2020.12.01.05.03.49; Tue, 01 Dec 2020 05:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730647AbgLANAf (ORCPT + 99 others); Tue, 1 Dec 2020 08:00:35 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:44918 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbgLANAe (ORCPT ); Tue, 1 Dec 2020 08:00:34 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id DED5CFB05; Tue, 1 Dec 2020 13:59:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MgI_jk9lB2pJ; Tue, 1 Dec 2020 13:59:50 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 4289E4068E; Tue, 1 Dec 2020 13:59:50 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v4 0/2] usb: typec: tps6598x: Export some power supply properties Date: Tue, 1 Dec 2020 13:59:48 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows downstream supplies and userspace to detect whether external power is supplied. The Librem 5 has the tp65982 in front of bq25980 charge controller. Since that is capable of sinking and sourcing power the online property helps to decide what to do. It also makes upower happy. There will be follow up patches providing more properties but these need some more time to cook and i wanted to check if this is the right way to go? changes from v3 - As per review comments from Andy Shevchenko https://lore.kernel.org/linux-usb/CAHp75VeLZtm85Y=3QMkPGb332wn05-zr-_mrrwXvnqLhazR1Gg@mail.gmail.com/ - Use positive conditionals - Add reviewed by from Heikki Krogerus https://lore.kernel.org/linux-usb/20201130102720.GA2911464@kuha.fi.intel.com/T/#u https://lore.kernel.org/linux-usb/20201130102942.GB2911464@kuha.fi.intel.com/T/#u - Fix typc vs typec typo in commit message changes from v2 - As per kernel test robot https://lore.kernel.org/linux-usb/202011271005.zJVawX74-lkp@intel.com/ - Flip USB_ROLE_SWITCH and REGMAP_I2C from 'depends on' to 'select' This matches tcpm and avoids a config symbol recursion which went unnoticed on my arm64 build but trips up x86_64. changes from v1 - As per review comments from Heikki Krogerus https://lore.kernel.org/linux-usb/20201126123552.GP1008337@kuha.fi.intel.com/ - select POWER_SUPPLY - use POWER_SUPPLY_USB_TYPE_PD when a PD contract got negotiated To: Heikki Krogerus ,Greg Kroah-Hartman ,linux-usb@vger.kernel.org,linux-kernel@vger.kernel.org,Andy Shevchenko Guido Günther (2): usb: typec: tps6598x: Select USB_ROLE_SWITCH and REGMAP_I2C usb: typec: tps6598x: Export some power supply properties drivers/usb/typec/Kconfig | 5 +- drivers/usb/typec/tps6598x.c | 105 +++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 2 deletions(-) -- 2.29.2