Tang-Bin/ARM-s…
Commits on Aug 11, 2021
-
ARM/smp_twd: Cleanup the unnecessary cast
It's not necessary to specify 'int' castingfor 'PTR_ERR(twd_clk)'. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Commits on Jul 20, 2021
-
PCI: xdma: Remove CPM code duplication
Versal CPM root port driver is upstreamed and available to use in current kernel (drivers/pci/controller/pcie-xilinx-cpm.c). Removing CPM related code support in this driver. Signed-off-by: Bharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
Bharat Kumar Gogada authored and Michal Simek committedJul 20, 2021 -
PCI: xdma: Remove CPM root port Documentation duplication
Versal CPM root port driver is upstreamed, it has dedicated documentation (Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml). Remvoing CPM root port related Documentation duplication. Signed-off-by: Bharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
Bharat Kumar Gogada authored and Michal Simek committedJul 20, 2021 -
staging: apf: Move driver to SPDX
Use SPDX licence identifier for easier license checking. Files without License and copyright are using GPL-2.0 identifier with Xilinx copyright from 2010 as others files in this folder. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek committedJul 20, 2021 -
PCI: xdma: Rename CPM_BRIDGE_BASE_OFF
Renaming CPM_BRIDGE_BASE_OFF to DMA_BRIDGE_BASE_OFF, as this offset is being used for Versal XDMA PL PCIe, and not specific to CPM. Signed-off-by: Bharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
Bharat Kumar Gogada authored and Michal Simek committedJul 20, 2021 -
xilinx: Update copyright text to correct format
Based on recommended guidance Copyright term should be also present in front of (c). That's why aligned drivers to match this pattern. It helps automated tools with source code scanning. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek committedJul 20, 2021
Commits on Jul 19, 2021
-
misc: xilinx-ai-engine: add get resource usage ioctls
Add ioctls to return resource usage: * number of static resources * number of available resources Signed-off-by: Wendy Liang <wendy.liang@xilinx.com> Acked-by: Tejus Siddagangaiah <tejus.siddagangaiah@xilinx.com>
Wendy Liang authored and Michal Simek committedJul 19, 2021 -
misc: xilinx-ai-engine: fix requesting runtime resource bitmap setting
This fix is to only set the resource for the runtime resource bitmap instead of the static resource bitmap when requesting runtime resources. Signed-off-by: Wendy Liang <wendy.liang@xilinx.com> Acked-by: Tejus Siddagangaiah <tejus.siddagangaiah@xilinx.com>
Wendy Liang authored and Michal Simek committedJul 19, 2021 -
usb: dwc3: xilinx: Handle USB3 PHY initialization properly
Modify driver to skip doing redundant controller resets when there is no USB3 PHY used. This will resolve issue with PIPE CLK bit getting set to 0 leading to device detection failure when the controller is forced to USB2.0 mode. Signed-off-by: Manish Narani <manish.narani@xilinx.com>
-
i2c: xiic: Add SCL frequency configuration support
From 'clock-frequency' device tree property, configure I2C SCL frequency by calculating the timing register values according to input clock. After soft reset in reinit function, the timing registers are set to default values (configured in vivado design). So, setting SCL frequency is done inside reinit function after the soft reset. This allows configuration of SCL frequency exclusively through software via device tree property, overriding the vivado design. If the clock-frequency parameter is not specified in DT, driver doesn't configure frequency, making it backward compatible. Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com>
Raviteja Narayanam authored and Michal Simek committedJul 19, 2021 -
dt-bindings: i2c: xiic: Add 'clock-frequency' property
Added 'clock frequency' to configure I2C SCL clock frequency. Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com>
Raviteja Narayanam authored and Michal Simek committedJul 19, 2021 -
microblaze: timer: Fix incompatible parameters passed to the function
Typecasted &cpu_id parameter passed to of_property_read_u32 function from "int *" to "u32 *" Addresses coverity: incompatible parameter Signed-off-by: Mubin Usman Sayyed <mubin.usman.sayyed@xilinx.com>
-
microblaze: timer: Add condition to check return value
Added condition to check return value of of_property_read_u32. Addresses coverity: check_return Signed-off-by: Mubin Usman Sayyed <mubin.usman.sayyed@xilinx.com>
Commits on Jul 13, 2021
-
spi: spi-cadence-quadspi: fix linking failure for ARCH arm
64-bit division "(u64 A) / (u32 B)" will break linking on ARCH arm: arm-linux-gnueabihf-ld: drivers/spi/spi-cadence-quadspi.o: in function `cqspi_setdlldelay': spi-cadence-quadspi.c:(.text+0x1400): undefined reference to `__aeabi_uldivmod' Fix this by using do_div. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
clk: si5324: fix linking failure for ARCH arm
64-bit division "(u64 A) / (u32 B)" will break linking on ARCH arm: arm-linux-gnueabihf-ld: drivers/clk/si5324drv.o: in function `si5324_find_n2ls': si5324drv.c:(.text+0xb94): undefined reference to `__aeabi_uldivmod' Fix this by using do_div. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
rtc: zynqmp: fix linking failure for ARCH arm
64-bit division "(u64 A) / (u32 B)" will break linking on ARCH arm: rm-linux-gnueabihf-ld: drivers/rtc/rtc-zynqmp.o: in function `xlnx_rtc_read_offset': rtc-zynqmp.c:(.text+0x48): undefined reference to `__aeabi_ldivmod' Fix this by using do_div. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
crypto: xilinx: Drop COMPILE_TEST for CRYPTO_DEV_ZYNQMP_SHA3
The driver zynqmp-sha.c calls the function "__flush_cache_user_range" which is arm64 specific, and it will break compilation in other ARCHs. So drop COMPILE_TEST from Kconfig. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
v4l: xilinx: hdmirx: add missing header to fix compile error
This patch fixes compile error as below: drivers/media/platform/xilinx/xilinx-hdmirxss.c:500:9: error: implicit declaration of function ‘FIELD_PREP’ [-Werror=implicit-function-declaration] 500 | val |= FIELD_PREP(HDMIRX_VTD_CTRL_TIMERBASE_MASK, count); | ^~~~~~~~~~ Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> -
firmware: xilinx: unify function definitions
The args type and number of some functions are different between CONFIG_ZYNQMP_FIRMWARE is enabled and disabled. Let's unify them to avoid compile error. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
media: adv7511-v4l2: fix compile error
This patch fixes compile error as below: drivers/media/i2c/adv7511-v4l2.c:416:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 416 | return 0; | ^ Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> -
pmbus: tps544: adapt for updated pmbus interfaces
Because of commit 43f33b6 ("hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support"), the function "pmbus_read_word_data" needs one more argument "phase". Since tps544 doesn't support multi-phase, this "phase" argument will be ignored. Let's pass "0xff" to pmbus_read_word_data just to avoid compile error. Because of commit dd43193 ("hwmon (pmbus) use simple i2c probe function"), remove "id" argument from tps544_probe since pmbus_do_probe doesn't need it anymore. Because of commit 3bce071 ("hwmon: (pmbus) shrink code and remove pmbus_do_remove()"), remove the obsolete function "pmbus_do_remove". Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
misc: xilinx-ai-engine: fix compile error due to incorrect arg type
The argument "attr" to sysfs_attr_init is "struct attribute *" type not "struct device_attribute *" type. This patch fixes the compile error as below: drivers/misc/xilinx-ai-engine/ai-engine-sysfs.c: In function ‘aie_sysfs_create_dev_attr’: /home/wrsadmin/repos/linux/include/linux/sysfs.h:55:8: error: ‘struct device_attribute’ has no member named ‘key’ 55 | (attr)->key = &__key; \ | ^~ Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> -
include: uapi: xlnxsync: fix hdrtest failure due to unknown type name
When enabling CONFIG_UAPI_HEADER_TEST, there will be compile error as below: In file included from <command-line>:32: ./usr/include/linux/xlnxsync.h:37:2: error: unknown type name ‘u8’ 37 | u8 prod_sync : 1; | ^~ There is no u8/u16/u32/u64/bool definition in uapi headers. So we need use __u8/__u16/__u32/__u64 which defined in include/uapi/linux/types.h. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> -
include: uapi: xlnx_tsmux: fix hdrtest failure due to unknown type name
When enabling CONFIG_UAPI_HEADER_TEST, there will be compile error as below: In file included from <command-line>:32: ./usr/include/linux/xlnx_mpg2tsmux_interface.h:59:2: error: unknown type name ‘u8’ 59 | u8 stream_id; | ^~ There is no u8/u16/u32/u64/bool definition in uapi headers. So we need use __u8/__u16/__u32/__u64 which defined in include/uapi/linux/types.h. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> -
staging: xroeframer: rename "lp" to "xroe_lp"
There are two global variables with the same name "lp". This will result the link error as below: aarch64-linux-gnu-ld: drivers/staging/xroeframer/xroe_framer.o:(.bss+0x0): multiple definition of `lp'; drivers/net/ethernet/xilinx/xilinx_tsn_switch.o:(.bss+0x80): first defined here Change "lp" to "xroe_lp" in xroe_framer.c to avoid this error. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
-
kbuild: add xilinx-sdirxss.h/xilinx-hls.h/xilinx-v4l2-events.h to no-…
…header-test When enabling CONFIG_UAPI_HEADER_TEST, there will be compile error as below: In file included from ./usr/include/linux/xilinx-sdirxss.h:7, from <command-line>:32: ./usr/include/linux/videodev2.h:2418:20: error: field ‘timestamp’ has incomplete type 2418 | struct timespecx timestamp; | ^~~~~~~~~ This is because that xilinx-sdirxss.h/xilinx-hls.h/xilinx-v4l2-events.h include "videodev2.h" which includes "sys/timer.h". Just as what said in commit d6fc9fc ("kbuild: compile-test exported headers to ensure they are self-contained"), these headers will result header-test failure for some compilers. So let's add these 3 header to no-header-test list just like other headers which include "videodev2.h" Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> -
pinctrl: zynqmp: some code cleanups
Some minor code cleanups and updates which includes - Mention module name under help in Kconfig. - Remove extra lines and duplicate Pin range checks. - Replace 'return ret' with 'return 0' in success path. - Copyright year update. - use devm_pinctrl_register() instead pinctrl_register() in probe. Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com> Link: https://lore.kernel.org/r/1624273214-66849-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> State upstream (fa99e70)
Sai Krishna Potthuri authored and Michal Simek committedJul 13, 2021 -
drm: xlnx: drv: initialize vblank for all crtcs
There are multiple possible crtc blocks: mixer, zynqmp_display and pl_disp. Initialize vblank for all of them to avoid the drm_crtc_vblank_reset core dump which is caused by vblank->pending_work not initialized. Signed-off-by: Jianqiang Chen <jianqiang.chen@xilinx.com>
Commits on Jul 7, 2021
-
media: i2c: ap1302: Add a flag to check the streaming status
Add a flag to check the streaming status of ISP and avoid calling stream on logic multiple times. Updating the registers of ISP when ISP is in streaming state will cause errors. Signed-off-by: Anil Kumar Mamidala <anil.mamidala@xilinx.com>
Anil Kumar Mamidala authored and Michal Simek committedJul 7, 2021
Commits on Jul 5, 2021
-
xilinx: zynqmp-aes: Fix uninitialized variable
The variable "walk" of type "skcipher_walk" is initialized with zero Signed-off-by: Ankush Mehtre <ankush.mehtre@xilinx.com>
Ankush Mehtre authored and Siva Addepalli committedJul 5, 2021 -
xilinx: zynqmp-aes: Fix passing incompatible parameters
Typecasted arguments in a function call zynqmp_pm_aes_engine() from "int *" to "u32 *" Signed-off-by: Ankush Mehtre <ankush.mehtre@xilinx.com>
Ankush Mehtre authored and Siva Addepalli committedJul 5, 2021 -
dt-bindings: serial: Remove unused file
The devicetree binding is documented in xlnx,opb-uartlite.txt file remove the unused file. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Shubhrajyoti Datta authored and Siva Addepalli committedJul 5, 2021
Commits on Jul 1, 2021
-
The Xen pvcalls frontend driver needs to be explicitly enabled, and there isn't a way to do it upstream yet. This patch adds a simple boolean command line option (gated on CONFIG_XEN_PVCALLS_FRONTEND) to enable pvcalls. It is a temporary solution but it is the best we can do until a proper upstream mechanism to enable pvcalls is introduced. The patch has no effect if CONFIG_XEN_PVCALLS_FRONTEND is not enabled, or if pvcalls=true is not passed as a command line argument. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Stefano Stabellini authored and Michal Simek committedJul 1, 2021
Commits on Jun 30, 2021
-
mtd: spi-nor: Don't parse 4BAIT via Zynq QSPI
If a flash support 4byte address mode, spi-nor subsystem will let it work on 4byte address mode by calling spi_nor_parse_4bait. However, Zynq QSPI controller does not support 4byte address mode(please see 'commit bd78733 ("mtd: spi-nor: Add 4byte support for Zynq QSPI controller")'upstream). So do not parse 4BAIT if the flash is connected to Zynq QSPI. Signed-off-by: Yun Zhou <yun.zhou@windriver.com> Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Commits on Jun 28, 2021
-
dt-bindings: fpga: zynq: convert bindings to YAML
Convert FPGA for Xilinx Zynq SoC bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Link: https://lore.kernel.org/r/20210613212856.296153-1-iwamatsu@nigauri.org Signed-off-by: Rob Herring <robh@kernel.org> State: upstream (1e32084)