Re: USB "insertion" for permanently-connected devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2020-06-27 at 12:07 -0700, Samuel Sieb wrote:
> On 6/27/20 3:43 AM, Patrick O'Callaghan wrote:
> > On Fri, 2020-06-26 at 16:00 -0700, Samuel Sieb wrote:
> > > I messed around
> > > enough that I confused that USB controller and that entire bus was dead.
> > >    Fortunately, I managed to reset the controller and got it back by
> > > telling the driver to remove it and then add it back.
> > 
> > How did you do that? Did it involve physically pulling and reinserting
> > the drive?
> 
> Somehow I ended up in /sys/bus/pci/drivers/ehci-pci, but in your case it 
> might need to be /sys/bus/pci/drivers/xhci-pci since you're dealing with 
> a USB 3 device.  In there are links to the USB pci devices that are 
> managed by this driver.  From the logs you included, it would be 
> "0000:00:14.0" in your case.  Doing "echo 0000:00:14.0 > unbind" will 
> disconnect the entire usb bus on that device and "echo 0000:00:14.0 > 
> bind" will re-initialize it.

Interesting. I'll look into that.

> > (Note the message from mdadm. The RAID array has /dev/sdd and /dev/sde,
> > but, again, RAID has already been stopped before running udisksctl.)
> 
> I really have my doubts about that.  Something definitely still has the 
> drives open at this point.  How did you stop it?

echo 1 > /sys/block/sdd/device/delete
echo 1 > /sys/block/sde/device/delete

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux