Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp476961ybk; Wed, 13 May 2020 05:13:28 -0700 (PDT) X-Google-Smtp-Source: APiQypKmWg1xkQ/oNUeBW3azHrIl3w4PSarnkmFyuL/n7bl+X+IwhnNBWUb4SpuYJ22A9tqxtq7M X-Received: by 2002:a50:e002:: with SMTP id e2mr22753199edl.179.1589372008018; Wed, 13 May 2020 05:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589372008; cv=none; d=google.com; s=arc-20160816; b=zhRU8dAhgniqc7d+seOOGQgI6XDc9xFwnmbwOgyGKlLeWtZU6rYtOdKRLNAerjAsYY ONq3ue6WdZe1Ha6iL3hqCuHMSQbtf1PmjFf8h6i/XwX5yVEi8+bb1qUjFF3rGgUdOzxC RZQ0CjEZdKZGoPUl9AZ4fhh1sAljg5CV7IkITN/OYxny/Q5XD/7mTS1ThPmBFHIPw6me B9FzG/9x9sfBKDWqzLQdGJd7dVzAt9IIlBBo2VCXJKB4zbqQbNwnRVds9UnNsi/IAMMP oYb6L/MvICLKFVVetiFyLmFEWR8YyAaWajSR5/ceHypypwzHut/h6v7yMfFgFvoehNHC XVdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=uVStkDbKSNCTYG1YmYOuYz25LvOJ/qlx95uZx6Z6yJo=; b=L4zi62MjQQnWykQTclMikqQoTjhq2ZVcqpXSydRCCJyl/UeXQ6L7RRxxg2Auvo+FdH sgtIDCWjJp9s8VnF6TejfVbXvTItBy7XBCJOoEgcphTl1hG1+KeJ3djsjMDJ3euD49ww n4lurriO8avsXKV30LNR/KXzCCTO+tCN2u4FCis4aSsX5MeEOskqtYCW/Dn5uJzf7aJF n4Ru9PXO8iFXy7Mh6psmz8FbnES5yNLknCR9lrPdsBEHtTnmVVqL+Mu1eYSohWipP2n0 b6ikJRYn6tkAMJ0zGUQZh7x/vcxxznioDVLneEsLS/2Y1Wvou2rpQUrlLVJsbXs2gygv TOuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l35si1060056ede.136.2020.05.13.05.13.03; Wed, 13 May 2020 05:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729975AbgEMMJT (ORCPT + 99 others); Wed, 13 May 2020 08:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727778AbgEMMJS (ORCPT ); Wed, 13 May 2020 08:09:18 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBAC5C061A0C; Wed, 13 May 2020 05:09:18 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jYqCD-0001l1-QZ; Wed, 13 May 2020 14:09:09 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 15F45100605; Wed, 13 May 2020 14:09:09 +0200 (CEST) From: Thomas Gleixner To: Jiaxun Yang , maz@kernel.org Cc: Jiaxun Yang , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH v2 3/6] irqchip: Add Loongson PCH PIC controller In-Reply-To: <20200428063247.2223499-3-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> <20200428063247.2223499-1-jiaxun.yang@flygoat.com> <20200428063247.2223499-3-jiaxun.yang@flygoat.com> Date: Wed, 13 May 2020 14:09:09 +0200 Message-ID: <877dxg3ul6.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jiaxun Yang writes: > +static void pch_pic_bitset(struct pch_pic *priv, int offset, int bit) > +{ > + void __iomem *addr = priv->base + offset + PIC_REG_IDX(bit) * 4; > + unsigned long flags; > + u32 reg; > + > + raw_spin_lock_irqsave(&priv->pic_lock, flags); See other reply. > + reg = readl(addr); > + reg |= BIT(PIC_REG_BIT(bit)); > + writel(reg, addr); > + raw_spin_unlock_irqrestore(&priv->pic_lock, flags); > +} > +static int pch_pic_of_init(struct device_node *node, > + struct device_node *parent) > +{ > + struct pch_pic *priv; > + struct irq_domain *parent_domain; > + int err; ordering Thanks, tglx