From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f193.google.com ([209.85.216.193]:42994 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbeIFRi5 (ORCPT ); Thu, 6 Sep 2018 13:38:57 -0400 MIME-Version: 1.0 References: <20180906022322.GA30251@guoren-Inspiron-7460> In-Reply-To: <20180906022322.GA30251@guoren-Inspiron-7460> From: Arnd Bergmann Date: Thu, 6 Sep 2018 15:03:16 +0200 Message-ID: Subject: Re: [PATCH V3 22/26] dt-bindings: interrupt-controller: C-SKY SMP intc Content-Type: text/plain; charset="UTF-8" Sender: linux-arch-owner@vger.kernel.org List-ID: To: Guo Ren Cc: Rob Herring , linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, Thomas Petazzoni , wbx@uclibc-ng.org, Greentime Hu Message-ID: <20180906130316.mHd4Ebzev5Pc3-i_W2M-9hNcMpF_VgiTfmmG75HqR_o@z> On Thu, Sep 6, 2018 at 4:23 AM Guo Ren wrote: > On Wed, Sep 05, 2018 at 07:45:12PM -0500, Rob Herring wrote: > > On Wed, Sep 5, 2018 at 7:09 AM Guo Ren wrote: > > > + > > > +C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 > > > +SMP soc, and it also could be used in non-SMP system. > > > > How is it accessed? No mmio registers? > Mmio reg base is got from cpu-coprocessor register and I'll detail > it here in next version patch. > > csky_mpintc_init(struct device_node *node, struct device_node *parent) > { > ... > INTCG_base = ioremap(mfcr("cr<31, 14>"), INTC_SIZE); It that reliable? I remember a similar situation with some registers on ARM that are usually identified through a special CPU register, but in some cases the SoC integrator put the wrong address in there, so we need to look up the address in DT anyway. Arnd