opnsense-src/sys/powerpc
John Baldwin a72d54791d ata_kauai: Fix support for "shasta" controllers.
The probe routine was setting a value in the softc, but since the
probe routine was not returning zero, this value was lost since the
softc was reallocated (and re-zeroed) when the device was attached.
This is similar in nature to the fixes from
965205eb66.

To fix, move the code to set the 'shasta' flag to the start of attach
along with related code to set an IRQ resource on some non-shasta
devices.  The IRQ resource still "worked" being in the probe routine
as the IRQ resource persisted after probe returned, but it is cleaner
to go ahead and move it to attach after setting the 'shasta' flag.

I have no way to test this, but noticed this while reading the code.

Reviewed by:	jhibbits
Differential Revision:	https://reviews.freebsd.org/D34888

(cherry picked from commit d5472cd4b3)
2022-05-13 13:15:56 -07:00
..
aim Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
amigaone powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
booke Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
conf powerpc: enable wlan and ath modules in GENERIC64* 2022-04-30 20:23:55 +02:00
cpufreq powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fpu Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
include Simplify swi for bus_dma. 2022-04-29 14:27:47 -07:00
mambo Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
mikrotik powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx powerpcspe: fix PCI enumeration on ppce500 2022-03-25 08:07:09 -03:00
ofw Make CPU_SET macros compliant with other implementations 2022-01-14 18:17:30 +02:00
powermac ata_kauai: Fix support for "shasta" controllers. 2022-05-13 13:15:56 -07:00
powernv opal_console: fix serial console output corruption on powerpc64 2021-05-07 02:33:39 -03:00
powerpc Add PT_GETREGSET 2022-05-12 15:12:59 -07:00
ps3 Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
pseries powerpc/pseries: Add new hypercall definition, H_REGISTER_PROC_TBL 2021-04-06 22:10:09 -05:00
psim powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00