From: Wu Zhangjin <wuzhangjin@xxxxxxxxx> This patchset introduces the following changes: o Loongson: Lemote-2F: Get the machine type from PMON_VER Allows the users of the old lemote 2f family machines to run the latest kernel without passing the machtype= kernel command line. o Loongson: Lemote-2F: USB: Not Emulate Non-Posted Writes When copying large amounts of data between usb devices and hard disk, the usb device will disconnect, this patch fixes it. o Loongson: Convert loongson_halt() to use unreachable() Use unreachable() instead of "while(1);" o Loongson: Remove the serial port output of compressed kernel support The compressed kernel support is stable enough for loongson, no need to print debug info, which will save several bytes and speedup the booting a little. o Misc Cleanups Loongson: Move prom_argc and prom_argv into prom_init_cmdline() Loongson: Cleanup of the environment variables Loongson: arch/mips/Makefile: add missing whitespace Loongson: mem.c: Fixup of the indentation o Loongson: Change the Email address of Wu Zhangjin my old Email address wuzj@xxxxxxxxxx is not usable, use wuzhangjin@xxxxxxxxx instead. o Loongson: Lemote-2F: update defconfig Update the defconfig for the latest kernel supports Best Regards, Wu Zhangjin Wu Zhangjin (10): Loongson: Lemote-2F: Get the machine type from PMON_VER Loongson: Lemote-2F: USB: Not Emulate Non-Posted Writes Loongson: Convert loongson_halt() to use unreachable() Loongson: Remove the serial port output of compressed kernel support Loongson: Move prom_argc and prom_argv into prom_init_cmdline() Loongson: Cleanup of the environment variables Loongson: arch/mips/Makefile: add missing whitespace Loongson: mem.c: Fixup of the indentation Loongson: Change the Email address of Wu Zhangjin Loongson: Lemote-2F: update defconfig arch/mips/Kconfig | 2 +- arch/mips/Makefile | 6 +- arch/mips/boot/compressed/Makefile | 2 +- arch/mips/boot/compressed/decompress.c | 4 +- arch/mips/configs/lemote2f_defconfig | 964 ++++++++++++++------ arch/mips/include/asm/ftrace.h | 2 +- .../asm/mach-loongson/cpu-feature-overrides.h | 2 +- .../include/asm/mach-loongson/cs5536/cs5536_vsm.h | 2 +- arch/mips/include/asm/mach-loongson/loongson.h | 5 +- arch/mips/include/asm/mach-loongson/machine.h | 4 +- arch/mips/include/asm/mach-loongson/mem.h | 2 +- arch/mips/include/asm/mach-loongson/pci.h | 13 +- arch/mips/kernel/ftrace.c | 2 +- arch/mips/kernel/mcount.S | 2 +- arch/mips/loongson/common/cmdline.c | 9 +- arch/mips/loongson/common/cs5536/cs5536_acc.c | 2 +- arch/mips/loongson/common/cs5536/cs5536_ehci.c | 2 +- arch/mips/loongson/common/cs5536/cs5536_ide.c | 2 +- arch/mips/loongson/common/cs5536/cs5536_isa.c | 2 +- arch/mips/loongson/common/cs5536/cs5536_mfgpt.c | 2 +- arch/mips/loongson/common/cs5536/cs5536_ohci.c | 2 +- arch/mips/loongson/common/cs5536/cs5536_pci.c | 2 +- arch/mips/loongson/common/early_printk.c | 2 +- arch/mips/loongson/common/env.c | 29 +- arch/mips/loongson/common/init.c | 2 +- arch/mips/loongson/common/machtype.c | 12 +- arch/mips/loongson/common/mem.c | 7 +- arch/mips/loongson/common/platform.c | 2 +- arch/mips/loongson/common/pm.c | 2 +- arch/mips/loongson/common/reset.c | 7 +- arch/mips/loongson/common/serial.c | 2 +- arch/mips/loongson/common/time.c | 4 +- arch/mips/loongson/common/uart_base.c | 2 +- arch/mips/loongson/fuloong-2e/reset.c | 4 +- arch/mips/loongson/lemote-2f/Makefile | 1 + arch/mips/loongson/lemote-2f/machtype.c | 45 + arch/mips/loongson/lemote-2f/pm.c | 2 +- arch/mips/loongson/lemote-2f/reset.c | 2 +- arch/mips/oprofile/op_model_loongson2.c | 2 +- arch/mips/pci/fixup-lemote2f.c | 2 +- arch/mips/pci/ops-loongson2.c | 4 +- arch/mips/power/cpu.c | 4 +- arch/mips/power/hibernate.S | 4 +- drivers/staging/sm7xx/smtc2d.c | 2 +- drivers/staging/sm7xx/smtc2d.h | 2 +- drivers/staging/sm7xx/smtcfb.c | 2 +- drivers/staging/sm7xx/smtcfb.h | 2 +- 47 files changed, 807 insertions(+), 377 deletions(-) create mode 100644 arch/mips/loongson/lemote-2f/machtype.c