Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1617252rdb; Tue, 20 Feb 2024 01:29:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhrrVb0liNGr62PflksWULPP4oU56BbJFdXyVjFpj4Uy6OOG737VgSXEKq4d19FJkYOUhjXrZvfb75pXEPvP+PYW622uF/Xwx0UHNn6Q== X-Google-Smtp-Source: AGHT+IEvW6U1z3I4lfEPJORo6nJPJqJ6rvkwa55KhzWt6jSWfRoycqfD0iVW2qCz5JAyMzAWrC0V X-Received: by 2002:a05:6808:1305:b0:3c0:34ff:eca7 with SMTP id y5-20020a056808130500b003c034ffeca7mr17719570oiv.58.1708421361554; Tue, 20 Feb 2024 01:29:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708421361; cv=pass; d=google.com; s=arc-20160816; b=L8VBktDTr/iWEBtoTTDiHlVKUFzk4xTR0uhh6QbuvT74S030Yrc5CqxzGHQb3wVkvq BPTTNfCqLcIRGGUm/l4sxPcwCZ36oTjdOMNbFU2v98S3JHOtoC+Qyltd8CPYS3f4wBxz jysoFhHr4k7lA9zMB3vtvXo3/sT2E+Tu7PmZWZE/LsDGeEkLVDGps0eSlJ9p6i+qXdH4 s8wNNuNmAwUie96z6QY2380qNLjeVFlDeQ3MGLOQyn6+3RuJYMo3DNjGUbGZEqGwGpQj F4xkJg+z5E1u5ehzsZD91RTQsDTuR9H8ZZxOCgRsZnKNc2EfSCrH2tz3zD6Tx82gUz0/ mNMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=R6CpMnesPhZeNYa5GMfDIrbJkajmTM0m01p5Zn8iWA8=; fh=8aqGLFG4Fams7L+Ln/K2tYEXrNYIl3FAuQDvOWOKkBw=; b=WKs7dtqasvsz/Iix/CcQDfDTZmK+i89Ij8G4NqkgFUOaI5CboOpR5oj6OePMJG+I61 7La5fgIUNDWLRsTjK3MizAFQJ6bKCZQ7kXz3FcoqRLNqhmyksjSRjRTQZyx10CnqCAvc McKhBZZYskbIrkyS1v4VvC4PuEyg2n62dhfYTes9t6FiKaLpUuunGiMeyxAQ5t6EyJIM ABJiEEvBB20y668ibxEpkghwN91elRwxhgZoIEGQSrJhUJE3clejT91KBfFhL8NYuubB dQF1769Imbm4Z3kc1i53M06aHFszlmNtf2yn2V2IJ1ALwV+S5CseEfw60BSVPCwXPqs4 Btkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=a7OWtSYW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cl7-20020a056a02098700b005dc82d9ff85si6029475pgb.599.2024.02.20.01.29.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 01:29:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=a7OWtSYW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C6090285422 for ; Tue, 20 Feb 2024 09:28:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3E7B60ECB; Tue, 20 Feb 2024 09:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="a7OWtSYW"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4JzeQRiQ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 904165FDCC; Tue, 20 Feb 2024 09:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708421286; cv=none; b=MG4qL4n4ogOQuuAOzkbv7wo0OQ9bPmmAsKlZJkRKU+Et1izvjHuzT0/aoP+iac7VlxWkWLXdi7dsXAH+k+9CkVGOcsjJ+VMvl1jUHZp+m6cljfu85G97fSJ37bNH7gQ5k7AsiMr82QCmzOQpF+cH1HJRRE30IjxpFgiqQwbscx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708421286; c=relaxed/simple; bh=xbCMaT+ablExRVFmyzTzsHg1dEx1miGZfzRPaob+1OQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=gSWgHS9W5uIywXVlhdBx4tVXM9xbfeDcQRTOC99oP+nkoCFPHC/7khuoXblM+NmWEIiPcQu6J+4QGEZWGi27p+jyFVUux7h+Rb/UJtyXl2sT7TkPTDAfhNyLJECivSX2gcKoSe5g+GPZogiUYCbtK4Fk/c1J5pUw8M71uX2Yq1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=a7OWtSYW; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4JzeQRiQ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708421282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R6CpMnesPhZeNYa5GMfDIrbJkajmTM0m01p5Zn8iWA8=; b=a7OWtSYW3DSkbDbTDAMCiQZJmhoCy8AyLzmTWeCbtAPBeNeUYEG02OUdWLpv/oNlyMxGzg eWws7F8PJzw7gwM9JX1WUueyECgZMU90qf61H3CHqZoQSmDk+hB1/8DZsResiaXJX1WT5G C0gWcgp9om533GJkmGXodcl4p7S+5KcleMn/WmtwYC5lfQdUNi+oDAzva4j9rP1UkFg2X9 QznSTbQXQ0fxfXRua7J0QUKMCUFABFcTebIDRJ2FRJsWfvNrZTG8jb0p8E8AuWHpIc8KDW e1XpQD5ZfIKXfQkzTy922sekYgiajkeVzWoYLt9omBTp4TaYcyIIZ2uhGoz0hw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708421282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R6CpMnesPhZeNYa5GMfDIrbJkajmTM0m01p5Zn8iWA8=; b=4JzeQRiQ07VSCsteczn4s7AiUEjGAV7v/flNhT1Ey7GksgvRtbZQk0LH+t1akJBQMtqEG6 yxD6w2S8Op3wboDQ== To: Changhuang Liang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel Cc: Leyfoon Tan , Jack Zhu , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: =?utf-8?B?5Zue5aSNOg==?= [PATCH v2 2/2] irqchip: Add StarFive external interrupt controller In-Reply-To: References: <20240130055843.216342-1-changhuang.liang@starfivetech.com> <20240130055843.216342-3-changhuang.liang@starfivetech.com> <87cyt0ivn3.ffs@tglx> Date: Tue, 20 Feb 2024 10:28:02 +0100 Message-ID: <87o7cbiixp.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sun, Feb 18 2024 at 02:36, Changhuang Liang wrote: >> On Mon, Jan 29 2024 at 21:58, Changhuang Liang wrote: > [...] >> > +static void starfive_intc_mod(struct starfive_irq_chip *irqc, u32 >> > +reg, u32 mask, u32 data) { >> > + u32 value; >> > + >> > + value = ioread32(irqc->base + reg) & ~mask; >> > + data &= mask; >> >> Why? >> > > If I want to update the reg GENMASK(7, 4) to value 5, the data I > will pass in 5 << 4 All call sites pass a single bit to set/clear, right? So this GENMASK argument does not make sense at all. Thanks, tglx