Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp449524pxu; Thu, 26 Nov 2020 02:59:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrGBUX7fVOz72fXi7n2oCFgrOUn/nsxPiDARTR2nlHMDR++tLGGx9+DS3e5RoJrkN5Z/rE X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr2085588eji.220.1606388370292; Thu, 26 Nov 2020 02:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606388370; cv=none; d=google.com; s=arc-20160816; b=vkQkWM7Yo7Kfsm5Mqdl+zilFY3Sez5S1LSNPvE/Q8SJYu3iJUbHT+HpHddJ2v0lFeF M+mnaVGjOKQ+mmGCe97gjrXwMAoXBq93OaUl1F/h2Q1Y0Hg1NRJpfyiHQJsuuC58mUXv g8nNDWuqefZtOo1Qjz8K83WVHsxFndv4RARhFPJ0CPV9NNZDRbx0Cz+FnRSHwPVjyWRJ W6JJIPFlwx5Od8q1QB7dD+fGFgq6a/NDLTuqHb7G2zFd1j5IWorrVYWt+/5BksJ4oqlN +s4Fmj3xjL9qG5JqIijpN5PUC5APz3s9lc2p/AEXtr/i31k17cyIf4rkEFW7ZfnrAprP 9pqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2QgTbr9NmbivIrsq7Aqbx7h4YKihKJDqQ5qrbC9bLtM=; b=d6O4CoLefZiDGP3+pG5d27534noeguSIm1sFPv2BMSNJRSH6J0mnFUnejz4lsqpzQK SUGmUhcCCs0uRtmbGKDwooRO5pEUMsv35B5FmhZQ4Y6A7T7mswuVSK2f5EoFAimySjGh H7C0I/sSKCKfnaT3hiAxH338B5oMY8kflBJ9Pea7oTXkjS8ErK5LytLwTKfYC68BmS3F MjUts3sAK+6PJnKFW5IV6I67DL+3gmCntNtnkiqPouTMaVzA4QmWamg+CNy97z1oy1IO zXYaDO8jBz7ZWHdvMUyPw/h/KSMg4WmE1UugXhRHP+e1E0Ok1t+ak+fSr1W1N+GEjaMp dgJA== 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 rl11si3171277ejb.348.2020.11.26.02.59.07; Thu, 26 Nov 2020 02:59:30 -0800 (PST) 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 S2389041AbgKZIvs (ORCPT + 99 others); Thu, 26 Nov 2020 03:51:48 -0500 Received: from mx2.suse.de ([195.135.220.15]:51054 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728127AbgKZIvs (ORCPT ); Thu, 26 Nov 2020 03:51:48 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4919AAC22; Thu, 26 Nov 2020 08:51:46 +0000 (UTC) Date: Thu, 26 Nov 2020 09:51:45 +0100 From: Daniel Wagner To: John Garry Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, lenb@kernel.org, rjw@rjwysocki.net, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, linux-acpi@vger.kernel.org, maz@kernel.org Subject: Re: [PATCH v3 1/5] genirq/affinity: Add irq_update_affinity_desc() Message-ID: <20201126085145.jjioc7belyny5kp4@beryllium.lan> References: <1606324841-217570-1-git-send-email-john.garry@huawei.com> <1606324841-217570-2-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606324841-217570-2-git-send-email-john.garry@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On Thu, Nov 26, 2020 at 01:20:37AM +0800, John Garry wrote: > + activated = irqd_is_activated(&desc->irq_data); > + if (activated) > + irq_domain_deactivate_irq(&desc->irq_data); > + > + if (affinity->is_managed) { > + irqd_set(&desc->irq_data, IRQD_AFFINITY_MANAGED); > + irqd_set(&desc->irq_data, IRQD_MANAGED_SHUTDOWN); > + } > + > + cpumask_copy(desc->irq_common_data.affinity, &affinity->mask); > + > + /* Restore the activation state */ > + if (activated) > + irq_domain_deactivate_irq(&desc->irq_data); Shouldn't this be irq_domain_activate_irq() ? Thanks, Daniel