call usb_reset() prior to usb_close() to workaround hanging USB hardware
(#149027, #186766)
This commit is contained in:
parent
8ce3a6d247
commit
b08dfaad78
12
sane-backends-1.0.18-usb_reset.patch
Normal file
12
sane-backends-1.0.18-usb_reset.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- sane-backends-1.0.18/sanei/sanei_usb.c.usb_reset 2006-05-26 21:38:46.000000000 +0200
|
||||||
|
+++ sane-backends-1.0.18/sanei/sanei_usb.c 2007-06-15 15:16:50.000000000 +0200
|
||||||
|
@@ -1255,6 +1255,9 @@ sanei_usb_close (SANE_Int dn)
|
||||||
|
usb_resetep (devices[dn].libusb_handle, devices[dn].bulk_out_ep);
|
||||||
|
usb_resetep (devices[dn].libusb_handle, devices[dn].iso_in_ep);
|
||||||
|
#endif
|
||||||
|
+ /* Hack to work around hanging USB hardware */
|
||||||
|
+ usb_reset (devices[dn].libusb_handle);
|
||||||
|
+
|
||||||
|
usb_release_interface (devices[dn].libusb_handle,
|
||||||
|
devices[dn].interface_nr);
|
||||||
|
usb_close (devices[dn].libusb_handle);
|
@ -18,7 +18,7 @@
|
|||||||
Summary: Scanner access software
|
Summary: Scanner access software
|
||||||
Name: sane-backends
|
Name: sane-backends
|
||||||
Version: 1.0.18
|
Version: 1.0.18
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
|
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||||
@ -28,6 +28,7 @@ Patch2: sane-backends-1.0.12-badcode.patch
|
|||||||
Patch3: sane-backends-multilib.patch
|
Patch3: sane-backends-multilib.patch
|
||||||
Patch4: sane-backends-1.0.17-pkgconfig.patch
|
Patch4: sane-backends-1.0.17-pkgconfig.patch
|
||||||
Patch5: sane-backends-1.0.18-logical_vs_binary.patch
|
Patch5: sane-backends-1.0.18-logical_vs_binary.patch
|
||||||
|
Patch6: sane-backends-1.0.18-usb_reset.patch
|
||||||
URL: http://www.sane-project.org
|
URL: http://www.sane-project.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n)
|
||||||
BuildRequires: tetex-latex libusb-devel libieee1284-devel libjpeg-devel
|
BuildRequires: tetex-latex libusb-devel libieee1284-devel libjpeg-devel
|
||||||
@ -108,6 +109,7 @@ want to access digital cameras.
|
|||||||
%patch3 -p1 -b .multilib
|
%patch3 -p1 -b .multilib
|
||||||
%patch4 -p1 -b .pkgconfig
|
%patch4 -p1 -b .pkgconfig
|
||||||
%patch5 -p1 -b .logical_vs_binary
|
%patch5 -p1 -b .logical_vs_binary
|
||||||
|
%patch6 -p1 -b .usb_reset
|
||||||
|
|
||||||
# Fix bug #62847.
|
# Fix bug #62847.
|
||||||
perl -pi -e 's,/dev/usbscanner0?,/dev/usb/scanner0,' backend/*.conf
|
perl -pi -e 's,/dev/usbscanner0?,/dev/usb/scanner0,' backend/*.conf
|
||||||
@ -230,6 +232,10 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/pkgconfig/sane-backends.pc
|
%{_libdir}/pkgconfig/sane-backends.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 15 2007 Nils Philippsen <nphilipp@redhat.com> - 1.0.18-7
|
||||||
|
- call usb_reset() prior to usb_close() to workaround hanging USB hardware
|
||||||
|
(#149027, #186766)
|
||||||
|
|
||||||
* Tue Apr 24 2007 Nils Philippsen <nphilipp@redhat.com> - 1.0.18-6
|
* Tue Apr 24 2007 Nils Philippsen <nphilipp@redhat.com> - 1.0.18-6
|
||||||
- don't erroneously use logical "&&" instead of binary "&" at some places in
|
- don't erroneously use logical "&&" instead of binary "&" at some places in
|
||||||
the canon driver
|
the canon driver
|
||||||
|
Loading…
Reference in New Issue
Block a user