Re: 2.6.23-rcX SG_GET_SCSI_ID regression?

2007-10-03 Thread Joerg Platte
Am Mittwoch, 3. Oktober 2007 schrieb Joerg Platte:
Hi,

> 2.6.22.8:
> open("/dev/scanner", O_RDWR|O_NONBLOCK|O_EXCL) = 3
> ioctl(3, SG_SET_TIMEOUT, 0xbfe40624)= 0
> ioctl(3, SG_GET_VERSION_NUM, 0x8063fa4) = 0
> ioctl(3, SG_GET_SCSI_ID, 0xbfe405e0)= 0
>
> 2.6.23-rc9:
> open("/dev/scanner", O_RDWR|O_NONBLOCK|O_EXCL) = 3
> ioctl(3, SG_SET_TIMEOUT, 0xbf84a834)= 0
> ioctl(3, SG_GET_VERSION_NUM, 0x8062524) = 0
> ioctl(3, SG_GET_SCSI_ID, 0xbf84a7f0)= -1 ENOTTY (Inappropriate ioctl
> for device)

After some reboots and tests I discovered, that this error occurs only when 
the scanner was turned off during system boot and was discovered later by 
invoking the following script:
for device in /sys/class/scsi_host/host*/scan ; do
echo "0 - -" > $device
done
With 2.6.22 and before the scanner was fully functional when discovered by a 
bus rescan.

regards,
Jörg

-- 
PGP Key: send mail with subject 'SEND PGP-KEY' PGP Key-ID: FD 4E 21 1D
PGP Fingerprint: 388A872AFC5649D3 BCEC65778BE0C605

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


2.6.23-rcX SG_GET_SCSI_ID regression?

2007-10-03 Thread Joerg Platte
Hi,

sane is not able to detect my old SCSI scanner with kernel 2.6.23-rc9. The 
scanner was found with 2.6.22.8. According to strace the behavior of the 
SG_GET_SCSI_ID ioctl changed:

2.6.22.8:
open("/dev/scanner", O_RDWR|O_NONBLOCK|O_EXCL) = 3
ioctl(3, SG_SET_TIMEOUT, 0xbfe40624)= 0
ioctl(3, SG_GET_VERSION_NUM, 0x8063fa4) = 0
ioctl(3, SG_GET_SCSI_ID, 0xbfe405e0)= 0

2.6.23-rc9:
open("/dev/scanner", O_RDWR|O_NONBLOCK|O_EXCL) = 3
ioctl(3, SG_SET_TIMEOUT, 0xbf84a834)= 0
ioctl(3, SG_GET_VERSION_NUM, 0x8062524) = 0
ioctl(3, SG_GET_SCSI_ID, 0xbf84a7f0)= -1 ENOTTY (Inappropriate ioctl for 
device)

Is this an intentional change?

regards,
Jörg

-- 
PGP Key: send mail with subject 'SEND PGP-KEY' PGP Key-ID: FD 4E 21 1D
PGP Fingerprint: 388A872AFC5649D3 BCEC65778BE0C605

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


2.6.23-rcX SG_GET_SCSI_ID regression?

2007-10-03 Thread Joerg Platte
Hi,

sane is not able to detect my old SCSI scanner with kernel 2.6.23-rc9. The 
scanner was found with 2.6.22.8. According to strace the behavior of the 
SG_GET_SCSI_ID ioctl changed:

2.6.22.8:
open(/dev/scanner, O_RDWR|O_NONBLOCK|O_EXCL) = 3
ioctl(3, SG_SET_TIMEOUT, 0xbfe40624)= 0
ioctl(3, SG_GET_VERSION_NUM, 0x8063fa4) = 0
ioctl(3, SG_GET_SCSI_ID, 0xbfe405e0)= 0

2.6.23-rc9:
open(/dev/scanner, O_RDWR|O_NONBLOCK|O_EXCL) = 3
ioctl(3, SG_SET_TIMEOUT, 0xbf84a834)= 0
ioctl(3, SG_GET_VERSION_NUM, 0x8062524) = 0
ioctl(3, SG_GET_SCSI_ID, 0xbf84a7f0)= -1 ENOTTY (Inappropriate ioctl for 
device)

Is this an intentional change?

regards,
Jörg

-- 
PGP Key: send mail with subject 'SEND PGP-KEY' PGP Key-ID: FD 4E 21 1D
PGP Fingerprint: 388A872AFC5649D3 BCEC65778BE0C605

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: 2.6.23-rcX SG_GET_SCSI_ID regression?

2007-10-03 Thread Joerg Platte
Am Mittwoch, 3. Oktober 2007 schrieb Joerg Platte:
Hi,

 2.6.22.8:
 open(/dev/scanner, O_RDWR|O_NONBLOCK|O_EXCL) = 3
 ioctl(3, SG_SET_TIMEOUT, 0xbfe40624)= 0
 ioctl(3, SG_GET_VERSION_NUM, 0x8063fa4) = 0
 ioctl(3, SG_GET_SCSI_ID, 0xbfe405e0)= 0

 2.6.23-rc9:
 open(/dev/scanner, O_RDWR|O_NONBLOCK|O_EXCL) = 3
 ioctl(3, SG_SET_TIMEOUT, 0xbf84a834)= 0
 ioctl(3, SG_GET_VERSION_NUM, 0x8062524) = 0
 ioctl(3, SG_GET_SCSI_ID, 0xbf84a7f0)= -1 ENOTTY (Inappropriate ioctl
 for device)

After some reboots and tests I discovered, that this error occurs only when 
the scanner was turned off during system boot and was discovered later by 
invoking the following script:
for device in /sys/class/scsi_host/host*/scan ; do
echo 0 - -  $device
done
With 2.6.22 and before the scanner was fully functional when discovered by a 
bus rescan.

regards,
Jörg

-- 
PGP Key: send mail with subject 'SEND PGP-KEY' PGP Key-ID: FD 4E 21 1D
PGP Fingerprint: 388A872AFC5649D3 BCEC65778BE0C605

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/