MIPS: ip30: ip30-console: Add missing includeInclude linux/processor.h to fix build error:arch/mips/sgi-ip30/ip30-console.c: In function ‘prom_putchar’:arch/mips/sgi-ip30/ip30-console.c:21:17: e
MIPS: ip30: ip30-console: Add missing includeInclude linux/processor.h to fix build error:arch/mips/sgi-ip30/ip30-console.c: In function ‘prom_putchar’:arch/mips/sgi-ip30/ip30-console.c:21:17: error: implicit declaration of function ‘cpu_relax’ [-Werror=implicit-function-declaration] 21 | cpu_relax();Cc: stable@vger.kernel.orgSigned-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
MIPS: sgi-ip30: Fix missing prototypesInclude needed header files.Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
MIPS: SGI-IP30: Fix platform-device leak in bridge_platform_create()In error case in bridge_platform_create after callingplatform_device_add()/platform_device_add_data()/platform_device_add_resou
MIPS: SGI-IP30: Fix platform-device leak in bridge_platform_create()In error case in bridge_platform_create after callingplatform_device_add()/platform_device_add_data()/platform_device_add_resources(), release the failed'pdev' or it will be leak, call platform_device_put()to fix this problem.Besides, 'pdev' is divided into 'pdev_wd' and 'pdev_bd',use platform_device_unregister() to release sgi_w1resources when xtalk-bridge registration fails.Fixes: fd27234f24ae ("MIPS: add support for SGI Octane (IP30)")Signed-off-by: Lin Yujun <linyujun809@huawei.com>Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
MIPS: SGI-IP30: Free some unused memoryplatform_device_add_data() duplicates the memory it is passed. So we canfree some memory to save a few bytes that would remain unused otherwise.Signed-off-
MIPS: SGI-IP30: Free some unused memoryplatform_device_add_data() duplicates the memory it is passed. So we canfree some memory to save a few bytes that would remain unused otherwise.Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
memblock: rename memblock_free to memblock_phys_freeSince memblock_free() operates on a physical range, make its namereflect it and rename it to memblock_phys_free(), so it will be alogical count
memblock: rename memblock_free to memblock_phys_freeSince memblock_free() operates on a physical range, make its namereflect it and rename it to memblock_phys_free(), so it will be alogical counterpart to memblock_phys_alloc().The callers are updated with the below semantic patch: @@ expression addr; expression size; @@ - memblock_free(addr, size); + memblock_phys_free(addr, size);Link: https://lkml.kernel.org/r/20210930185031.18648-6-rppt@kernel.orgSigned-off-by: Mike Rapoport <rppt@linux.ibm.com>Cc: Christophe Leroy <christophe.leroy@csgroup.eu>Cc: Juergen Gross <jgross@suse.com>Cc: Shahab Vahedi <Shahab.Vahedi@synopsys.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mips: Bulk conversion to generic_handle_domain_irq()Wherever possible, replace constructs that match eithergeneric_handle_irq(irq_find_mapping()) orgeneric_handle_irq(irq_linear_revmap()) to a si
mips: Bulk conversion to generic_handle_domain_irq()Wherever possible, replace constructs that match eithergeneric_handle_irq(irq_find_mapping()) orgeneric_handle_irq(irq_linear_revmap()) to a single call togeneric_handle_domain_irq().Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>Signed-off-by: Marc Zyngier <maz@kernel.org>
MIPS: Add missing linux/irqdomain.h includesA number of MIPS platforms are failing to directly includeirqdomain.h. Fix this so that we can drop unnecessary dependenciesSigned-off-by: Marc Zyngie
MIPS: Add missing linux/irqdomain.h includesA number of MIPS platforms are failing to directly includeirqdomain.h. Fix this so that we can drop unnecessary dependenciesSigned-off-by: Marc Zyngier <maz@kernel.org>
MIPS: SGI-IP30: Move irq bits to better header filesMove HEART specific parts of mach-ip30/irq.h to asm/sgi/heart.h and IP30specific parts to sgi-ip30/ip30-common.h.Signed-off-by: Thomas Bogendo
MIPS: SGI-IP30: Move irq bits to better header filesMove HEART specific parts of mach-ip30/irq.h to asm/sgi/heart.h and IP30specific parts to sgi-ip30/ip30-common.h.Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
MIPS: Only include the platform file neededInstead of including all Platform files, we simply include theneeded one and avoid clashes with makefile variables.Signed-off-by: Thomas Bogendoerfer <
MIPS: Only include the platform file neededInstead of including all Platform files, we simply include theneeded one and avoid clashes with makefile variables.Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
MIPS: SGI-IP30: Check for valid pointer before using itFix issue detected by Smatch: ./arch/mips/sgi-ip30/ip30-irq.c:236 heart_domain_free() warn: variable dereferenced before check 'irqd
MIPS: SGI-IP30: Check for valid pointer before using itFix issue detected by Smatch: ./arch/mips/sgi-ip30/ip30-irq.c:236 heart_domain_free() warn: variable dereferenced before check 'irqd' (see line 235)Fixes: 7505576d1c1a ("MIPS: add support for SGI Octane (IP30)")Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>Signed-off-by: Paul Burton <paulburton@kernel.org>Cc: Ralf Baechle <ralf@linux-mips.org>Cc: James Hogan <jhogan@kernel.org>Cc: linux-mips@vger.kernel.orgCc: linux-kernel@vger.kernel.orgCc: <stable@vger.kernel.org> # v5.5+
MIPS: add support for SGI Octane (IP30)This changeset adds support for SGI Octane/Octane2 workstations.Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>Signed-off-by: Paul Burton <paulb
MIPS: add support for SGI Octane (IP30)This changeset adds support for SGI Octane/Octane2 workstations.Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>Signed-off-by: Paul Burton <paulburton@kernel.org>Cc: Paul Burton <paul.burton@mips.com>Cc: James Hogan <jhogan@kernel.org>Cc: linux-mips@vger.kernel.orgCc: linux-kernel@vger.kernel.org