Re: [PATCH 02/11] MIPS: ath79: add SoC detection code for the QCA955X SoCs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





-	sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev);
+	if (soc_is_qca955x())
+		sprintf(ath79_sys_type, "Qualcomm Atheros QCA%s rev %u",
+			chip, rev);
+	else
+		sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev);
  	pr_info("SoC: %s\n", ath79_sys_type);
  }
Hi,

maybe a soc_is_qca() could be used here, otherwise you will need to patch this line again for the next SoC and so on ....

    John



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux