[PATCH v1] usb: kbd: destroy device after console is stopped

Andy Shevchenko andy.shevchenko at gmail.com
Thu Jan 28 22:52:46 CET 2021


On Thu, Jan 28, 2021 at 10:47 PM Tom Rini <trini at konsulko.com> wrote:
> On Thu, Jan 28, 2021 at 10:35:37PM +0200, Andy Shevchenko wrote:
> > On Thu, Jan 28, 2021 at 06:19:56PM +0100, Nicolas Saenz Julienne wrote:
> > > On Thu, 2021-01-28 at 18:55 +0200, Andy Shevchenko wrote:

...

> > > Sadly this doesn't seem to work, and breaks a bunch of other tests in the
> > > process. You can try it yourself by running: './test/py/test.py --bd sandbox
> > > --build'
> >
> > Now I'm able to run test cases. I see some of them failing even without my
> > patch, but few definitely related. Can you give a list of failed ones on your
> > side?  I can compare that we are on the same page here.
>
> Running this here on sandbox I get:
> FAILED test/py/tests/test_ut.py::test_ut[ut_dm_bootcount] - OSError: [Errno 5] Input/output ...
> FAILED test/py/tests/test_ut.py::test_ut[ut_dm_usb_flash] - OSError: [Errno 5] Input/output ...
> FAILED test/py/tests/test_ut.py::test_ut[ut_dm_usb_multi] - OSError: [Errno 5] Input/output ...
> FAILED test/py/tests/test_ut.py::test_ut[ut_dm_video_ansi] - OSError: [Errno 5] Input/output...
>
> and those 4 are segfaults of sandbox.

Right, I have got the same. Thanks.

Actually it's a can of worms I have opened. I already see a mess with
the console assignment between devices.
I will check later how possibly to fix this (to some extent), today is
almost midnight here...

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list