[linux-yocto] [linux-yocto-dev standard/xlnx-soc] mtd: spi-nor: fix erasesize for dual qspi mode

2019-12-17 Thread quanyang.wang
From: Quanyang Wang Hi Bruce & Michal, There is a fix for erasesize in dual mode in xilinx v4.19 kernel, but the spi-nor framework has changed in new version kernel, so I make this patch to fix it in new kernel. Would you please help review and merge these patches to linux-yocto-dev standard/

[linux-yocto][PATCH 1/1] mtd: spi-nor: fix erasesize for dual qspi mode

2019-12-17 Thread quanyang.wang
From: Quanyang Wang The zcu102 and zc706 boards support qspi dual mode, and in the dual mode, the erasesize for mtd device should be twice as much as the erasesize for each nor flash chip. Signed-off-by: Quanyang Wang --- drivers/mtd/spi-nor/spi-nor.c | 6 +- 1 file changed, 5 insertions(+

Re: [linux-yocto][PATCH 1/9] Revert "spi: zynq-qspi: use devm_platform_ioremap_resource() to simplify code"

2019-12-16 Thread quanyang.wang
Hi Naga, On 12/16/19 7:40 PM, Naga Sureshkumar Relli wrote: Hi Quanyang, These patches are ok. but I didn't see any spi-nor.c or other frame work related patches to support dual parallel and stacked modes. Or am I missing something? These patches are in the git tree: git://git.yoctoproject

Re: [linux-yocto] [V2] [linux-yocto-dev standard/xlnx-soc] New patches for v5.4

2019-12-16 Thread quanyang.wang
On 12/16/19 4:55 PM, Michal Simek wrote: On 16. 12. 19 9:53, Quanyang Wang wrote: On 12/16/19 4:46 PM, Michal Simek wrote: Hi, Naga: Can you please take a look at these spi patches? On 16. 12. 19 9:36, quanyang.w...@windriver.com wrote: From: Quanyang Wang Hi Bruce & Michal, Would you pl

Re: [linux-yocto] [V2] [linux-yocto-dev standard/xlnx-soc] New patches for v5.4

2019-12-16 Thread quanyang.wang
On 12/16/19 4:46 PM, Michal Simek wrote: Hi, Naga: Can you please take a look at these spi patches? On 16. 12. 19 9:36, quanyang.w...@windriver.com wrote: From: Quanyang Wang Hi Bruce & Michal, Would you please help review and merge these patches to linux-yocto-dev standard/xlnx-soc branc

[linux-yocto][PATCH 5/9] Revert "spi: spi-mem: Add support for Zynq QSPI controller"

2019-12-16 Thread quanyang.wang
From: Quanyang Wang This reverts commit 67dca5e580f1e93a66177389981541cac208c817. Revert all mainline commits for spi-zynq-qspi.c and apply SDK patches to make sure that spi-zynq-qspi.c works in spi-master frame work. Signed-off-by: Quanyang Wang --- drivers/spi/Kconfig | 15 - drive

[linux-yocto][PATCH 6/9] spi: zynq-qspi: Add driver for zynq qspi

2019-12-16 Thread quanyang.wang
From: Michal Simek The driver supports single, dual parallel and dual stacked configurations. Signed-off-by: Naga Sureshkumar Relli Signed-off-by: Michal Simek [Quanyang: original patch taken from https://github.com/Xilinx/linux-xlnx.git xlnx_rebase_v4.19] Signed-off-by: Quanyang Wang --- dr

[linux-yocto][PATCH 2/9] Revert "spi: zynq-qspi: Fix missing spi_unregister_controller when unload module"

2019-12-16 Thread quanyang.wang
From: Quanyang Wang This reverts commit 8eb2fd00f65a96143ed1535bdbf4ca4e129d30d1. Revert all mainline commits for spi-zynq-qspi.c and apply SDK patches to make sure that spi-zynq-qspi.c works in spi-master frame work. Signed-off-by: Quanyang Wang --- drivers/spi/spi-zynq-qspi.c | 2 +- 1 file

[linux-yocto][PATCH 3/9] Revert "spi: Remove dev_err() usage after platform_get_irq()"

2019-12-16 Thread quanyang.wang
From: Quanyang Wang This reverts commit 6b8ac10e0dd4b49eda513c1aa5045b3b1660d350 Revert all mainline commits for spi-zynq-qspi.c and apply SDK patches to make sure that spi-zynq-qspi.c works in spi-master frame work. Signed-off-by: Quanyang Wang --- drivers/spi/spi-zynq-qspi.c | 1 + 1 file c

[linux-yocto][PATCH 9/9] drm: xlnx: fb: open code drm_gem_fbdev_fb_create()

2019-12-16 Thread quanyang.wang
From: Hyun Kwon Signed-off-by: Hyun Kwon Signed-off-by: Quanyang Wang --- drivers/gpu/drm/xlnx/xlnx_fb.c | 56 -- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xlnx/xlnx_fb.c b/drivers/gpu/drm/xlnx/xlnx_fb.c index dfe769d4788c..5

[linux-yocto][PATCH 1/9] Revert "spi: zynq-qspi: use devm_platform_ioremap_resource() to simplify code"

2019-12-16 Thread quanyang.wang
From: Quanyang Wang This reverts commit ae91a439ac7ec8e1e925621293f45794de6366f2. Revert all mainline commits for spi-zynq-qspi.c and apply SDK patches to make sure that spi-zynq-qspi.c works in spi-master frame work. Signed-off-by: Quanyang Wang --- drivers/spi/spi-zynq-qspi.c | 4 +++- 1 fi

[linux-yocto][PATCH 8/9] spi: Fix failures in Zynq and ZynqMP qspi drivers

2019-12-16 Thread quanyang.wang
From: Amit Kumar Mahapatra There are failures in Zynq and ZynqMP qspi drivers due to framework change in Linux version 4.19 for SPI-NOR and MTD. This patch fixes the below mentioned issues in Zynq and ZynqMP respectively - Dummy was not getting set properly - Stripe was not getting enabled prope

[linux-yocto] [V2] [linux-yocto-dev standard/xlnx-soc] New patches for v5.4

2019-12-16 Thread quanyang.wang
From: Quanyang Wang Hi Bruce & Michal, Would you please help review and merge these patches to linux-yocto-dev standard/xlnx-soc branch? There are 9 patches in this V2 pull request. I drop all V1 patches and will use the patches as below: The patches: 0001-Revert-spi-zynq-qspi-use-devm_platfo

[linux-yocto][PATCH 7/9] spi: spi-zynq-qspi: Added support to use gpio cs

2019-12-16 Thread quanyang.wang
From: Brandon Maier The spi-framework's cs-gpios property can support 3+ chip selects. For gpio chip selects to work with the zynq-qspi controller, we must notify the controller that a chip select event has occurred. This can be done by poking the controller's first chip select whenever a gpio ch

[linux-yocto][PATCH 4/9] Revert "spi: spi-mem: zynq-qspi: Fix build error on architectures missing readsl/writesl"

2019-12-16 Thread quanyang.wang
From: Quanyang Wang This reverts commit ba3ce8cb3808cad0f9b8303fad4bd1c887834c82. Revert all mainline commits for spi-zynq-qspi.c and apply SDK patches to make sure that spi-zynq-qspi.c works in spi-master frame work. Signed-off-by: Quanyang Wang --- drivers/spi/spi-zynq-qspi.c | 8

Re: [linux-yocto][PATCH 3/3] spi: spi-mem: zynq-qspi: add is-dual support for zc706 board

2019-12-15 Thread quanyang.wang
Hi Naga, I get it. Will send a new patch to do this. Thanks, Quanyang On 12/16/19 2:00 PM, Naga Sureshkumar Relli wrote: Hi Quanyang, You can use the same driver which is there in xlnx_rebase_v4.19. Thanks, Naga Sureshkumar Relli -Original Message- From: Quanyang Wang Sent: Monda

Re: [linux-yocto][PATCH 3/3] spi: spi-mem: zynq-qspi: add is-dual support for zc706 board

2019-12-15 Thread quanyang.wang
Hi Naga, On 12/16/19 12:43 PM, Naga Sureshkumar Relli wrote: Hi Quanyang, Ok. The changes looks good. If your target is for Zynq board, Then no issues. But for 5.4 Xilinx tree, we will use older driver, which is not a spi-mem driver. Because in 5.4 kernel spi-zynq-qspi.c driver is under spi-me

Re: [linux-yocto][PATCH 3/3] spi: spi-mem: zynq-qspi: add is-dual support for zc706 board

2019-12-13 Thread quanyang.wang
Hi Naga, On 12/13/19 6:29 PM, Naga Sureshkumar Relli wrote: Hi Quanyang, The driver zynq-qspi.c which was written under spi-mem framework supports only single CS. The changes you are done to support dual-parallel, inside the driver are fine from controller side but there Is no support yet in

Re: [linux-yocto][PATCH 2/3] xilinx-zynqmp: add xlnx_drm_framebuffer_init to replace drm_gem_fbdev_fb_create

2019-12-12 Thread quanyang.wang
Hi Hyun, On 12/13/19 2:10 AM, Hyun Kwon wrote: Hi Quanyang, Thanks for the patch. -Original Message- From: Michal Simek Sent: Thursday, December 12, 2019 5:13 AM To: quanyang.w...@windriver.com; Bruce ; Michal Simek ; Hyun Kwon Cc: linux-yo...@yoctoproject.org Subject: Re: [linux-yo

Re: [linux-yocto] [linux-yocto-dev standard/xlnx-soc]][PATCH 0/3] New patches for v5.4

2019-12-10 Thread quanyang.wang
Hi Michal, Any comment? Thanks, Quanyang On 12/3/19 6:11 PM, quanyang.w...@windriver.com wrote: From: Quanyang Wang Hi Bruce & Michal, There are 3 patches in this pull-request. 1) The patch "0001-spi-zynq-qspi-use-wait_for_completion_timeout-instea.patch" fixes a bug which occurs in zc70

[linux-yocto][PATCH 1/2] xilinx-zynq: add the support for xlinx-zynq bsp

2019-12-05 Thread quanyang.wang
From: Quanyang Wang This add cfg&scc files to support xilinx zc702 and zc706 boards. Signed-off-by: Quanyang Wang Signed-off-by: Bruce Ashfield --- bsp/xilinx-zynq/xilinx-zynq-standard.scc | 7 + bsp/xilinx-zynq/xilinx-zynq.cfg | 199 +++ bsp/xilinx-zynq/xilinx-

[linux-yocto][kernel-cache master] xilinx-zynq: add xilinx-zynq kernel-cache for master branch

2019-12-05 Thread quanyang.wang
From: Quanyang Wang Hi Bruce, These patches are picked up from kernel-cache v5.2 branch, and no modification. Would you please help merge the patches to yocto-kernel-cache master branch? Quanyang Wang (2): xilinx-zynq: add the support for xlinx-zynq bsp xilinx-zynq: enable coresight and xad

[linux-yocto][PATCH 2/2] xilinx-zynq: enable coresight and xadc kernel options for xilinx-zynq bsp

2019-12-05 Thread quanyang.wang
From: Quanyang Wang Signed-off-by: Quanyang Wang Signed-off-by: Bruce Ashfield --- bsp/xilinx-zynq/xilinx-zynq.cfg | 9 + 1 file changed, 9 insertions(+) diff --git a/bsp/xilinx-zynq/xilinx-zynq.cfg b/bsp/xilinx-zynq/xilinx-zynq.cfg index 3b4cc64de..5cb532949 100644 --- a/bsp/xilinx-z

[linux-yocto][PATCH 3/3] spi: spi-mem: zynq-qspi: add is-dual support for zc706 board

2019-12-03 Thread quanyang.wang
From: Quanyang Wang There are 2 SPI flash memories in zc706 board and it use the configuration "Dual SS, 8-bit Parallel" which means separate Slave-Select lines and separate 4 data lines. So add the is-dual support for zc706 board according to the spi driver in SDK. Refer to bd2c1810ae87 ("spi:

[linux-yocto][PATCH 2/3] xilinx-zynqmp: add xlnx_drm_framebuffer_init to replace drm_gem_fbdev_fb_create

2019-12-03 Thread quanyang.wang
From: Quanyang Wang Since the function drm_gem_fbdev_fb_create has been removed in commit 73415b4ea5b5 ("drm/fb: remove unused function: drm_gem_fbdev_fb_create()"), add a new function xlnx_drm_framebuffer_init to create a drm_framebuffer structure. Signed-off-by: Quanyang Wang --- drivers/g

[linux-yocto] [linux-yocto-dev standard/xlnx-soc]][PATCH 0/3] New patches for v5.4

2019-12-03 Thread quanyang.wang
From: Quanyang Wang Hi Bruce & Michal, There are 3 patches in this pull-request. 1) The patch "0001-spi-zynq-qspi-use-wait_for_completion_timeout-instea.patch" fixes a bug which occurs in zc706 and zc702 boards using mainline and linux-yocto kernel. Using the command as below can reproduce it

