From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by ozlabs.org (Postfix) with ESMTP id AFB7DB7D08 for ; Mon, 22 Mar 2010 13:31:28 +1100 (EST) Received: by qw-out-2122.google.com with SMTP id 8so905314qwh.15 for ; Sun, 21 Mar 2010 19:31:26 -0700 (PDT) MIME-Version: 1.0 Sender: timur.tabi@gmail.com In-Reply-To: <1268923993-26689-1-git-send-email-galak@kernel.crashing.org> References: <1268923993-26689-1-git-send-email-galak@kernel.crashing.org> From: Timur Tabi Date: Sun, 21 Mar 2010 21:31:06 -0500 Message-ID: Subject: Re: [PATCH] powerpc/fsl: Add multiple MSI bank support To: Kumar Gala Content-Type: text/plain; charset=ISO-8859-1 Cc: Lan Chunhe-B25806 , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Mar 18, 2010 at 9:53 AM, Kumar Gala wro= te: > + =A0 =A0 =A0 /* The multiple setting ppc_md.setup_msi_irqs will not harm= things */ > + =A0 =A0 =A0 if (!ppc_md.setup_msi_irqs) { > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 ppc_md.setup_msi_irqs =3D fsl_setup_msi_irq= s; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 ppc_md.teardown_msi_irqs =3D fsl_teardown_m= si_irqs; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 ppc_md.msi_check_device =3D fsl_msi_check_d= evice; > + =A0 =A0 =A0 } else if (ppc_md.setup_msi_irqs !=3D fsl_setup_msi_irqs) { > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(&dev->dev, "Different MSI driver al= ready installed!\n"); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3D -EBUSY; /* or some other error code= */ The comment is inappropriate. I put it there as a reminder that maybe EBUSY is not the best choice. But if it is, then the comment should be removed. --=20 Timur Tabi Linux kernel developer at Freescale