All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi.c - cache ID bug
@ 2010-10-01 14:50 Aleš Nesrsta
  2010-10-01 18:37 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Aleš Nesrsta @ 2010-10-01 14:50 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

Hi,

I have problem with multi-lun devices in some cases.

I found small bug in "old" problem solution of SCSI cache ID in trunk -
see attached patch which should solve it.

Regards
Ales


[-- Attachment #2: usb_scsi_cache_id_101001_0 --]
[-- Type: text/x-patch, Size: 473 bytes --]

--- ./grub/include/grub/scsi.h	2010-09-30 22:17:31.000000000 +0200
+++ ./grub_patched/include/grub/scsi.h	2010-10-01 15:58:23.000000000 +0200
@@ -40,7 +40,7 @@ static inline grub_uint32_t
 grub_make_scsi_id (int subsystem, int bus, int lun)
 {
   return (subsystem << GRUB_SCSI_ID_SUBSYSTEM_SHIFT)
-    | (bus << GRUB_SCSI_ID_BUS_SHIFT) | (lun << GRUB_SCSI_ID_BUS_SHIFT);
+    | (bus << GRUB_SCSI_ID_BUS_SHIFT) | (lun << GRUB_SCSI_ID_LUN_SHIFT);
 }
 
 struct grub_scsi_dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-02 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-01 14:50 [PATCH] scsi.c - cache ID bug Aleš Nesrsta
2010-10-01 18:37 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-10-02 18:58   ` Aleš Nesrsta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.