From patchwork Fri May 21 16:59:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1482274 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=KAW1fbpy; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FmtC15SFDz9sV5 for ; Sat, 22 May 2021 03:00:13 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5E3A482E7F; Fri, 21 May 2021 19:00:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KAW1fbpy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0F3F282E7F; Fri, 21 May 2021 19:00:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D45CC82CBE for ; Fri, 21 May 2021 18:59:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x636.google.com with SMTP id n8so6078496plf.7 for ; Fri, 21 May 2021 09:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MB3mQE8mYV12PsFpUhmKC1a953phQd0wwsvBpUicZ5E=; b=KAW1fbpyOfjGoZql/pq07VC/hlNkJrdg7rlMhx/WUqkZl4+pCJ9CFJXA+ju4O39GM0 CZzzjmgq8/AsnAtNOFMS0DV2k7PedNVovPFww03RvThGV3lHIfEYL4QK8mmJzZ9wnPYg A+OgNOwsOXMERTC0FuN/703sMdm90+6Rhs9f1qX0E3Jvv9/gORRsw7Aoq+nYbNcaJl9t VfHNh3vfDl+dFZnwnEB1xnL5xdSfWNvL1QvqiRgsuTk+lckfCjKfwu0DGG0nKMVRYVH2 ko1nm5t8W4pmQTgY7OjpbhwJwUuJjLrt28uWM4PxKsfaHt/P3QPMlB85sKR1knHiergd roKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MB3mQE8mYV12PsFpUhmKC1a953phQd0wwsvBpUicZ5E=; b=ptDXjttjhPKANRlLr9nRTPbbGmKjy+f9xZxb2HQ0uF43o6aeNqEehF6jYe3txT6HNR GZKpW9qgpuQrPmSIlgkyjZRjGzp5Vud0wjsKLbzlzu/pwhF657H3/BNP0W+MSRHG2XWJ IdWExH3awJVqaLVEbBlQPns2Ia9NJ6SB3ayUHtazu0kEjbBuLtoSykwXtR8y5M9SYEVF JKVJaW6sPfOJcuOX4m5qB0zDu+XZDc447yAEiP9P0SUpFeznv58Salgn+WhKeqKdOF+y Jrg48hpb1MkR0L9HbCh5qPYLS110x9SZACgkBnr3xtBXUAkJbIEOtKKCjM1DRJ/iaC4e VorQ== X-Gm-Message-State: AOAM530nJE8ZY2a+s89n6vxs3CZUDKRZN0/pt3iVLiRm7QOSaTklwcPn QaOJAFnCXt0GOus0ByHqMgR+vIAh6X4llg== X-Google-Smtp-Source: ABdhPJwPp/8+afASMsN3ugpmY2FonNNXfJ540iiJoxLZvpp1VK2xgvF0TioUjaLvVgibG3w49j1kwg== X-Received: by 2002:a17:90b:4751:: with SMTP id ka17mr11476104pjb.189.1621616396924; Fri, 21 May 2021 09:59:56 -0700 (PDT) Received: from archl-on1.. ([103.51.72.119]) by smtp.gmail.com with ESMTPSA id c15sm453997pgt.68.2021.05.21.09.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 09:59:56 -0700 (PDT) From: Anand Moon To: u-boot@lists.denx.de Cc: Neil Armstrong , Kever Yang , Shawn Lin , Patrick Wildt , Anand Moon Subject: [PATCHv2 1/3] pci: pcie_dw_rockchip: Fixed the below compilation error Date: Fri, 21 May 2021 16:59:47 +0000 Message-Id: <20210521165949.15909-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Use the generic error number instead of specific error number. Changes fix the below error. drivers/pci/pcie_dw_rockchip.c: In function 'rk_pcie_read': drivers/pci/pcie_dw_rockchip.c:70:10: error: 'PCIBIOS_UNSUPPORTED' undeclared (first use in this function) 70 | return PCIBIOS_UNSUPPORTED; | ^~~~~~~~~~~~~~~~~~~ drivers/pci/pcie_dw_rockchip.c: In function 'rk_pcie_write': drivers/pci/pcie_dw_rockchip.c:90:10: error: 'PCIBIOS_UNSUPPORTED' undeclared (first use in this function) 90 | return PCIBIOS_UNSUPPORTED; | ^~~~~~~~~~~~~~~~~~~ Cc: Patrick Wildt Cc: Neil Armstrong Cc: Kever Yang Signed-off-by: Anand Moon Reviewed-by: Neil Armstrong --- v1: Drop the PCI ERROR MACRO, --- drivers/pci/pcie_dw_rockchip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index bc22af4230..3ac2434b69 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -67,7 +67,7 @@ static int rk_pcie_read(void __iomem *addr, int size, u32 *val) { if ((uintptr_t)addr & (size - 1)) { *val = 0; - return PCIBIOS_UNSUPPORTED; + return -EOPNOTSUPP; } if (size == 4) { @@ -87,7 +87,7 @@ static int rk_pcie_read(void __iomem *addr, int size, u32 *val) static int rk_pcie_write(void __iomem *addr, int size, u32 val) { if ((uintptr_t)addr & (size - 1)) - return PCIBIOS_UNSUPPORTED; + return -EOPNOTSUPP; if (size == 4) writel(val, addr); From patchwork Fri May 21 16:59:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1482275 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Mf034wMz; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FmtCJ3f5bz9sVt for ; Sat, 22 May 2021 03:00:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 78D0A82E80; Fri, 21 May 2021 19:00:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Mf034wMz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E4C382E7E; Fri, 21 May 2021 19:00:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4F82582C97 for ; Fri, 21 May 2021 19:00:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x62c.google.com with SMTP id n8so6078566plf.7 for ; Fri, 21 May 2021 10:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VY10a8eiAJiAuvqiTTD3Hy2C8Z1fezBa9HUmOTwtXm0=; b=Mf034wMzq0sQaWix554S6IF4Ssd3jZRO/lYVZ2bfY7SyEr0QhCHYtRZKSMJNU8MJnB 3XoqTZzbvwLc1HvgoWBgh6Lvmw1IRL3LVlMpYtmlyQhYLSojM5tPUE3gH6XJzhK19G3u N2SAamSpPpCO7ihY2O6vnYXJa724XHly47JQ+C2RGfVdQ61532lj7s+cyFkLosAsXUlC B3EX+uci75WXZ9CkQ9vLyU3cz/C/UtTrOnQSyYyvmkWagoJrdemeqfxynicsQq+vX8Tk 5kOU55lXGU1etdAdD1L6XYGntz25lOVKoH+CMilxVBkSFwDfV/Ln+DtcC/YmK/SoQVJS bFLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VY10a8eiAJiAuvqiTTD3Hy2C8Z1fezBa9HUmOTwtXm0=; b=GeD03Rrhp8Uy4uwV2mu9iudxCFX8aezlr3Q9bKUopAcvErvZHWs/GAybJDUTzOz88n Ay93rb0XTtXZUepuMJvD3JkArL0nPGyEUPXvrWmYqYzZqb8vTK4/9XdKksbYBlroPa8D QW75k6s/aj+ATiCSt6J4y58JcZDXqYwXJM3Ja3uesG2Zl9vCUb0tdVD6LSgupis/KMCz IRBK5bNJZsvvqpFUK1tVOu3+ePkrkfG4/tHPsNw0aAgmMx7fwG178k0ig4XwhlzgMH62 i2w82tlmEMw/IbUGWLOqd3wR4Ug2kDQOJ/YnWYqHlbEbZgZhCPJnHvtG2FsqQnONZ9r+ vcog== X-Gm-Message-State: AOAM530ucb4gWKxvQXb1Jj8PxxWTj/at9ONplcdYB01+ZlttCk5ZGn62 MyQ+EjDZHEIU4XXQESrKta3MxxLRWM8szQ== X-Google-Smtp-Source: ABdhPJzECvHNhOghZRSJkuzKX7+stTbCcWI+USuRWNDif7NFf8XjcnoYKeju66BYEw1AsHArbEvlvQ== X-Received: by 2002:a17:90a:602:: with SMTP id j2mr11895938pjj.211.1621616399666; Fri, 21 May 2021 09:59:59 -0700 (PDT) Received: from archl-on1.. ([103.51.72.119]) by smtp.gmail.com with ESMTPSA id c15sm453997pgt.68.2021.05.21.09.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 09:59:59 -0700 (PDT) From: Anand Moon To: u-boot@lists.denx.de Cc: Neil Armstrong , Kever Yang , Shawn Lin , Patrick Wildt , Anand Moon Subject: [PATCHv2 2/3] pci: pcie_dw_rockchip: Drop the unused variable warning Date: Fri, 21 May 2021 16:59:48 +0000 Message-Id: <20210521165949.15909-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210521165949.15909-1-linux.amoon@gmail.com> References: <20210521165949.15909-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Drop the unused variable warning below. drivers/pci/pcie_dw_rockchip.c:161:6: warning: unused variable 'val' [-Wunused-variable] 161 | u32 val; | ^~~ Cc: Patrick Wildt Cc: Neil Armstrong Cc: Kever Yang Signed-off-by: Anand Moon Reviewed-by: Neil Armstrong --- drivers/pci/pcie_dw_rockchip.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index 3ac2434b69..4e448c0a3d 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -158,8 +158,6 @@ static inline void rk_pcie_writel_apb(struct rk_pcie *rk_pcie, u32 reg, */ static void rk_pcie_configure(struct rk_pcie *pci, u32 cap_speed) { - u32 val; - dw_pcie_dbi_write_enable(&pci->dw, true); clrsetbits_le32(pci->dw.dbi_base + PCIE_LINK_CAPABILITY, From patchwork Fri May 21 16:59:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1482276 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZewtTCBD; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FmtCT1YWcz9sVt for ; Sat, 22 May 2021 03:00:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C3B382E8B; Fri, 21 May 2021 19:00:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZewtTCBD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2AC7682E85; Fri, 21 May 2021 19:00:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 24F7A82E82 for ; Fri, 21 May 2021 19:00:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pg1-x529.google.com with SMTP id l70so14713954pga.1 for ; Fri, 21 May 2021 10:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XhCHEncqwhyhSxDdc2dl1WwbeNua3lKUQ51ifJPcv88=; b=ZewtTCBD6gXGOD8ydI4FUIQqNQPaWy9W0M4UPph74v/GIqITWjW2+vNjERnVx61SPg wGqr/+zNe98tYvCD1HVfaa33BeOmMwFw0ZVT/my0VGDNYFjQEm5XM2LKgIHfOEXVw6aN aHcR1kgoHmlD9PUpUr41SywhrAZ9JjmVXTp6c8bDSpp1PbDk18HlLF0vk/19zEQrdvi7 g/tybBDQlZTWjKYpBOMZORUDpFqwKEcbdcZ7GsMUynGgE2n8Nc0EvdqGgOI0oOzGeZB3 A+ATbKmnOh8NvG/7x4RdZyrbxhQr7hr/7tRSnPilr9JOz30JXUeVWulL2xyTEECRWyIJ 94qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XhCHEncqwhyhSxDdc2dl1WwbeNua3lKUQ51ifJPcv88=; b=jxcYbWLLYHMigxlnw1gFifEoegZB6UF4EVXxjw7iflXccp1Dq2VbOBRwPDlE/+iu3U Hv5pj8AxsaXv4cgxdQsIRUe7sV6O+YRf78nEBfJQ78pO4rPsSYKbwd77Uel8LoYtXC4l 8EPf2f4aeeWThRk/xDtRANLJdJqUqZPe6hHyTJGF9eTUYfSynVIIkICLfRzaL+Ufr8Sq o6GxEW9Frt/r3gX7DqHxWBEmmOaDaP957y/cFiB1njApFVBKhfwi4d2tRx/HO0XyYgrq srZUQaWuwfsGDHu7PGwc8g0pO/2vMIn2lOEoMoVs2reGZs9p4P9XiYa1oSy7YVv0IoiO mOjA== X-Gm-Message-State: AOAM532OxJ3YiE5m+wMpjoZWvBMNzwzjubVxoR5I+2WhG146fXwTFHe1 JuxpyshUKcy0yPPvqvyuF1iijbsgVnpJDQ== X-Google-Smtp-Source: ABdhPJyr3kve1F6sDEQ57MsRVFYs0hUODpkNUNQHGxUm7viiTLyagR9S/wtipyXBKRRNMe+8j+xFjQ== X-Received: by 2002:a63:ed41:: with SMTP id m1mr10903198pgk.252.1621616402428; Fri, 21 May 2021 10:00:02 -0700 (PDT) Received: from archl-on1.. ([103.51.72.119]) by smtp.gmail.com with ESMTPSA id c15sm453997pgt.68.2021.05.21.10.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 10:00:02 -0700 (PDT) From: Anand Moon To: u-boot@lists.denx.de Cc: Neil Armstrong , Kever Yang , Shawn Lin , Patrick Wildt , Anand Moon Subject: [PATCHv2 3/3] pci: pcie_dw_rockchip: Use mleep macro to fix below error Date: Fri, 21 May 2021 16:59:49 +0000 Message-Id: <20210521165949.15909-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210521165949.15909-1-linux.amoon@gmail.com> References: <20210521165949.15909-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Define msleep macro to fix below error. drivers/pci/pcie_dw_rockchip.c:254:3: warning: implicit declaration of function 'msleep' [-Wimplicit-function-declaration] Cc: Patrick Wildt Cc: Neil Armstrong Cc: Kever Yang Signed-off-by: Anand Moon --- v1: drop the udelay changes. --- drivers/pci/pcie_dw_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index 4e448c0a3d..bdc4d51007 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -60,6 +60,7 @@ struct rk_pcie { #define PCIE_CLIENT_DBG_TRANSITION_DATA 0xffff0000 #define PCIE_CLIENT_DBF_EN 0xffff0003 +#define msleep(a) udelay((a) * 1000) /* Parameters for the waiting for #perst signal */ #define PERST_WAIT_MS 1000