[linux-yocto][PATCH 1/3] spi: zynq-qspi: use wait_for_completion_timeout instead of wait_for_completion_interruptible_timeout

2019-12-03 Thread quanyang.wang
From: Quanyang Wang When umount jffs2 filesystem on mtdblock device, the process "jffs2_gcd_mtdX" which calls zynq_qspi_exec_mem_op to read/write flash will receive signal "SIGKILL" from thread "jffs2_stop_garbage_collect_thread". This means that at this moment the function "wait_for_completion_

[linux-yocto][PATCH 8/9] sound: soc: xilinx: give a name to stream_name in xilinx_dp_dai_links

2019-12-03 Thread quanyang.wang
From: Quanyang Wang If .stream_name is NULL, when calling "aplay -l", it will show: card 0: monitor [DisplayPort monitor], device 0: (null) xilinx-dp-snd-codec-dai-0 [(null) xilinx-dp-snd-codec-dai-0] Adding .stream_name can eliminate the "(null)" in the output. Signed-off-by: Quanyang Wang

[linux-yocto][PATCH 7/9] i2c: cadence: keep bus_hold_flag unless I2C_M_NOSTART is set

2019-12-03 Thread quanyang.wang
From: Quanyang Wang When using i2c_smbus_read_byte_data to read one byte from a slave device, because of the commit d358def70688 ("i2c: cadence: Fix the hold bit setting"), the transaction becomes: S Addr Wr [A] Comm [A] P S Addr Rd [A] [Data] NA P ^ CR_HOL

