android_kernel_xiaomi_sm8350/drivers
James.Smart@Emulex.Com 2f4701d827 [SCSI] add int_to_scsilun() function
One of the issues we had was reverting the midlayers lun value
into the 8byte lun value that we wanted to send to the device.
Historically, there's been some combination of byte swapping,
setting high/low, etc. There's also been no common thread between
how our driver did it and others.  I also got very confused as
to why byteswap routines were being used.

Anyway, this patch is a LLDD-callable function that reverts the
midlayer's lun value, stored in an int, to the 8-byte quantity
(note: this is not the real 8byte quantity, just the same amount
that scsilun_to_int() was able to convert and store originally).

This also solves the dilemma of the thread:
http://marc.theaimsgroup.com/?l=linux-kernel&m=112116767118981&w=2

A patch for the lpfc driver to use this function will be along
in a few days (batched with other patches).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-07-14 11:21:27 -04:00
..
acorn [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
acpi [PATCH] suspend/resume SMP support 2005-06-25 16:24:32 -07:00
atm
base [PATCH] generate hotplug events for cpu online 2005-06-25 16:24:31 -07:00
block Merge Christoph's freeze cleanup patch 2005-06-25 17:16:53 -07:00
bluetooth [PATCH] Convert users to tty_unregister_ldisc() 2005-06-23 09:45:36 -07:00
cdrom [PATCH] drivers/cdrom/cm206.c: cleanups 2005-06-25 16:25:07 -07:00
char [PATCH] schedule the obsolete raw driver for removal 2005-06-25 16:25:11 -07:00
cpufreq
crypto
dio
eisa
fc4 [SCSI] ifdef out broken fc4 EH code 2005-07-02 19:12:10 -05:00
firmware [PATCH] kfree cleanups for drivers/firmware/ 2005-06-25 16:25:06 -07:00
i2c [PATCH] I2C-MPC: Remove OCP device model support 2005-06-25 16:24:27 -07:00
ide [PATCH] IDE CD reports current speed 2005-06-23 09:45:35 -07:00
ieee1394 [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
infiniband
input Merge Christoph's freeze cleanup patch 2005-06-25 17:16:53 -07:00
isdn [PATCH] drivers/isdn/hisax/: possible cleanups 2005-06-25 16:25:07 -07:00
macintosh [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
mca [PATCH] unexport mca_find_device_by_slot 2005-06-25 16:24:56 -07:00
md [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
media Merge Christoph's freeze cleanup patch 2005-06-25 17:16:53 -07:00
message [SCSI] - mptfusion - convert to new change_queue_depth API 2005-07-01 08:56:31 -05:00
misc [PATCH] ibmasm driver: fix race in command refcount logic 2005-06-21 19:07:35 -07:00
mmc
mtd
net Merge Christoph's freeze cleanup patch 2005-06-25 17:16:53 -07:00
nubus
oprofile [PATCH] oprofile: report anonymous region samples 2005-06-24 00:06:27 -07:00
parisc
parport [PATCH] parport: NetMos nm9855 fix 2005-06-23 09:45:27 -07:00
pci
pcmcia [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
pnp [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
s390 [PATCH] s390: debug feature changes 2005-06-25 16:24:37 -07:00
sbus
scsi [SCSI] add int_to_scsilun() function 2005-07-14 11:21:27 -04:00
serial [PATCH] serial/68328serial: replace schedule_timeout() with msleep_interruptible() 2005-06-25 16:25:10 -07:00
sh
sn [PATCH] ioc4: PCI bus speed detection 2005-06-21 18:46:32 -07:00
tc
telephony [PATCH] kfree cleanups in ixj.c 2005-06-25 16:25:06 -07:00
usb [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
video [PATCH] drivers/video/matrox/matroxfb_misc.c: remove dead code 2005-06-25 16:25:04 -07:00
w1 [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
zorro
Kconfig [PATCH] ioc4: CONFIG split 2005-06-21 18:46:32 -07:00
Makefile [PATCH] ioc4: CONFIG split 2005-06-21 18:46:32 -07:00