[PATCH v3] ARM: dts: ls1021a: add support for Moxa UC-8410A open platform

2017-12-25 Thread SZ Lin
signal * 2x USB host * TPM * Watchdog * RTC * User LEDs * Beeper * Push button Signed-off-by: Jimmy Chen Signed-off-by: Harry YJ Jhou Signed-off-by: SZ Lin --- Changes from v2: - Replace underscore with hyphen in node name - Add unit address after nodes with 'reg' property - Sort nodes

[PATCH] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-15 Thread SZ Lin
This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver. Signed-off-by: Taiyi Wu Signed-off-by: SZ Lin --- Please refer to following lsusb output: Bus 001 Device 003: ID 05c6:9625 Qualcomm, Inc. Device Descriptor: bLength18 bDescriptorType

[PATCH v2] ARM: dts: ls1021a: add support for Moxa UC-8410A open platform

2017-12-11 Thread SZ Lin
signal * 2x USB host * TPM * Watchdog * RTC * User LEDs * Beeper * Push button Signed-off-by: Jimmy Chen Signed-off-by: Harry YJ Jhou Signed-off-by: SZ Lin -- Changes from v1: - Add newline between nodes - Add push button node - Insert newline between property list and child node - Include file

[PATCH] arm, ls1021a: add support for Moxa UC-8410A open platform

2017-11-16 Thread SZ Lin
signal * 2x USB host * TPM * Watchdog * RTC * User LEDs * Beeper Signed-off-by: Jimmy Chen Signed-off-by: Harry YJ Jhou Signed-off-by: SZ Lin --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 230 2 files changed

[RESEND PATCH] ARM: dts: ls1021a: Add support for QSPI with ls1021a SoC

2017-09-11 Thread SZ Lin
Add QSPI node support, and this function is disabled by default This setting could be overwritten in board-level definitions Signed-off-by: SZ Lin --- arch/arm/boot/dts/ls1021a.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm

[PATCH] ARM: dts: ls1021a: Add support for QSPI with ls1021a SoC

2017-08-08 Thread SZ Lin
Add QSPI node support, and this function is disabled by default This setting could be overwritten in board-level definitions Signed-off-by: SZ Lin --- arch/arm/boot/dts/ls1021a.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm

[PATCH v2] arm, am335x: add support for Moxa UC-8100-ME-T open platform

2017-08-01 Thread SZ Lin
factor with USB signal * USB host * EEPROM * TPM * Watchdog * RTC * User gpio-keys * User LEDs * User button Signed-off-by: SZ Lin --- Changes from v1: - Remove the un-needed @ in led@x's - Use AM33XX_IOPAD pinmux macro - Properly alphabetize Makefile .../devicetree/bindings/arm/omap/oma

[PATCH] arm, am335x: add support for Moxa UC-8100-ME-T open platform

2017-08-01 Thread SZ Lin
factor with USB signal * USB host * EEPROM * TPM * Watchdog * RTC * User gpio-keys * User LEDs * User button Signed-off-by: SZ Lin --- .../devicetree/bindings/arm/omap/omap.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts

[PATCH] of: Update Moxa vendor prefix description