[linux-yocto][PATCH 3/9] ARM: zynq: use physical cpuid in zynq_slcr_cpu_stop/start

2019-12-03 Thread quanyang.wang
From: Quanyang Wang When kernel booting, it will create a cpuid map between the logical cpus and physical cpus. In a normal boot, the cpuid map is as below: Physical Logical 0==> 0 1==> 1 But in kdump, there is a condition that the crash happens at the p

[linux-yocto][PATCH 9/9] xilinx-zynq: Revert "zynq: SMP crashkernel support"

2019-12-03 Thread quanyang.wang
From: Quanyang Wang This reverts commit 5d1a5900882ceb86cddf36c258bd5bda498c8da8. Since the commit ("ARM: zynq: use physical cpuid in zynq_slcr_cpu_stop/start") has fixed the hang issue in kdump, this patch can be reverted. Signed-off-by: Quanyang Wang Acked-by: Michal Simek Signed-off-by: Br

[linux-yocto] [linux-yocto-dev standard/xlnx-soc][PATCH 0/9] Patches from linux-yocto v5.2 branch

2019-12-03 Thread quanyang.wang
From: Quanyang Wang Hi Bruce & Michal, There are 9 patches in this pull request. The patch "0001-ARM-dts-zynq-enablement-of-coresight-topology.patch" is picked from the upstream commit from Michal and delete ITM compatible string from it. The patch "0008-sound-soc-xilinx-give-a-name-to-stream_n

