Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp846019imm; Tue, 3 Jul 2018 00:40:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdRWA1JC9waVElgrpOH88YhKH1FayukjN+9MjPWAb6Z1gmCwz3/c0dTcp7Jg0CDNEmgNHKX X-Received: by 2002:a65:4304:: with SMTP id j4-v6mr17457162pgq.109.1530603612063; Tue, 03 Jul 2018 00:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530603612; cv=none; d=google.com; s=arc-20160816; b=cGkjnQcAoA4pTNKVscdGM4ZhDj1HoOdyw4hLrWB0kqQZFJGXuZUPV/1g4HNPZ0e6o3 OooVux4+SwbhBUGiDolaY4WhLRNwfxmOWSKqao63gfsFkChz72P6rKm4u4OStWygcVz2 kkrC3MrkvGcHd7tOFG3OejbedZl23sTfKru5eG07D0hWiILNp1zDQPEVNCKnpxzy70py zmqMpIWdfVgiNXUG26l+3lOn+Z0OaU6k2hYKdyxbQab/6g5azYHVLv/NAMZZoEQMDJey 9j7pf9bqbcNgbNPbSew7nGf5l52lfR6pk+ntnMPELhrgsXcx9Nzd3Ueblb2EaJuzKLjS Szyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hkImtxi0m7QWO+qZwcd37XWaLFZ8VGyOlnrH8KnvNlA=; b=cfhxp97BAVkgm+haU65NV2O+G07WPtkwArcTRj/5Xto1LIOK+955Y3UIbc8x7GHuwH 9ukGQtrt+pJhRm6t9jzo+zzTeuV/NzHodSFgOJ7YkuYJClFQtJKKaW0RjQPGNH0bG+0z vcZPgfr/q2C8Y2HIeetOO8Raw3kq7hv1UeP0M+OgqaAuQNlUTG4xFYSmTMutFG00PHae aVMRvaa+IejPSnZ6xHGhFyJjctmmTE2UPw0VM5K374G/CZx4kiuEIzpUBSTwdu1f8EiF AO3UNcqC0TUPTZZsfFe8n8NDF7mrNhonlvOo0WKUfffvOCgTHkSe92K53UysdHmdjiqi N7zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si499405pgu.103.2018.07.03.00.39.57; Tue, 03 Jul 2018 00:40:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933192AbeGCHjH (ORCPT + 99 others); Tue, 3 Jul 2018 03:39:07 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:50523 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932098AbeGCHjF (ORCPT ); Tue, 3 Jul 2018 03:39:05 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07502902|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03296;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=12;RT=12;SR=0;TI=SMTPD_---.CLeOjOO_1530603534; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CLeOjOO_1530603534) by smtp.aliyun-inc.com(10.147.40.44); Tue, 03 Jul 2018 15:38:54 +0800 Date: Tue, 3 Jul 2018 15:38:54 +0800 From: Guo Ren To: Rob Herring Cc: linux-arch@vger.kernel.org, Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , Arnd Bergmann , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, Greentime Hu Subject: Re: [PATCH V2 19/19] irqchip: add C-SKY irqchip drivers Message-ID: <20180703073852.GA24133@guoren> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 02, 2018 at 09:27:13PM -0600, Rob Herring wrote: > Commit message needed. Ok > Do you mean "legacy"? Yes, it's from arch/csky/Kconfig.debug, and I'll correct it in next version patch. > It would be better to make this run-time so you can support multiple > platforms in one build. You should be able to determine this from DT. The CSKY_VECIRQ_LEGACY means when cpu receive the IRQ, it will directly enter into the exception vector entry indexed by IRQ number. Just some old SOC need the feature. We reserve it just as we've mentioned in arch/csky/Kconfig.debug: config CSKY_VECIRQ_LEGENCY bool "Use legency IRQ vector for interrupt, it's for SOC bugfix." help It's a deprecated method for arch/csky. Don't use it, unless your SOC has bug. As we need this config to setup the vector tables in arch/csky/kernel/traps.c, "determine this from DT" isn't suitable for us. > > +IRQCHIP_DECLARE(csky_intc_v1, "csky,intc-v1", csky_intc_v1_init); > > DT bindings must be documented. And the vendor prefix must also be > registered in vendor-prefixes.txt. Ok, thx for the tips. I'll follow the rules. > > +IRQCHIP_DECLARE(csky_intc_v2, "csky,intc-v2", csky_intc_v2_init); > > And this one. Use of v1, v2, etc. is generally discouraged unless > there is some strict versioning behind it. Most bindings use > implementation specific compatible strings (which typically means the > SoC name/number as part of it). > > +IRQCHIP_DECLARE(nationalchip_intc_v1_ave, "nationalchip,intc-v1,ave", intc_init); > > Here too. And your timers as well. "csky,intc-v1/v2" are used in many SOCs, just like "arm,gic-v2/v3". So may I change them like these?: csky,intc-v1 >>> csky,ck807-intc csky,ck810-intc csky,ck860-intc csky,intc-v2 >>> csky,ck860-mpintc nationalchip,intc-v1,ave >>> nationalchip,ck610-gx6605s-intc > You'll also need to do cpu bindings as well especially for SMP. Ok, thx for tips.