[Top] [All Lists]

Re: [PATCH v2 1/2] MIPS: cavium-octeon: cvmx-helper-board: print unknown

To: Aaro Koskinen <>
Subject: Re: [PATCH v2 1/2] MIPS: cavium-octeon: cvmx-helper-board: print unknown board warning only once
From: David Daney <>
Date: Mon, 24 Jun 2013 11:52:23 -0700
Cc: Ralf Baechle <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=pDwYjQS/lqzn2+6M7jsBAAk+ShHuiDGmOZ45Dh8EBkk=; b=BRKpH+9Nw9Kp2pDlRRJNpgxDI+JKgQZn/6i9FhJrRycL3T6Ql+m4+iApW3yN0M0j1A prsZ1b/8fZiW89ZG/6wBhX/rynS1S41/KjSYaoZqC+41c3qyRXWJUGzkYYRr47mC76/+ iFhMApC1LOdj94XHVOZMl6A6zLwdt/Mv6vsyylNlRkvYcdeGXMiSC5is8ghll8L1+T2d 4I1wqEVBE2rYI5UFeXa9HQsJ/v4f2r0lOt0t5h2Gg3I4yEw7JsQu6mCDwcUliD96P8Tn 6w3PWvPDX/iyfDGWjfn42pNBIqGqPrK9qqtSWmFvlNjMuXozMFCRhVB4qjSYKXD5m+td 87lg==
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6
On 06/23/2013 02:38 PM, Aaro Koskinen wrote:
When booting a new board for the first time, the console is flooded with
"Unknown board" messages. This is not really helpful. Board type is not
going to change after the boot, so it's sufficient to print the warning
only once.

Signed-off-by: Aaro Koskinen <>

I don't think we need this patch. In 2/2 you add the board type for the board you have, so you shouldn't be getting any messages, and this is unneeded.

I don't mind spamming people with all the messages, if people see these messages, they have bigger problems than too many messages.

David Daney


        v2: Adjust indentation.

  arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c 
index 7c64977..9838c0e 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
@@ -31,6 +31,8 @@
   * network ports from the rest of the cvmx-helper files.

+#include <linux/printk.h>
  #include <asm/octeon/octeon.h>
  #include <asm/octeon/cvmx-bootinfo.h>

@@ -184,9 +186,8 @@ int cvmx_helper_board_get_mii_address(int ipd_port)

        /* Some unknown board. Somebody forgot to update this function... */
-       cvmx_dprintf
-           ("cvmx_helper_board_get_mii_address: Unknown board type %d\n",
-            cvmx_sysinfo_get()->board_type);
+       pr_warn_once("%s: Unknown board type %d\n", __func__,
+                    cvmx_sysinfo_get()->board_type);
        return -1;

<Prev in Thread] Current Thread [Next in Thread>