Re: [PATCH] ARC: [plat-axs10x] Enable SWAP

2018-08-06 Thread Vineet Gupta
On 08/02/2018 01:50 AM, Alexey Brodkin wrote: > SWAP support on ARC was fixed earlier by > commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP") > so now we may safely enable it on platforms that > have external media like USB and SD-card. > > Signed-off-by: Alexey Brodkin > Cc: sta...@vger.kernel.org # 6

[PATCH 2/2] ARC: show_faulting_vma: check file_path for error

2018-08-06 Thread Eugeniy Paltsev
Return value of file_path() should be validated with IS_ERR() macro. Generic print_vma_addr() implementation was used as an example. Signed-off-by: Eugeniy Paltsev --- arch/arc/kernel/troubleshoot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc/

[PATCH 1/2] ARC: show_faulting_vma: remove unused variables

2018-08-06 Thread Eugeniy Paltsev
We get 'inode', 'dev', and 'ino' in show_faulting_vma() but never use them. So get rid of this variables and corresponding code. Signed-off-by: Eugeniy Paltsev --- arch/arc/kernel/troubleshoot.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/arc/kernel/troub

[PATCH 2/2] gpio: tb10x: Use GENERIC_GPIO

2018-08-06 Thread Linus Walleij
Instead of open coding logic for reading and writing GPIO lines, use the generic GPIO library. Also switch to using the spinlock from the generic GPIO to protect the registers. Cc: linux-snps-arc@lists.infradead.org Cc: Christian Ruppert Signed-off-by: Linus Walleij --- drivers/gpio/Kconfig

[PATCH 1/2] gpio: tb10x: Create local helper variables

2018-08-06 Thread Linus Walleij
Create a local struct device *dev helper variable to make the code easier to read. Most GPIO drivers use "np" (node pointer) rather than "dn" (device node) to point to the device tree node. Let's follow this convention. Cc: linux-snps-arc@lists.infradead.org Cc: Christian Ruppert Signed-off-by:

[PATCH] gpio: tb10x: Use the right include

2018-08-06 Thread Linus Walleij
This driver includes the legacy and but all it needs is really . Cc: linux-snps-arc@lists.infradead.org Cc: Christian Ruppert Signed-off-by: Linus Walleij --- drivers/gpio/gpio-tb10x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gp

Re: [PATCH] ARC: AXS10x/HSDK: Allow U-Boot to pass MAC-address to the kernel

2018-08-06 Thread Eugeniy Paltsev
Hi Vineet, On Thu, 2018-08-02 at 21:58 +, Vineet Gupta wrote: > On 08/02/2018 03:19 AM, Alexey Brodkin wrote: > > Otherwise kernel uses random MAC which is not very conveniet. > > Curious what exactly is the issue - why does the user care what MAC is > assigned ? > > > With that change in p