1. 12 Jan, 2008 2 commits
    • Gilbert Wu's avatar
      [SCSI] aic94xx: update BIOS image from user space. · 1237c98d
      Gilbert Wu authored
       1. Create a file "update_bios" in sysfs to allow user to update bios
          from user space.
      
       2. The BIOS image file can be downloaded from web site
      
      "http://www.adaptec.com/en-US/downloads/bios_fw/bios_fw_ver?productId=SAS-48300&dn=Adaptec+Serial+Attached+SCSI+48300"
          and copy the BIOS image into /lib/firmware folder.
      
       3. The aic994xx will accept "update bios_file" and "verify bios_file"
          commands to perform update and verify BIOS image .
      
          For example:
      
           Type "echo "update asc483c01.ufi" > /sys/devices/.../update_bios"
                to update BIOS image from /lib/firmware/as483c01.ufi file into
                HBA's flash memory.
      
           Type "echo "verify asc483c01.ufi" > /sys/devices/.../update_bios"
                to verify BIOS image between /lib/firmware/asc48c01.ufi file
      and
                HBA's flash memory.
      
       4. Type "cat  /sys/devices/.../update_bios" to view the status or
      result
          of updating BIOS.
      Signed-off-by: default avatarGilbert Wu <gilbert_wu@adaptec.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      1237c98d
    • Kay Sievers's avatar
      [SCSI] sr,sd: send media state change modification events · 285e9670
      Kay Sievers authored
      This will send for a card reader slot (remove/add media):
        UEVENT[1187091572.155884] change   /devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host7/target7:0:0/7:0:0:0 (scsi)
        UEVENT[1187091572.162314] remove   /block/sdb/sdb1 (block)
        UEVENT[1187091572.172464] add      /block/sdb/sdb1 (block)
        UEVENT[1187091572.175408] change   /devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host7/target7:0:0/7:0:0:0 (scsi)
      
      and for a DVD drive (add/eject media):
        UEVENT[1187091590.189159] change   /devices/pci0000:00/0000:00:1f.1/host4/target4:0:0/4:0:0:0 (scsi)
        UEVENT[1187091590.957124] add      /module/isofs (module)
        UEVENT[1187091604.468207] change   /devices/pci0000:00/0000:00:1f.1/host4/target4:0:0/4:0:0:0 (scsi)
      
      Userspace gets events, even for unpartitioned media. This unifies
      the event handling for asynchronoous events (AN) and events caused by
      perodical polling the device from userspace.
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      
      [jejb: modified for new event API]
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      285e9670
  2. 11 Jan, 2008 23 commits
  3. 10 Jan, 2008 15 commits