]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/scsi/libsas/sas_expander.c
Fix common misspellings
[mirror_ubuntu-jammy-kernel.git] / drivers / scsi / libsas / sas_expander.c
index 505ffe3582931f84d5061a11a9e3398e0c06eb13..874e29d9533f901ee761358a92fc5b824e2c985c 100644 (file)
@@ -240,10 +240,15 @@ static int sas_ex_phy_discover_helper(struct domain_device *dev, u8 *disc_req,
                                       disc_resp, DISCOVER_RESP_SIZE);
                if (res)
                        return res;
-               /* This is detecting a failure to transmit inital
+               /* This is detecting a failure to transmit initial
                 * dev to host FIS as described in section G.5 of
                 * sas-2 r 04b */
                dr = &((struct smp_resp *)disc_resp)->disc;
+               if (memcmp(dev->sas_addr, dr->attached_sas_addr,
+                         SAS_ADDR_SIZE) == 0) {
+                       sas_printk("Found loopback topology, just ignore it!\n");
+                       return 0;
+               }
                if (!(dr->attached_dev_type == 0 &&
                      dr->attached_sata_dev))
                        break;