Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3007382imm; Sun, 14 Oct 2018 09:27:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV61BMhtnv2i4JQuGjvpnapOk0u9gdzH+EWOcZujy/QC1xxTN72RyyuOfKmXhYvveBasRdPMM X-Received: by 2002:a62:8910:: with SMTP id v16-v6mr14079421pfd.106.1539534473297; Sun, 14 Oct 2018 09:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539534473; cv=none; d=google.com; s=arc-20160816; b=DjyVPx+hPyuSVVyJKBoLaaiFgvE95yfIIJ4pWaDljkREhBUdAD0k1NsEnreOPUeNX4 LBEXMchMWf6ZIJl4BBNXHtCIiWHcj9E8nJaIoTruuwnVQNSE448AEVQmSrT7diMuL0PC IVu9+Waj3/2LoEGVoBwGUG4+AT5kKxlr653+/cDkPTVo4U13CCOAEqJadpNmDexbwLJ2 isafxUQbIfcgptUUEgY1b6LAvKwyE8uOUf/rXWT56KQ+9ocII7J/rYDjPptFc/14ro8R 7QJILznMXqK8wF6I5siggVP1Z9ny1T9WFhv73jjlpF+eZp0ZegMVvIYBdeZpTMbyD94S 6vHg== 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; bh=XFwv+pMLU3oS59YeUqE9T02skZeLIYY4g5OV2DVlzt8=; b=FLkrZ6GNwpIQuAyKyrry1WJPNbqOj3qvfiEW1KbuuSzfz7qSOSSMz8a2KZAwAeDBkE 4th6/29M08yzidsbYdO1uKtiFst6uVrXlPPAAzK+BBxExm0vR2z6ONSmuWm9/5wSCksl +JOf522qO5lcz4LGytFhAs0S0gWocuGpmae7rVjTHItOiorRybDeuSd+lXPtoZzvaSsr f98MeCmaDtZbtx1Z+5FUAyPn3UkZHbXMBi+JCngq+xJkWDPzr5+75bYWKdAVRIdNpr7u UkcDcxvRgJ8UPAoKTS9q4SXNGbFZgv4jssyV5exRiZd1unu1grOTOVJR0q854s6gTiF+ Fjgg== 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 d9-v6si9492604pln.51.2018.10.14.09.27.32; Sun, 14 Oct 2018 09:27:53 -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 S1726499AbeJOAIl (ORCPT + 99 others); Sun, 14 Oct 2018 20:08:41 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:33912 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeJOAIk (ORCPT ); Sun, 14 Oct 2018 20:08:40 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07437339|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e01542;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=13;RT=13;SR=0;TI=SMTPD_---.D1zG7XD_1539534392; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.D1zG7XD_1539534392) by smtp.aliyun-inc.com(10.147.41.187); Mon, 15 Oct 2018 00:26:32 +0800 Date: Mon, 15 Oct 2018 00:26:31 +0800 From: Guo Ren To: Daniel Lezcano Cc: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com, will.deacon@arm.com, jhogan@kernel.org, paul.burton@mips.com, peterz@infradead.org, arnd@arndb.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver Message-ID: <20181014162631.GA13374@guoren-Inspiron-7460> 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 Hi Daniel, Thx for reply and review. On Sat, Oct 13, 2018 at 10:50:34PM +0200, Daniel Lezcano wrote: > On 12/10/2018 14:02, Guo Ren wrote: > > This is about 12th patchset for C-SKY linux drivers and it should pair > > with 8th kernel patchset. > > Guo, > > I'm willing to take your timer related patches but you have to put a > proper description. Ok, I've improved all my comment for the drivers. Here is my modification: commit 6b465856936cb8f7eda31b20eb59fb5c8a19d468 Author: Guo Ren Date: Tue Oct 2 16:43:18 2018 +0800 clocksource: add gx6605s SOC system timer The driver is for gx6605s SOC system timer and there are two same timers in gx6605s. We use one for clkevt and another one for clksrc. The timer is mmio map to access, so we need give mmio address in dts. The counter at 0x0 offset is clock event. The counter at 0x40 offset is clock source. Changelog: - pass checkpatch.pl - Add COMIPLE_TEST in Kconfig - no cast is needed for "struct clock_event_device *ce = dev" - remove: extra space after (u64) - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren Cc: Daniel Lezcano commit d89522b23ff8f2d5b6f33200db110c758d28ecc1 Author: Guo Ren Date: Wed Sep 5 14:25:24 2018 +0800 clocksource: add C-SKY SMP timer The driver is for C-SKY SMP timer. It only support oneshot event and 32bit overflow for clocksource. Per cpu core has one timer and all timers share one clock-counter-input the same clocksource. This use mfcr&mtcr instructions to access the regs. Changelog: - Add COMPILE_TEST - Fixup smp boot error, cpuhp_setup_state must after timer_of_init() - Add rollback for timer_of_cleanup. - Use request_percpu_irq separate from time_of. - Remove #define CPUHP_AP_CSKY_TIMER_STARTING. - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h. - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back. Signed-off-by: Guo Ren Cc: Daniel Lezcano ===> It's interrupt controller comment, perhaps you won't care. <=== commit 65f4acd1df08c1c5ad1b0e8f46822b114c539f11 Author: Guo Ren Date: Sun Sep 16 15:57:14 2018 +0800 irqchip: add C-SKY APB bus interrupt controller The driver is for C-SKY APB bus interrupt controller. It's a simple interrupt controller which use pending reg to detect the irq and use enable/disable reg to mask/unmask interrupt sources. A lot of SOCs based on C-SKY CPU use the interrupt controller as root controller. Changelog: - pass checkpatch.pl. - use "bool ret" instead of "int ret" - add support-pulse-signal in irq-csky-apb-intc.c - change name with upstream feed-back - add INTC_IFR to clear irq-pending - remove CSKY_VECIRQ_LEGENCY - change to generic irq chip framework - add License and Copyright - use irq_domain_add_linear instead of leagcy Signed-off-by: Guo Ren Cc: Mark Rutland commit ef790431a885d37766200c7968d47370ed8be251 Author: Guo Ren Date: Sun Sep 16 15:57:14 2018 +0800 irqchip: add C-SKY SMP interrupt controller The driver is for C-SKY SMP interrupt controller. It support 16 soft-irqs, 16 private-irqs, and 992 max external-irqs, a total of 1024 interrupts. C-SKY CPU 807/810/860 SMP/non-SMP could use it. Changelog: - Remove set_ipi_irq_mapping. - Convert the cpumask to an interrupt-controller specific representation in driver's code, and not the SMP code's. - pass checkpatch.pl - Move IPI_IRQ into the driver - Remove irq_set_default_host() and use set_ipi_irq_mapping() - Change name with upstream feed-back - Change irq map, reserve soft_irq & private_irq space - Add License and Copyright - Support set_affinity for irq balance in SMP Signed-off-by: Guo Ren Cc: Marc Zyngier Best Regards Guo Ren