• Kashyap, Desai's avatar
    [SCSI] mptfusion: mpt_detach is called properly at the time of rmmod · 48959f1e
    Kashyap, Desai authored
    Current design of mptsas is as follow.
    MPTSAS will do probe() if pci id matches for available card in
    system, irrespective of mode of controller. If controller is I/T mode
    or I mode, things are fine. If controller is only in T mode, mptsas is
    not doing complete process of mptsas_probe(). It will only make
    sure IOC structure is created and IOC reference is available for
    mptstm driver. Now While removing module we should take care
    case of Target mode only mptsas. If we are removing IOC which is
    only in Target mode, We should only detach IOC instead of
    following rest of the cleanup process which is only required for T
    mode controller. Now For T mode controller, only part clean up is
    done instead of complete cleanup. mpt_detach will call early in case
    of Target mode only controller.
    Signed-off-by: default avatarKashyap Desai <kashyap.desai@lsi.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
    48959f1e
mptscsih.c 91.6 KB