[PATCH 1/7] mfd: yeeloong_kb3310b: support KB3310B EC for Lemote Yeeloong laptops.

2019-03-02 Thread Yifeng Li
board files in Linux/MIPS still needs to access the EC directly for power management. Unless we find a better home for those code, we simply export the EC-related functions. Signed-off-by: Yifeng Li --- MAINTAINERS | 7 + drivers/mfd/Kconfig | 10

[PATCH 0/7] Preliminary Platform Driver Support for Lemote Yeeloong Laptops

2019-03-02 Thread Yifeng Li
ld be acceptable now. Please review my changeset to see whether it's appropriate. Thanks, Yifeng Li (7): mfd: yeeloong_kb3310b: support KB3310B EC for Lemote Yeeloong laptops. mips: loongson64: select MFD_YEELOONG_KB3310B for LEMOTE_MACH2F. mips: loongson64: remove ec_kb3310b.c, use

[PATCH 3/7] mips: loongson64: remove ec_kb3310b.c, use MFD driver.

2019-03-02 Thread Yifeng Li
yeeloong_kb3310b MFD driver instead. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/ec_kb3310b.c | 129 -- arch/mips/loongson64/lemote-2f/ec_kb3310b.h | 188 arch/mips/loongson64/lemote-2f/pm.c

[PATCH 6/7] mips: loongson64: Support System Control Interrupts for Lemote Yeeloong.

2019-03-02 Thread Yifeng Li
and camera. The vast majority of events are passed to the subdrivers via a notification chain, thus, the SCI logic and the specific hotkey handling logic have been decoupled. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/sci.

[PATCH 5/7] mips: loongson64: register per-board platform drivers for lemote-2f

2019-03-02 Thread Yifeng Li
this facility, so we hardcode the call of mach_platform_init() in common/platform.c as a ifdef for now. Signed-off-by: Yifeng Li --- .../include/asm/mach-loongson64/loongson.h| 3 ++ arch/mips/loongson64/common/platform.c| 15 ++ arch/mips/loongson64/lemote-2f/Makefile | 2

[PATCH 7/7] MAINTAINERS: add myself as a maintainer of MIPS/Loongson2 platform code.

2019-03-02 Thread Yifeng Li
I've introduced platform code for Lemote Yeeloong computers and modified power management-related files. Add myself as a maintainer of these code. Signed-off-by: Yifeng Li --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 208f198

[PATCH 2/7] mips: loongson64: select MFD_YEELOONG_KB3310B for LEMOTE_MACH2F.

2019-03-02 Thread Yifeng Li
as a mandatory dependency. Signed-off-by: Yifeng Li --- arch/mips/loongson64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/loongson64/Kconfig b/arch/mips/loongson64/Kconfig index 4c14a11525f4..b423d5bba812 100644 --- a/arch/mips/loongson64/Kconfig +++ b/arch/mips/loongson64

[PATCH 4/7] mips: loongson64: remove yeeloong_report_lid_status from pm.c

2019-03-02 Thread Yifeng Li
nline kernel. This level of overenginnering hardly makes sense. All we need is to report the laptop lid switch unconditionally upon wakeup in the future PM code, which is being worked on. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/pm.c | 22 -- 1 file change

[PATCH] mips: loongson64: remove unreachable(), fix loongson_poweroff().

2019-02-05 Thread Yifeng Li
es not fix that bug. Reference: https://lkml.org/lkml/2019/2/5/908 Signed-off-by: Yifeng Li --- arch/mips/loongson64/common/reset.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/common/reset.c b/arch/mips/loongson64/common/reset.c index a60715e1130

[RFC 1/1] tty: vt.c: Fix TIOCL_BLANKSCREEN VT console blanking if blankinterval == 0

2019-02-25 Thread Yifeng Li
"blank_state" is neither "blank_normal_wait" nor "blank_normal_notimer", thus allowing the console to be blanked even if there's no timed autoblanking. Signed-off-by: Yifeng Li --- drivers/tty/vt/vt.c | 11 +-- 1 file changed, 9 insertions(+), 2 dele

[RFC 0/1] Fix TIOCL_BLANKSCREEN VT console blanking if blankinterval == 0

