From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 153EFC7EE29 for ; Mon, 29 May 2023 07:44:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbjE2How (ORCPT ); Mon, 29 May 2023 03:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231350AbjE2Hot (ORCPT ); Mon, 29 May 2023 03:44:49 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CEB1A7 for ; Mon, 29 May 2023 00:44:48 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685346280; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5paxpN3xYOAEQ+EuARrTGAj++AZNd41FPhgcLsr3N10=; b=jCoWNfmxhOaBpWVY4SbBaEvb26HsRjcfXtDdEy6YYypOznC5aekQoxlho8hszhNUE+D6Uk p7IwnBSxmWTM7AK3vxUXC/pvPbP3dynUOpTp5+mhf2POgMZOVs9+KHr3ozYvVzX5t9ORHz DE4/covFNBnOXITEgpNsQ4Oz/G+941sM29bPBqEhBIgV8BaH3zVGAxhsD1OvT3Y1GRoefw C0G9PxzHyS6UJw1KFWArvku6W30Mn7KZJEahecyUapxVNdKgLf+izGLMotHF3a7u2zZsRZ yyfoBsqwjiPwUsTzJmD3711L9/xWDA0Cfji0+8vC00puHArMuIYnKDCQla80/A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685346280; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5paxpN3xYOAEQ+EuARrTGAj++AZNd41FPhgcLsr3N10=; b=R6padX2qZC11tsfG6GMKaM/LZ95ka/fsf8MtryA0H94XwnDjxFP8SuQsz7F+Hlpi6yWDWy tDmNdRKyB5WTjFAg== To: Huacai Chen Cc: Huacai Chen , Marc Zyngier , Bjorn Helgaas , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Xuefeng Li , Jiaxun Yang Subject: Re: [PATCH 1/2] genirq/msi, platform-msi: Adjust return value of msi_domain_prepare_irqs() In-Reply-To: References: <20230527054633.704916-1-chenhuacai@loongson.cn> <20230527054633.704916-2-chenhuacai@loongson.cn> <87pm6llvm6.ffs@tglx> Date: Mon, 29 May 2023 09:44:39 +0200 Message-ID: <87leh7lgyg.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 28 2023 at 11:42, Huacai Chen wrote: > On Sat, May 27, 2023 at 10:03=E2=80=AFPM Thomas Gleixner wrote: >> On Sat, May 27 2023 at 13:46, Huacai Chen wrote: >> > After: >> > =3D 0: Success; >> >> 0: The modified nvec; >> > < 0: Error code. >> >> This explains what the patch does, but provides zero justification for >> this nor any analysis why this is correct for the existing use cases. > I checked all msi_prepare() callbacks and none of them return positive > values now, so I think it is correct. Still you failed to tell so in the changelog. It's not helpful if you think it is correct. The point is that you have to make clear why it _IS_ correct. Thanks, tglx