[linux-yocto][PATCH 4/9] clk: zynqmp: fix memory leak in zynqmp_register_clocks

2019-12-03 Thread quanyang.wang
From: Quanyang Wang This is detected by kmemleak running on zcu102 board: unreferenced object 0xffc877e48180 (size 128): comm "swapper/0", pid 1, jiffies 4294892909 (age 315.436s) hex dump (first 32 bytes): 64 70 5f 76 69 64 65 6f 5f 72 65 66 5f 64 69 76 dp_video_ref_div 31 00 00 00 00 00 00

[linux-yocto][PATCH 5/9] dma: xilinx: dpdma: alloc xilinx_dpdma_tx_desc using GFP_ATOMIC

2019-12-03 Thread quanyang.wang
From: Quanyang Wang The function xilinx_dpdma_chan_alloc_tx_desc can be called from atomic context, hence use GFP_ATOMIC instead of GFP_KERNEL, or else it will cause the calltrace as below: BUG: sleeping function called from invalid context at mm/slab.h:418 in_atomic(): 1, irqs_disabled(): 128,

[linux-yocto][PATCH 2/9] arm: zynq: delete AFLAGS_suspend.o to fix compile warning

2019-12-03 Thread quanyang.wang
From: Quanyang Wang When using arm-linux-gnueabihf-gcc v9.2.0 to compile kernel, there will be warning info as below: cc1: warning: switch '-mcpu=cortex-a9' conflicts with '-march=armv7-a' switch This is because that if "-march" and "-mcpu" options are passed to gcc together, gcc will check if

