forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/parisc/kernel/pci.c
....@@ -34,25 +34,14 @@
3434 #define DBG_RES(x...)
3535 #endif
3636
37
-/* To be used as: mdelay(pci_post_reset_delay);
38
- *
39
- * post_reset is the time the kernel should stall to prevent anyone from
40
- * accessing the PCI bus once #RESET is de-asserted.
41
- * PCI spec somewhere says 1 second but with multi-PCI bus systems,
42
- * this makes the boot time much longer than necessary.
43
- * 20ms seems to work for all the HP PCI implementations to date.
44
- *
45
- * #define pci_post_reset_delay 50
46
- */
37
+struct pci_port_ops *pci_port __ro_after_init;
38
+struct pci_bios_ops *pci_bios __ro_after_init;
4739
48
-struct pci_port_ops *pci_port __read_mostly;
49
-struct pci_bios_ops *pci_bios __read_mostly;
50
-
51
-static int pci_hba_count __read_mostly;
40
+static int pci_hba_count __ro_after_init;
5241
5342 /* parisc_pci_hba used by pci_port->in/out() ops to lookup bus data. */
5443 #define PCI_HBA_MAX 32
55
-static struct pci_hba_data *parisc_pci_hba[PCI_HBA_MAX] __read_mostly;
44
+static struct pci_hba_data *parisc_pci_hba[PCI_HBA_MAX] __ro_after_init;
5645
5746
5847 /********************************************************************