2019-02-25 Thread Yifeng Li
and "poke_blanked_console()"). Finally, we change Step 3 in do_blank_screen() - now it will return if "blank_state" is neither "blank_normal_wait" nor "blank_normal_notimer", thus allowing the console to be blanked even if there's no timed autoblanking. Dear maintainers, please review if my proposed chance is appropriate. Thanks, Tom Li Yifeng Li (1): tty: vt.c: Fix TIOCL_BLANKSCREEN VT console blanking if blankinterval == 0 drivers/tty/vt/vt.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.20.1

[PATCH] tty: vt.c: Fix TIOCL_BLANKSCREEN console blanking if blankinterval == 0

2019-02-26 Thread Yifeng Li
ve the "blank_state != blank_off" check. See Ref for a detailed discussion. Suggested-by: Nicolas Pitre Fixes: a4199f5e ("tty: Disable default console blanking interval") Reference: https://lore.kernel.org/lkml/20190225164346.1359-1-to...@tomli.me Signed-off-by: Yifeng Li --- dr

[PATCH 0/1] mips: loongson64: move EC header to include/asm/mach-loongson64

2019-02-10 Thread Yifeng Li
platform drivers. if there's no objection from the maintainers, please consider to prioritize it for mips-next, thanks. Yifeng Li (1): mips: loongson64: move EC header to include/asm/mach-loongson64 .../lemote-2f => include/asm/mach-loongson64}/ec_kb3310b.h | 0 arch/mips/loongson6

[PATCH 1/1] mips: loongson64: move EC header to include/asm/mach-loongson64

2019-02-10 Thread Yifeng Li
In order to operate the Embedded Controller from multiple platform drivers, it should be possible to include lemote-2f/ec_kb3310b.h from everywhere. This commits move it from lemote-2f/ec_kb3310b.h to include/asm/mach-loongson64/. Signed-off-by: Yifeng Li --- .../lemote-2f => include/asm/m

[PATCH 1/8] fbdev: sm712fb: update copyright headers.

2019-02-01 Thread Yifeng Li
tions are taken verbatim. This commit appends my name to the list of authors, and included Miodrag Vallat's name and the ISC license of the original smfb.c driver. Signed-off-by: Yifeng Li --- drivers/video/fbdev/sm712.h | 20 drivers/video/fbdev/sm71

[PATCH 0/8] fbdev: sm712fb: implement 2D acceleration w/ cleanups.

2019-02-01 Thread Yifeng Li
ence implementation for me. Finally, during the development and testing of 2D acceleration, the modesetting code of this driver received a minor cleanup, and many issues about issues about the modesetting code and this driver in general have been documented. Yifeng Li (8): fbdev: sm712fb: update co

[PATCH 6/8] Documentation: fb: sm712fb: add information mainly about 2D.

2019-02-01 Thread Yifeng Li
This commits add information about 32-bit color, 2D acceleration, as well as adding additional, general information about the hardware and many existing problems of the sm712fb driver. Signed-off-by: Yifeng Li --- Documentation/fb/sm712fb.txt | 123 +++ 1 file

[PATCH 5/8] fbdev: sm712fb: add 32-bit color modes, drops some other modes.

2019-02-01 Thread Yifeng Li
t never listed, and are useful to some users. Signed-off-by: Yifeng Li --- drivers/video/fbdev/sm712fb.c | 158 +++--- 1 file changed, 31 insertions(+), 127 deletions(-) diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c index 133e31f75d67..0cc

[PATCH 3/8] fbdev: sm712fb: add 2D-related I/O headers and functions.

2019-02-01 Thread Yifeng Li
-bit word suitable for 2D Drawing Engine. Yes, we can set info->pixmap.scan_align/buf_align = 4 and forget about padding, but it's incompatible with cfb_imageblit() w/ depth == 1. In case we need to fallback (e.g. debugging), it would be inconvenient, so we pad it manually. Signed-off-by: Y

[PATCH 4/8] fbdev: sm712fb: support 2D acceleration on SM712 w/ Little-Endian CPU.