[linux-yocto][PATCH 6/9] drivers: soc: xilinx: fix compile warning by defining payload array length to 32

2019-12-03 Thread quanyang.wang
From: Quanyang Wang In zynqmp-ipi-mailbox.c and zynqmp_r5_remoteproc.c, the variables of zynqmp_ipi_message structures are all using 32 as the maximum size of data length. So move IPI_BUF_LEN_MAX to zynqmp-ipi-message.h to share with zynqmp_power.c. Signed-off-by: Quanyang Wang Acked-by: Michal

[linux-yocto][PATCH 1/9] ARM: dts: zynq: enablement of coresight topology

2019-12-03 Thread quanyang.wang
From: Zumeng Chen This patch is to build the coresight topology structure of zynq-7000 series according to the docs of coresight and userguide of zynq-7000. Signed-off-by: Zumeng Chen Link: https://patchwork.kernel.org/patch/11181257/ [Quanyang: delete compatible string for itm node] Signed-off

[linux-yocto][PATCH 2/2] yaffs: add strict check when call yaffs_internal_read_super

2019-12-03 Thread quanyang.wang
From: Quanyang Wang When kernel booting, mount_block_root will be called to judge the filesystem type of root device. Then .mount function in file_system_type structure will do the check operation. But yaffs filesystem has a relaxed examination because as a filesystem for NAND Flash, it doesn't e

[linux-yocto][PATCH 1/2] yaffs: repair yaffs_get_mtd_device

2019-12-03 Thread quanyang.wang
From: Quanyang Wang The function yaffs_get_mtd_device use wrong function to retrieve mtd_info structure (using yaffs_get_mtd_device itself will cause dead loop). Use get_mtd_device to do this. Signed-off-by: Quanyang Wang --- fs/yaffs2/yaffs_mtdif.c | 12 ++-- 1 file changed, 10 inser

[V2][linux-yocto][linux-yocto v5.2/standard/base][linux-yocto-dev standard/base][PATCH 0/1] yaffs: add strict check when call yaffs_internal_read_super

2019-12-03 Thread quanyang.wang
From: Quanyang Wang Hi Bruce, V1 ---> V2: 1. split into 2 patches to make the fix more reasonable. 2. add crash info to the patch. Would you please help merge this patch to the branches for: linux-yocto v5.2/standard/base linux-yocto-dev standard/base Quanyang Wang (2): yaffs: repair yaffs_

Re: [linux-yocto][PATCH 1/1] yaffs: add strict check when call yaffs_internal_read_super

2019-12-03 Thread quanyang.wang
On 12/3/19 4:38 PM, Kevin Hao wrote: On Tue, Dec 03, 2019 at 04:27:15PM +0800, quanyang.wang wrote: From: Quanyang Wang When kernel booting, mount_block_root will be called to judge the filesystem type of root device. Then .mount function in file_system_type structure will do the check

[linux-yocto][linux-yocto v5.2/standard/base][linux-yocto-dev standard/base][PATCH 0/1] yaffs: add strict check when call yaffs_internal_read_super

2019-12-03 Thread quanyang.wang
From: Quanyang Wang Hi Bruce, Would you please help merge this patch to the branches for: linux-yocto v5.2/standard/base linux-yocto-dev standard/base This patch fixes a bug: when using MMC card with btrfs filesystem to be root device, kernel will crash and the log as below: mmc0: new high sp

[linux-yocto][PATCH 1/1] yaffs: add strict check when call yaffs_internal_read_super

2019-12-03 Thread quanyang.wang
From: Quanyang Wang When kernel booting, mount_block_root will be called to judge the filesystem type of root device. Then .mount function in file_system_type structure will do the check operation. But yaffs filesystem has a relaxed examination because as a filesystem for NAND Flash, it doesn't e

<    1   2   3   4   5