diff --git a/drivers/misc/xilinx-ai-engine/ai-engine-dev.c b/drivers/misc/xilinx-ai-engine/ai-engine-dev.c index 67f2ee0120f613e6a7f630b06db34205c0164682..fc80ec61a8b3c3a55e217ca155f4181f5ebf9a64 100644 --- a/drivers/misc/xilinx-ai-engine/ai-engine-dev.c +++ b/drivers/misc/xilinx-ai-engine/ai-engine-dev.c @@ -530,7 +530,7 @@ static int aie_partition_dev_match(struct device *dev, const void *data) * NULL. * * This function looks up all the devices of the AI engine class to check if - * the device is AI engine partition device if if the partition ID matches. + * the device is AI engine partition device if the partition ID matches. */ static struct aie_partition *aie_class_find_partition_from_id(u32 partition_id) { diff --git a/drivers/misc/xilinx-ai-engine/ai-engine-dma.c b/drivers/misc/xilinx-ai-engine/ai-engine-dma.c index 8f801d53bf5e05bc5362aeef023be8c05596e312..6597dba3cb7c7e68a1c788b08ffc5b068bebcf5f 100644 --- a/drivers/misc/xilinx-ai-engine/ai-engine-dma.c +++ b/drivers/misc/xilinx-ai-engine/ai-engine-dma.c @@ -82,7 +82,7 @@ aie_part_find_dmabuf_from_file(struct aie_partition *apart, * @apart: AI engine partition * @va: virtual address * @len: memory length - * @return: dma address of of the specified va, or 0 if va is not valid + * @return: dma address of the specified va, or 0 if va is not valid * * This function returns DMA address if the has been mapped to a dmabuf which * has been attached to the AI engine partition. diff --git a/drivers/misc/xilinx-ai-engine/ai-engine-fpga.c b/drivers/misc/xilinx-ai-engine/ai-engine-fpga.c index 19ca3a018c15d286faa8222f49c2d6457809084c..48cac38270f5d4e737e54d789959e6cb76edec12 100644 --- a/drivers/misc/xilinx-ai-engine/ai-engine-fpga.c +++ b/drivers/misc/xilinx-ai-engine/ai-engine-fpga.c @@ -15,9 +15,8 @@ static int aie_fpga_bridge_enable_set(struct fpga_bridge *bridge, bool enable) /* * TBD: * "Enable" should enable the SHIM tile configuration. - * "Disable" should should disable SHIM DMAs, and wait - * until SHIM DMA stops, and disable SHIM - * to PL streams within partition. + * "Disable" should disable SHIM DMAs, and wait until SHIM DMA stops, + * and disable SHIM to PL streams within partition. */ ret = mutex_lock_interruptible(&apart->mlock); if (ret) diff --git a/drivers/misc/xilinx-ai-engine/ai-engine-internal.h b/drivers/misc/xilinx-ai-engine/ai-engine-internal.h index 454aa22dfb90000a2c389bcfa64fb8f1206b63a9..de97bff2a8caa90b5dabc78979a2563f5e3f49ed 100644 --- a/drivers/misc/xilinx-ai-engine/ai-engine-internal.h +++ b/drivers/misc/xilinx-ai-engine/ai-engine-internal.h @@ -493,7 +493,7 @@ static inline u32 aie_cal_regoff(struct aie_device *adev, * partition * @apart: AI engine partition * @loc: AI engine tile location - * @return: return 0 if it it is valid, negative value for errors. + * @return: return 0 if it is valid, negative value for errors. * * This function checks if the AI engine location is within the AI engine * partition.