2019-02-01 Thread Yifeng Li
re it caused an unaligned memory access, which is illegal on MIPS, thus crashing the computer. Signed-off-by: Yifeng Li --- drivers/video/fbdev/sm712.h | 3 + drivers/video/fbdev/sm712fb.c | 396 +- 2 files changed, 392 insertions(+), 7 deletions(-) diff --git

[PATCH 7/8] fbdev: sm712fb: Kconfig: add information about docs.

2019-02-01 Thread Yifeng Li
This commits update the Kconfig description of sm712fb, and inform the user about the existence of documentation. Signed-off-by: Yifeng Li --- drivers/video/fbdev/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index

[PATCH 2/8] fbdev: sm712fb: use type "u8" for 8-bit I/O.

2019-02-01 Thread Yifeng Li
use a different wordsize. Signed-off-by: Yifeng Li --- drivers/video/fbdev/sm712.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/sm712.h b/drivers/video/fbdev/sm712.h index 99077e91ae10..942019dc816a 100644 --- a/drivers/video/fbdev/sm712.h +++

[PATCH 8/8] MAINTAINERS: sm712fb: list myself as one maintainer.

2019-02-01 Thread Yifeng Li
I have working on the sm712fb driver for a while and have some familiarity with this hardware, I'll be helping working on and testing problems of this driver, so add myself to the MAINTAINERS file. Signed-off-by: Yifeng Li --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v2 4/7] fbdev: sm712fb: add 32-bit color modes, drops some other modes.

2019-03-21 Thread Yifeng Li
d 32-bit color modes. They are supported but never listed, and are useful to some users. Signed-off-by: Yifeng Li --- drivers/video/fbdev/sm712fb.c | 158 +++--- 1 file changed, 31 insertions(+), 127 deletions(-) diff --git a/drivers/video/fbdev/sm712fb.c b/drive

[PATCH v2 7/7] MAINTAINERS: sm712fb: list myself as one maintainer.

2019-03-21 Thread Yifeng Li
I have working on the sm712fb driver for a while and have some familiarity with this hardware, I'll be helping working on and testing problems of this driver, so add myself to the MAINTAINERS file. Signed-off-by: Yifeng Li --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v2 6/7] fbdev: sm712fb: Kconfig: add information about docs.

2019-03-21 Thread Yifeng Li
This commits update the Kconfig description of sm712fb, and inform the user about the existence of documentation. Signed-off-by: Yifeng Li --- Documentation/fb/sm712fb.txt | 44 drivers/video/fbdev/Kconfig | 4 2 files changed, 29 insertions(+), 19

[PATCH v2 5/7] Documentation: fb: sm712fb: add information mainly about 2D.

2019-03-21 Thread Yifeng Li
This commits add information about 32-bit color, 2D acceleration, as well as adding additional, general information about the hardware and many existing problems of the sm712fb driver. Signed-off-by: Yifeng Li --- Documentation/fb/sm712fb.txt | 123 +++ 1 file

[PATCH v2 3/7] fbdev: sm712fb: support 2D acceleration on SM712 w/ Little-Endian CPU.

2019-03-21 Thread Yifeng Li
nal system hang was a type punning. unsigned char ajRemain[4]; SMTC_write2Ddataport(0, *(unsigned long *)ajRemain); Type punning is undefined behavior in C, and here it caused an unaligned memory access, which is illegal on MIPS, thus crashing the computer. Signed-off-by: Yifeng Li --- drivers/v

[RESEND][PATCH 1/2] staging: sm750fb: trivial comment indention fix.

2019-03-03 Thread Yifeng Li
similar 2D engines, yet, I have not seen a single version of it with ASCII graphs properly formatted... Fix the the misleading ASCII graphs. It would eliminate the confusions and improve code readability. Signed-off-by: Yifeng Li --- drivers/staging/sm750fb/sm750_accel.c | 32

[RESEND][PATCH 2/2] staging: sm750fb: trivial Camel Case removal for setDisplayControl().

2019-03-03 Thread Yifeng Li
Rename the function setDisplayControl() to set_display_control(). This fixes the following checkpatch.pl warning: CHECK: Avoid CamelCase: Suggested-by: Jin Chen Signed-off-by: Jin Chen [to...@tomli.me: resent as trivial patch, reworded the commit message] Signed-off-by: Yifeng Li

