Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp511129imm; Thu, 6 Sep 2018 06:10:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYNh1NSou+gh8BSRWpNib5zvMNKpNIK8tAANoni+pNTV5WUq6F2smdsY8Fc0wYUpvBcpEka X-Received: by 2002:a63:5358:: with SMTP id t24-v6mr2565532pgl.208.1536239416329; Thu, 06 Sep 2018 06:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536239416; cv=none; d=google.com; s=arc-20160816; b=I+9Ape+TobROaPabaHK2jr4PLjMf3qmwGFz5ch5oHHvuQ28PLdbrRscxz9LqLpJEmx p3BmsNnurxh4xmdBnHlmfa1Yz/vSMJCa7/D8rQ55NNRw0Ihg9LjU1JAuUKyXaRUZhpzH cKkcBMoA6w1bxODBLvLkwIhxMJ/EMKu9td5tem+pm/la3oEeVSA1TQT2B7+UJOduBoYs ++sC7X1bv+bHmpnP962J0hK9JUAvALt9zRrsB2GQZ/a+uut7sddX//8kKjmuPmsQjH15 Ieu3V8PFziYVma9r41JwPI/anvcB5HddZBY16FgggRwRaeO1cda8d9r5oX+QF/WAb+LZ Wv8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=GvRRXxTPXvlPLq4d/bd1gWyopv4au4Ov4w3vlq+Ev2c=; b=Y0bUV+9HzqBNRhaLIQDbGhaq9Y1vIUXbpM+QVfAxQotan1GRVAeBFUk6x35+uo+G5s bL4pGnXFyqn2ubcRC3PX1H268AhR0mi6q92RoBdy7r8z0XX9iLifM7lsRhdY0Cqg254B ZH6gi6/1XQpeHaKWQ99mi43kXLLwhbxVS4r66yOw+EZDey0aHhO8/1zLd0NU+ypnkV96 XBcUQZuyd6ZQe67W1Tm0R5ItvRkZNw82dKgpDSPC5tonSq3yGK9slxQWjQiK/hM+cgBG K6WG6/EyyePzf62le3/EwmQGwCw+mYBrj8lXq+vUvJe0gh1fDy1wSbW9YurJiKsBbxps Vdow== 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 r7-v6si5179930pfi.147.2018.09.06.06.10.00; Thu, 06 Sep 2018 06:10:16 -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 S1728848AbeIFRi6 (ORCPT + 99 others); Thu, 6 Sep 2018 13:38:58 -0400 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 Received: by mail-qt0-f193.google.com with SMTP id z8-v6so12068516qto.9; Thu, 06 Sep 2018 06:03:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GvRRXxTPXvlPLq4d/bd1gWyopv4au4Ov4w3vlq+Ev2c=; b=lvAHcotz0QNIm7ZCI82OdJ4ABMCA+a+LPOf9GAqbPDINT8MzHAm1mOOIYxagcsDdbL hLZ9F2RxaPSVs5wdycM1+AbSbmHGkshlNez+YtoXeAXU425YIYjF6MlJQS8ZlYoOWBjF e24l7FH8d1pPC8un50nis3oaKGtSocqnqH40Omp7myMT9d5Y1uht2BM2XRvKMKHU0A9y GIsJjIdy6kywzl+LFxUf9fFhA3mQWt/d5fS4itPBrNtrbTFrbiX3ltg5TSwgHKymsZ2Q kARyLdBv1x9AuXY50Q4LsC0dQYcHMVjzwBp0U20ZQgi09fPfkpxyFMLQPTfyLVIOcpxS RfbA== X-Gm-Message-State: APzg51A5Xfex1Vm3WFgD8wwDQlfAJGMsdDE/1iQhuNZhGn7rXMe5K+Do /OKsDl0xfoZri8jn685SOUHcUdoy/dDFKjT7vRkgoQ== X-Received: by 2002:a0c:fb08:: with SMTP id c8-v6mr1866269qvp.149.1536239012711; Thu, 06 Sep 2018 06:03:32 -0700 (PDT) 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 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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