All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Vladimir Yerilov <openmindead@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
	Benjamin Berg <bberg@redhat.com>,
	linux-usb@vger.kernel.org
Subject: Re: Fwd: Power supply detection issue caused by ucsi_psy?
Date: Tue, 10 Nov 2020 12:30:40 +0200	[thread overview]
Message-ID: <20201110103040.GD1224435@kuha.fi.intel.com> (raw)
In-Reply-To: <CAB31r6Wq5c7n=Ywdq1KAgRZFemH6Wx2b-9tq46k=ipZrqarmdA@mail.gmail.com>

On Tue, Nov 10, 2020 at 08:22:31PM +1000, Vladimir Yerilov wrote:
> It worked! You're a wizard sir, thank you!
> :D

Excellent!

+Greg, Benjamin and the list.

> вт, 10 нояб. 2020 г. в 18:31, Heikki Krogerus <heikki.krogerus@linux.intel.com>:
> >
> > Hi Vladimir,
> >
> > On Tue, Nov 10, 2020 at 03:02:40AM +1000, Vladimir Yerilov wrote:
> > > Forwarding to y'all.
> > >
> > > Just some extra info:
> > > `cat /sys/class/power_supply/ucsi-source-psy-USBC000:001/online` shows
> > > zero when the cable is unplugged, same for
> > > `/sys/class/power_supply/ADP0/online` status, but that means nothing
> > > for upower and all system services considering that there a power
> > > source available and not setting display brightness and other
> > > parameters due to that.
> > > Checked in Ubuntu as well, same situation with their kernel 5.8.
> >
> > Please try to avoid top-posting.
> >
> > It seems that the ucsi psy does not report any changes. That is one
> > obvious bug that I can see.
> >
> > I'm attaching a patch to fix that. Can you give it a try?

thanks,

-- 
heikki

      parent reply	other threads:[~2020-11-10 10:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09 10:48 Power supply detection issue caused by ucsi_psy? Vladimir Yerilov
2020-11-09 11:20 ` Heikki Krogerus
2020-11-09 11:36   ` Benjamin Berg
2020-11-09 12:55     ` Vladimir Yerilov
     [not found]     ` <CAB31r6XWQqM-kLYm4vb8H=45grhuwsHDYT94y5QJZVtP8w_sXg@mail.gmail.com>
2020-11-09 17:02       ` Fwd: " Vladimir Yerilov
2020-11-10  8:31         ` Heikki Krogerus
2020-11-10 10:15           ` Heikki Krogerus
     [not found]           ` <CAB31r6Wq5c7n=Ywdq1KAgRZFemH6Wx2b-9tq46k=ipZrqarmdA@mail.gmail.com>
2020-11-10 10:30             ` Heikki Krogerus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201110103040.GD1224435@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=bberg@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=openmindead@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.