[RESEND][PATCH 0/2] staging: sm750fb: trivial style fixes.

2019-03-03 Thread Yifeng Li
be unfeasible. Since they're extremely trivial. Hereby, I picked them up, reworded commit message, and now resubmit them as trivial patches, and send them to triv...@kernel.org. I hope it could be directly applied by either a fbdev, a staging maintainer or by Jiri Kosina. Thanks for your t

[PATCH] mips: loongson64: lemote-2f: Add IRQF_NO_SUSPEND to "cascade" irqaction.

2019-03-04 Thread Yifeng Li
scade irqaction"), but it forgot to apply the same fix to Loongson2. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/loongson64/lemote-2f/irq.c b/arch/mips/loongson64/lemote-2f/irq.c index 9e33e4

[PATCH v2 5/7] mips: loongson64: register per-board platform drivers for lemote-2f

2019-03-04 Thread Yifeng Li
this facility, so we hardcode the call of mach_platform_init() in common/platform.c as a ifdef for now. Signed-off-by: Yifeng Li --- .../include/asm/mach-loongson64/loongson.h| 3 ++ arch/mips/loongson64/common/platform.c| 15 ++ arch/mips/loongson64/lemote-2f/Makefile | 2

[PATCH v2 0/7] Preliminary Platform Driver Support for Lemote Yeeloong Laptops

2019-03-04 Thread Yifeng Li
ether it's appropriate. Thanks, Yifeng Li (7): mfd: yeeloong_kb3310b: support KB3310B EC for Lemote Yeeloong laptops. mips: loongson64: select MFD_YEELOONG_KB3310B for LEMOTE_MACH2F. mips: loongson64: remove ec_kb3310b.c, use MFD driver. mips: loongson64: remove yeeloong_report_lid_status

[PATCH v2 3/7] mips: loongson64: remove ec_kb3310b.c, use MFD driver.

2019-03-04 Thread Yifeng Li
yeeloong_kb3310b MFD driver instead. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/ec_kb3310b.c | 129 -- arch/mips/loongson64/lemote-2f/ec_kb3310b.h | 188 arch/mips/loongson64/lemote-2f/pm.c

[PATCH v2 1/7] mfd: yeeloong_kb3310b: support KB3310B EC for Lemote Yeeloong laptops.

2019-03-04 Thread Yifeng Li
board files in Linux/MIPS still needs to access the EC directly for power management. Unless we find a better home for those code, we simply export the EC-related functions. Signed-off-by: Yifeng Li --- MAINTAINERS | 7 + drivers/mfd/Kconfig | 10

[PATCH v2 2/7] mips: loongson64: select MFD_YEELOONG_KB3310B for LEMOTE_MACH2F.

2019-03-04 Thread Yifeng Li
as a mandatory dependency. Signed-off-by: Yifeng Li --- arch/mips/loongson64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/loongson64/Kconfig b/arch/mips/loongson64/Kconfig index 4c14a11525f4..b423d5bba812 100644 --- a/arch/mips/loongson64/Kconfig +++ b/arch/mips/loongson64

[PATCH v2 4/7] mips: loongson64: remove yeeloong_report_lid_status from pm.c

2019-03-04 Thread Yifeng Li
nline kernel. This level of overenginnering hardly makes sense. All we need is to report the laptop lid switch unconditionally upon wakeup in the future PM code, which is being worked on. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/pm.c | 22 -- 1 file change

[PATCH v2 7/7] MAINTAINERS: add myself as a maintainer of MIPS/Loongson2 platform code.

2019-03-04 Thread Yifeng Li
I've introduced platform code for Lemote Yeeloong computers and modified power management-related files. Add myself as a maintainer of these code. Signed-off-by: Yifeng Li --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 208f198

[PATCH v2 6/7] mips: loongson64: Support System Control Interrupts for Lemote Yeeloong.

2019-03-04 Thread Yifeng Li
and camera. The vast majority of events are passed to the subdrivers via a notification chain, thus, the SCI logic and the specific hotkey handling logic have been decoupled. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/sci.

[PATCH RESEND] tty: vt.c: Fix TIOCL_BLANKSCREEN console blanking if blankinterval == 0

