Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1634321rdb; Tue, 20 Feb 2024 02:10:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTtFHvYDnvMhF5jR/KrZO+MxNw+9gw3gS/kC9hP+cvf0c9dwGyNkxTHjd/6PUUTJnQgXuLQ2RNBCpxsWZrEAeRhXgV/VyhETbALCh4mQ== X-Google-Smtp-Source: AGHT+IEtM/mNkLfRfzlZu8wy5v19Py7KFMMgDONTXCRa4KzeewyJ5s2mlQyARbOoOdjTf87tHDSf X-Received: by 2002:a17:906:4105:b0:a3e:e462:a326 with SMTP id j5-20020a170906410500b00a3ee462a326mr1575956ejk.9.1708423807546; Tue, 20 Feb 2024 02:10:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708423807; cv=pass; d=google.com; s=arc-20160816; b=QQIAgySb4okY5cPGi6q+fPvJT/+fduRxaJiJaNgjMmUyabyTPvkiilioNBuC4Nykr+ C4SArFU8KjVL84c+QtE244rzo+Y53S8ssIRLcZmF9+ISMPk8zDHDtgfDOOP1wzA7pF4v WETkL8TBO1TDOZUuGtb2XFWI1sZyZpDDKXpO5fA7A1dB1wdS5m3PJYB9xRH1fQU8MZkL NOoHn8raWevHVy+fkJU66vJYquD3UMUKQbHKQoXGlz0dd3xwa7Z0NjXDaYhinqkWWY9p vYON5bfk8E6cLyVAU7U0koJzNcZf2W65q4TkPn457QHe8Tn8f2sd28LGuPUXok45vNqk ZKVg== 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=MhBSXu8UlJHcF5aUEqeIcG7LmDKhw95uTgaS8fEGB8k=; fh=rCriQtwhQmVS08jLZJl9ivITmgScFIQvSeqDaPufk2o=; b=LDomyqfo00QzQcnbAsq/NYEwmTQfu3z5P59THicV/4i5rM9+r/sXF//ei5HJqSUbLS KdLZwOAjej4qZz8PU64cAOKcTWBC3qQFpk9ndhl2s4J4GSA2x1lkuHOsCnNdBrh4zlMM K11l8dI3o8J/7LS0whRaykngUk9x93VxQqtZHeYt35lSC8GRV+11nGNJ1rBU6GNEja7I a/tiwQZEIlmv5U1pomHjPLbZ3c2d6+0qsNqCgLuETfEoaucVX842BsB4Aealhtth2ROw mCGFmxzZb0CymlxXMf1Qv8HsMxHSwSPTSU6F1T0bMQlnuDjq+2O2308fX+6k0jbVnsgH h0ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WUT0Kd4b; 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-72780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cw9-20020a170906478900b00a3e15c5dbc1si3316404ejc.957.2024.02.20.02.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 02:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WUT0Kd4b; 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-72780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72780-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3EFBB1F21EEE for ; Tue, 20 Feb 2024 10:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9625760ED2; Tue, 20 Feb 2024 10:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WUT0Kd4b"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rIuXTH/Y" 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 62B965FEF9; Tue, 20 Feb 2024 10:09:49 +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=1708423790; cv=none; b=GJZR5wj2PKQmgLodFQ3R5cwcg9ak3VDb/i3IzKfaUfNJxTL8oziOCRBY4Y5oykQe0BA3/qp8nI4hEL6lftAYSTgg6lU7yuuvqj1AG9Yqko31xBCnaXXWK3wSOCUG6Jahg3gcoCPWsqL2fCz5SDJ9zBeJUCwejg6+oqSjcl9dMl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708423790; c=relaxed/simple; bh=SKDBLf19ZwBjB9Kg6QLdB6aoS3B96CLloFbgW0h61Bc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Fc13q70wj5T17AhIu60d8Upz1DNZClnjE+jk8ihVlGHcHmYs7hu2fV44D+Z62v2NZWdjz8MtV3FTZiNDYFzJ638eGW3TjhLzW6mkAkI0QgckzBz5CIWM/9W3+n08N+x/5WombtKkLYQ8+qW/hNK/JQ5MzT5v4gRWxS2oRE7LRCw= 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=WUT0Kd4b; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rIuXTH/Y; 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=1708423787; 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=MhBSXu8UlJHcF5aUEqeIcG7LmDKhw95uTgaS8fEGB8k=; b=WUT0Kd4brEuI8t9EDd+lbh3h6YT1uDRxkmUIBMWc5pQ91+6vl2Zby12PIn9L8diIrPPWVl U5wQEbjWeOh4ARIC878VRZRAhd2PR+1tXvrlKRfTupb0hLo5X/35iYqV6A2U2tzVisfGVG jSGT5RdjODsGj3HFAZMOG+YFo8ax2cFMy7eIzyWgI0eAtF6XcU9HVdADNF4E/Y6jJYHdg5 9yONABFFtC48hsP2HeiVVQptfB+96DIO0A5tQqlbeB64Bob/NHc9COElSARQDP1iwAvm3x W9bgt3efrUGVjBqIr+y/MroKQNyA3RBv1HFi0Leb2uZuF8Qts7ZKhBne2wJQlA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708423787; 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=MhBSXu8UlJHcF5aUEqeIcG7LmDKhw95uTgaS8fEGB8k=; b=rIuXTH/YrKRubdPDWMPYcEOauyFagFe9PjZjHHwCY3oI/7gg2yfcjHdXKVAlJQtmzAySY3 ZpdYN5yKrT80+sDg== To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley Cc: Marc Zyngier , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel Subject: Re: [PATCH v13 01/13] irqchip/sifive-plic: Convert PLIC driver into a platform driver In-Reply-To: <20240220060718.823229-2-apatel@ventanamicro.com> References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-2-apatel@ventanamicro.com> Date: Tue, 20 Feb 2024 11:09:47 +0100 Message-ID: <87il2jih04.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 Tue, Feb 20 2024 at 11:37, Anup Patel wrote: > The PLIC driver does not require very early initialization so let > us convert it into a platform driver. s/let us convert/convert/ Please us passive voice and imperative mood all over the changelogs. No we/us, let.... > As part of the conversion, the PLIC probing undergoes the following > changes: > 1. Use dev_info(), dev_err() and dev_warn() instead of pr_info(), > pr_err() and pr_warn() > 2. Use devm_xyz() APIs wherever applicable > 3. PLIC is now probed after CPUs are brought-up so we have to > setup cpuhp state after context handler of all online CPUs > are initialized otherwise we see crash on multi-socket systems This patch is really doing too many things at once, which makes it hard to review. Can you split this into digestable pieces please? > if (unlikely(err)) > - pr_warn_ratelimited("can't find mapping for hwirq %lu\n", > + dev_warn_ratelimited(handler->priv->dev, > + "can't find mapping for hwirq %lu\n", > hwirq); Nit. Please use brackets around the condition. See: https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#bracket-rules for reasoning. Thanks, tglx