Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1307095

Re: [PATCH] arm: irq: l2c: do not print error in case of missing l2c from dtb

From Marek Szyprowski <m.szyprowski@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm: irq: l2c: do not print error in case of missing l2c from dtb
Date 2016-01-12 09:40 +0100
Message-ID <qQ2EG-6Ka-1@gated-at.bofh.it> (permalink)
References <qQ0My-5yb-15@gated-at.bofh.it> <qQ1pg-61J-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On 2016-01-12 08:11, Joe Perches wrote:
> On Tue, 2016-01-12 at 15:34 +0900, Andi Shyti wrote:
>> In some architectures the L2 cache controller is integrated in the
>> processor's block itself and it doesn't use any external cache
>> controller. This means that an entry in the board's dtb related
>> to the l2c is not necessary.
>>
>> Distinguish between error codes and print just an information in
>> case of -ENODEV.
> trivia:
>
>> diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
> []
>> @@ -95,7 +95,9 @@ void __init init_IRQ(void)
>>   			outer_cache.write_sec = machine_desc->l2c_write_sec;
>>   		ret = l2x0_of_init(machine_desc->l2c_aux_val,
>>   				   machine_desc->l2c_aux_mask);
>> -		if (ret)
>> +		if (ret == -ENODEV)
>> +			pr_info("no L2C controller entry found in the dtb\n");
> Perhaps this would be more consistent if it was
> 			pr_info("L2C: no controller entry found in the dtb\n");

Frankly I see no benefit of such message. It still might confuse users 
that there
is something wrong with your DT. When driver initialization fails with 
-ENODEV,
then no message is usually displayed.

>> +		else if (ret)
>>   			pr_err("L2C: failed to init: %d\n", ret);
>>   	}
>>   
>
>

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] arm: irq: l2c: do not print error in case of missing l2c from  dtb Andi Shyti <andi.shyti@samsung.com> - 2016-01-12 07:40 +0100
  Re: [PATCH] arm: irq: l2c: do not print error in case of missing  l2c from dtb Joe Perches <joe@perches.com> - 2016-01-12 08:20 +0100
    [PATCH v2] arm: irq: l2c: do not print error in case of missing l2c  from dtb Andi Shyti <andi.shyti@samsung.com> - 2016-01-12 08:30 +0100
      Re: [PATCH v2] arm: irq: l2c: do not print error in case of missing  l2c from dtb Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-01-12 09:30 +0100
    Re: [PATCH] arm: irq: l2c: do not print error in case of missing l2c  from dtb Marek Szyprowski <m.szyprowski@samsung.com> - 2016-01-12 09:40 +0100
      [PATCH v3] arm: irq: l2c: do not print error in case of missing l2c  from dtb Andi Shyti <andi.shyti@samsung.com> - 2016-01-12 11:20 +0100
        Re: [PATCH v3] arm: irq: l2c: do not print error in case of missing  l2c from dtb Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-01-13 01:00 +0100

csiph-web