From patchwork Wed Mar 17 08:17:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1454542 X-Patchwork-Delegate: monstr@monstr.eu 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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=S6ZQ/FFl; 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 4F0jhS3lBrz9sRR for ; Wed, 17 Mar 2021 19:17:58 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E4C1A827E3; Wed, 17 Mar 2021 09:17:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="S6ZQ/FFl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 863C482802; Wed, 17 Mar 2021 09:17:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (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 6044B827AB for ; Wed, 17 Mar 2021 09:17:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x535.google.com with SMTP id u4so1125627edv.9 for ; Wed, 17 Mar 2021 01:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/VbEFWgtWJqC0Zu1WPh76UGU9aGMuj0ebE8LctCd62A=; b=S6ZQ/FFlAl9dBzy5/97icHpgWn5b4id9FKPpjn97gpmYIVlKARgLHZxJecSEb05/KW krHH/y87kSJ9zoFHSl9h0l3traXt8XDRGx/QWiKAi1JHf1AOtEQW6OFy0fOV+iRtEqnH q2N7fHLwb9o2wFkUZ6sS8Bznw6eT4NEasyt28jnAZLzXDyXolGsgmarutrUn7/llwPst fhlSd4qjSWkNze5foy/szp+ROl/DjRfSCqG+eIYYyRG3FZO6qm4tfVbnuiW3xk3Hjiwz G9+XPReLC7GIA9+ZqT3E1mMcIf86+BCi+9ExB/0Bj1KR1qNOLZIA97wzwUznKap8oMyI ac0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=/VbEFWgtWJqC0Zu1WPh76UGU9aGMuj0ebE8LctCd62A=; b=D+7HLOypSre0ae7uMsoOcoZjBjawRQxNuB783195ZbpYLptHSxwmqKSWTmc/8/kRcL iXicLyDRgGLYPfXp8Nq+oio35+OTEnjgz2JG/HZIqeOskh/c8VIWDfNPC80nXy5U2XdH UcSHssvZ9UO4hKoykYDnG5KQV7iuFlzW17OdWrUG9DM26c5wquF+JKRCjLnULP+pR/BJ O18U1tM+RLESJGPAYga7NZhTGAV2d/X3wxb7dEjDA9k/jjKWlfQxfDmgx+O3VDTuB1xO 3GAltFbzaIN+LkzWznz5mTj0ZtUmmeo1T0cuwaXx5AUWO9SQ0DDXrwXzQ+bF9ism0lgA MLXw== X-Gm-Message-State: AOAM533mPnFhzwpNgyvv6LGLf1aU5sMsRYTrF9Ymn6OxvOpsnr5fJCq0 xzL+re2dEAADW7qfbw9UsQvcJ+qevgakzgSE X-Google-Smtp-Source: ABdhPJzvGrqRDrxz4HjYnE4/SUhxSme72yahuJK6vkGA7l6l73Jvxo8KrD7nSd1HA6cowqjtRYDoQA== X-Received: by 2002:aa7:dc15:: with SMTP id b21mr40606233edu.350.1615969064681; Wed, 17 Mar 2021 01:17:44 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::45a]) by smtp.gmail.com with ESMTPSA id bh4sm4254418ejb.24.2021.03.17.01.17.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Mar 2021 01:17:44 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: T Karthik Reddy , Ashok Reddy Soma , Jagan Teki , Michal Simek Subject: [PATCH] spi: xilinx_spi: Trivial fixes in axi qspi driver Date: Wed, 17 Mar 2021 09:17:40 +0100 Message-Id: <27a58e9e05426a647289c45e75a220534b47f9e5.1615969054.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.30.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 From: T Karthik Reddy Use __func__ instead for function name in debug. Use Linux style u32 instead of uint32_t. Signed-off-by: T Karthik Reddy Acked-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- drivers/spi/xilinx_spi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 0274afdc6e0d..b892cdae9bab 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -314,8 +314,7 @@ static int xilinx_spi_set_speed(struct udevice *bus, uint speed) priv->freq = speed; - debug("xilinx_spi_set_speed: regs=%p, speed=%d\n", priv->regs, - priv->freq); + debug("%s: regs=%p, speed=%d\n", __func__, priv->regs, priv->freq); return 0; } @@ -324,7 +323,7 @@ static int xilinx_spi_set_mode(struct udevice *bus, uint mode) { struct xilinx_spi_priv *priv = dev_get_priv(bus); struct xilinx_spi_regs *regs = priv->regs; - uint32_t spicr; + u32 spicr; spicr = readl(®s->spicr); if (mode & SPI_LSB_FIRST) @@ -339,8 +338,7 @@ static int xilinx_spi_set_mode(struct udevice *bus, uint mode) writel(spicr, ®s->spicr); priv->mode = mode; - debug("xilinx_spi_set_mode: regs=%p, mode=%d\n", priv->regs, - priv->mode); + debug("%s: regs=%p, mode=%d\n", __func__, priv->regs, priv->mode); return 0; }