2019-03-04 Thread Yifeng Li
ocl.h says > /* keep screen blank even if a key is pressed */ > #define TIOCL_BLANKSCREEN 14 To fix it, we simply remove the "blank_state != blank_off" check, as pointed out by Nicolas Pitre, this check doesn't logically make sense and it's safe to remove. Suggested-by:

[PATCH v3 3/7] mips: loongson64: remove ec_kb3310b.c, use MFD driver.

2019-03-06 Thread Yifeng Li
yeeloong_kb3310b MFD driver instead. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/ec_kb3310b.c | 129 -- arch/mips/loongson64/lemote-2f/ec_kb3310b.h | 188 arch/mips/loongson64/lemote-2f/pm.c

[PATCH v3 4/7] mips: loongson64: remove yeeloong_report_lid_status from pm.c

2019-03-06 Thread Yifeng Li
nline kernel. This level of overenginnering hardly makes sense. All we need is to report the laptop lid switch unconditionally upon wakeup in the future PM code, which is being worked on. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/pm.c | 22 -- 1 file change

[PATCH v3 0/7] Preliminary Platform Driver Support for Lemote Yeeloong Laptops

2019-03-06 Thread Yifeng Li
geset to see whether it's appropriate. Thanks, Yifeng Li (7): mfd: yeeloong_kb3310b: support KB3310B EC for Lemote Yeeloong laptops. mips: loongson64: select MFD_YEELOONG_KB3310B for LEMOTE_MACH2F. mips: loongson64: remove ec_kb3310b.c, use MFD driver. mips: loongson

[PATCH v3 1/7] mfd: yeeloong_kb3310b: support KB3310B EC for Lemote Yeeloong laptops.

2019-03-06 Thread Yifeng Li
r the board files. Signed-off-by: Yifeng Li --- MAINTAINERS | 7 + drivers/mfd/Kconfig | 10 ++ drivers/mfd/Makefile | 1 + drivers/mfd/yeeloong_kb3310b.c | 200 + include/linux/mfd/yeeloong_kb3310b.h

[PATCH v3 2/7] mips: loongson64: select MFD_YEELOONG_KB3310B for LEMOTE_MACH2F.

2019-03-06 Thread Yifeng Li
as a mandatory dependency. Signed-off-by: Yifeng Li --- arch/mips/loongson64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/loongson64/Kconfig b/arch/mips/loongson64/Kconfig index 4c14a11525f4..b423d5bba812 100644 --- a/arch/mips/loongson64/Kconfig +++ b/arch/mips/loongson64

[PATCH v3 6/7] mips: loongson64: Support System Control Interrupts for Lemote Yeeloong.

2019-03-06 Thread Yifeng Li
and camera. The vast majority of events are passed to the subdrivers via a notification chain, thus, the SCI logic and the specific hotkey handling logic have been decoupled. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/sci.

[PATCH v3 7/7] MAINTAINERS: add myself as a maintainer of MIPS/Loongson2 platform code.

2019-03-06 Thread Yifeng Li
I've introduced platform code for Lemote Yeeloong computers and modified power management-related files. Add myself as a maintainer of these code. Signed-off-by: Yifeng Li --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 208f198

[PATCH v3 5/7] mips: loongson64: register per-board platform drivers for lemote-2f

2019-03-06 Thread Yifeng Li
this facility, so we hardcode the call of mach_platform_init() in common/platform.c as a ifdef for now. Signed-off-by: Yifeng Li --- .../include/asm/mach-loongson64/loongson.h| 3 ++ arch/mips/loongson64/common/platform.c| 15 ++ arch/mips/loongson64/lemote-2f/Makefile | 2

[PATCH] rt286: add Thinkpad Helix 2 to force_combo_jack_table

2017-05-03 Thread Yifeng Li
ch to LKML directly, sorry for CC-ing too many people here. Link: https://bugzilla.kernel.org/show_bug.cgi?id=93841 Cc: Bard Liao Cc: Oder Chiou Cc: Mark Brown Cc: Keyon Cc: Jinliang Wang Cc: sta...@vger.kernel.org Signed-off-by: Yifeng Li --- sound/soc/codecs/rt286.c | 7 +++ 1 file