2017-07-29 Thread SZ Lin
Update vendor description to be the full name of the corporate entity with this prefix reference: [1]: http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4806:26uh56.2.5 Signed-off-by: SZ Lin --- Documentation/devicetree/bindings/vendor-prefixes.txt | 2 +- 1 file changed, 1 insertion(+

[PATCH] rtc: ds1374: Fix decimal permission coding issue

2017-07-29 Thread SZ Lin
Fixed ERROR: Use 4 digit octal (0777) not decimal permissions to fulfill the current coding-style This error was detected by checkpatch.pl Signed-off-by: SZ Lin --- drivers/rtc/rtc-ds1374.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1374.c b/drivers

[PATCH 5/6] net: moxa: Fix for typo in comment to function moxart_mac_setup_desc_ring()

2017-07-29 Thread SZ Lin
Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 31e179a651ae..2e4effa9fe45 100644 --- a/drivers/net/ethernet/moxa

[PATCH 6/6] net: moxa: Add spaces preferred around that '{+,-}'

2017-07-29 Thread SZ Lin
This patch fixes all checkpatch occurences of "CHECK: spaces preferred around that '{+,-}' (ctx:VxV)" in moxart_ether code. Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drive

[PATCH 4/6] net: moxa: Remove extra space after a cast

2017-07-29 Thread SZ Lin
No space is necessary after a cast This warning is found using checkpatch.pl Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa

[PATCH 1/6] net: moxa: Remove braces from single-line body

2017-07-29 Thread SZ Lin
Remove unnecessary braces from single-line if statement This warning is found using checkpatch.pl Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net

[PATCH 3/6] net: moxa: Fix comparison to NULL could be written with !

2017-07-29 Thread SZ Lin
Fixed coding style for null comparisons in moxart_ether driver to be more consistent with the rest of the kernel coding style Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/moxa

[PATCH 2/6] net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'

2017-07-29 Thread SZ Lin
Use 'unsigned int' instead of 'unsigned' This warning is found using checkpatch.pl Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drive

[PATCH 0/6] net: moxa: Fix style issues

2017-07-29 Thread SZ Lin
This patch set fixs the WARNINGs found by the checkpatch.pl tool SZ Lin (6): net: moxa: Remove braces from single-line body net: moxa: Prefer 'unsigned int' to bare use of 'unsigned' net: moxa: Fix comparison to NULL could be written with ! net: moxa: Remove extra spac

[PATCH] watchdog: moxart_wdt: Replace decimal permissions with 4 digit octal

2017-07-29 Thread SZ Lin
ERROR: Use 4 digit octal (0777) not decimal permissions This error was detected by checkpatch.pl Signed-off-by: SZ Lin --- drivers/watchdog/moxart_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/moxart_wdt.c b/drivers/watchdog/moxart_wdt.c index

[PATCH 0/5] tpm: tpm_ibmvtpm: - style fix

2017-07-29 Thread SZ Lin
Fix styling WARNINGs and Errors of tpm_ibmvtpm.c driver by using checkpatch.pl SZ Lin (5): Fix packed and aligned attribute warnings. Fix "ERROR: code indent should use tabs where possible" Fix 'void function return statements are not generally useful' warning Remove

[PATCH 3/5] Fix 'void function return statements are not generally useful' warning

2017-07-29 Thread SZ Lin
WARNING: void function return statements are not generally useful + return; +} Signed-off-by: SZ Lin --- drivers/char/tpm/tpm_ibmvtpm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c index 23913fc86158..e53b9fb517d9

[PATCH 1/5] Fix packed and aligned attribute warnings.

2017-07-29 Thread SZ Lin
WARNING: __packed is preferred over __attribute__((packed)) +} __attribute__((packed, aligned(8))); WARNING: __aligned(size) is preferred over __attribute__((aligned(size))) +} __attribute__((packed, aligned(8))); Signed-off-by: SZ Lin --- drivers/char/tpm/tpm_ibmvtpm.h | 2 +- 1 file changed

[PATCH 4/5] Remove unneccessary 'out of memory' message

2017-07-29 Thread SZ Lin
y' message + if (!ibmvtpm) { + dev_err(dev, "kzalloc for ibmvtpm failed\n"); Signed-off-by: SZ Lin --- drivers/char/tpm/tpm_ibmvtpm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c

[PATCH 5/5] Use __func__ instead of function name

2017-07-29 Thread SZ Lin
Fix following checkpatch.pl warning: WARNING: Prefer using '"%s...", __func__' to using the function's name, in a string Signed-off-by: SZ Lin --- drivers/char/tpm/tpm_ibmvtpm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 2/5] Fix "ERROR: code indent should use tabs where possible"

2017-07-29 Thread SZ Lin
ERROR: code indent should use tabs where possible +^I^I "Need to wait for TPM to finish\n");$ Signed-off-by: SZ Lin --- drivers/char/tpm/tpm_ibmvtpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm