lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230102221907.i474olwdaxjfbyns@mercury.elektranox.org>
Date:   Mon, 2 Jan 2023 23:19:07 +0100
From:   Sebastian Reichel <sebastian.reichel@...labora.com>
To:     Grant Grundler <grundler@...omium.org>
Cc:     Guenter Roeck <groeck@...gle.com>,
        Benson Leung <bleung@...omium.org>,
        Guenter Roeck <groeck@...omium.org>,
        chrome-platform@...ts.linux.dev, linux-pm@...r.kernel.org,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] power: supply: cros_usbpd: reclassify "default case!" as
 debug

Hi,

Thanks, queued to power-supply's fixes branch.

-- Sebastian

On Thu, Dec 29, 2022 at 11:53:55PM -0800, Grant Grundler wrote:
> Hi Sebastian, linux-pm folks, Benson,
> Can I get feedback on this patch please?
> 
> I was just told another user feedback report had 70% of the dmesg buffer
> filled with the cros-usbpd-charger output.
> 
> cheers,
> grant
> 
> 
> On Mon, Dec 12, 2022 at 1:49 PM Guenter Roeck <groeck@...gle.com> wrote:
> 
> > On Mon, Dec 12, 2022 at 1:39 PM Grant Grundler <grundler@...omium.org>
> > wrote:
> > >
> > > This doesn't need to be printed every second as an error:
> > > ...
> > > <3>[17438.628385] cros-usbpd-charger cros-usbpd-charger.3.auto: Port 1:
> > default case!
> > > <3>[17439.634176] cros-usbpd-charger cros-usbpd-charger.3.auto: Port 1:
> > default case!
> > > <3>[17440.640298] cros-usbpd-charger cros-usbpd-charger.3.auto: Port 1:
> > default case!
> > > ...
> > >
> > > Reduce priority from ERROR to DEBUG.
> > >
> > > Signed-off-by: Grant Grundler <grundler@...omium.org>
> >
> > Reviewed-by: Guenter Roeck <groeck@...omium.org>
> >
> > >
> > > ---
> > >  drivers/power/supply/cros_usbpd-charger.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/power/supply/cros_usbpd-charger.c
> > b/drivers/power/supply/cros_usbpd-charger.c
> > > index cadb6a0c2cc7..b6c96376776a 100644
> > > --- a/drivers/power/supply/cros_usbpd-charger.c
> > > +++ b/drivers/power/supply/cros_usbpd-charger.c
> > > @@ -276,7 +276,7 @@ static int cros_usbpd_charger_get_power_info(struct
> > port_data *port)
> > >                 port->psy_current_max = 0;
> > >                 break;
> > >         default:
> > > -               dev_err(dev, "Port %d: default case!\n",
> > port->port_number);
> > > +               dev_dbg(dev, "Port %d: default case!\n",
> > port->port_number);
> > >                 port->psy_usb_type = POWER_SUPPLY_USB_TYPE_SDP;
> > >         }
> > >
> > > --
> > > 2.39.0.rc1.256.g54fd8350bd-goog
> > >
> >

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