Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1753854rwd; Fri, 9 Jun 2023 01:24:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cG3YhtcidePahkWmGzlvrLn0MelVq+ZZi7zUCiUc5tc1yqpSR3IsrUdBw31FZM1YN6M3m X-Received: by 2002:a17:903:32c7:b0:1b1:adb4:8fa8 with SMTP id i7-20020a17090332c700b001b1adb48fa8mr492195plr.39.1686299087339; Fri, 09 Jun 2023 01:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686299087; cv=none; d=google.com; s=arc-20160816; b=JXevDr4fre5emQM6SJlQFymm/I3+Yjkq7L0zytFcGF9Aylp2ZEVSkUvLFaLXRPHTGM SCvWi1UOsK720KVlRgBJoeqFsxB1VCxHiN32lmJJbuk+n/5G11bJOw1rFyUlf+JXtdw+ 7qsH8RweVheMJGMxBfGxB0OT0I10jzo1WiozFBB/6idsiL7kQ9XYgiU0NCvuaeXBpRkg xcz5smzE4fx2KDtlyiwk3V5H7uHs1nZnITpzIgg6vrUS/xfXY+CjZFH7xPsb0CAURf2r u1UVzHKBX3RonGII3O3pHpqKTdx9EBfZVKt+4BZdw4ftFXPdk2txagCc8cF0ZpXZ4vBf A9LA== 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:dkim-signature; bh=vgsrwOjowyA0F3IBmqbX25lm8prGgSs8QcwQBUjLbzU=; b=axOgEHnIJbWCvr5N188j73dAF8gI3aNkygl72yo6W1ouHadR0YYnWjxY6lsSmHcPDX 3EOeWzW1zFMf2uQfkqlEfU6ym4+9nz8R3ZAD2yQ6O4y5UygJoBUdfyaD5R1fbcP8ijGO FqC+k0CCDoRDcSmVw9aeGKlij2TL5VJZfKr7z42IfR/rMZocPNAcGoc/brg99vmJyut0 Fl8m1D7H0oCeUYrPkWsCFXq1NBQIn6eRRVB7+nKS//kU+gDFZ4d7k4DFsWPguwRfddwz uWzuPNmc7Tn+oKIaYtx7dWwzdyq7r/F0EGqvh9OXgkClfoWDOcNml8ME1wzL/aXv+dVx kxww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pRRvAZDv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170902c44900b0019e88376e3csi2257860plm.162.2023.06.09.01.24.34; Fri, 09 Jun 2023 01:24:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pRRvAZDv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236411AbjFIIGu (ORCPT + 99 others); Fri, 9 Jun 2023 04:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239813AbjFIHzM (ORCPT ); Fri, 9 Jun 2023 03:55:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97EB83AAC; Fri, 9 Jun 2023 00:54:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6DA326515C; Fri, 9 Jun 2023 07:53:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7317C433EF; Fri, 9 Jun 2023 07:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686297209; bh=L39bRnVk+fthMiFdoFkMyKIU0XbPQZaAMaVHuaQP/98=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pRRvAZDv/wtHXxUnOhzMjXxKsrOy/rK3FxSXXdN4J0Z3eWdHgSFAkZrzf1cmxvQRP 5rK2a8FMVsjYXlMB3T2N/6BaLcOF0lHAHYu/9qPbPrWHxrIui6dOmM0iCM49Ncaena eQRDND3IWWBsGQfV5aF2KEJz+vgx0WmHe2sKri3QPBt6ymuSuGlr1R9kevcjY7eutW kbeT/dODIUeoXCNBLSSXHWEqBFtG4mh1lwPFptGh4dnlMl3o2LXWbxGo1/0eQ6Rrt0 wtMaaNbSqoV4dcv8I4Bro78X/CljQHuJb4OxBPTNKoIU7S3ZCvmDaKBCOsEZuComlt zf4kHX6kiylHA== Date: Fri, 9 Jun 2023 09:53:22 +0200 From: Lorenzo Pieralisi To: Bjorn Helgaas Cc: Manivannan Sadhasivam , kw@linux.com, kishon@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dlemoal@kernel.org, Yang Li Subject: Re: [PATCH v6 8/9] PCI: endpoint: Add PCI Endpoint function driver for MHI bus Message-ID: References: <20230607204923.GA1174664@bhelgaas> <20230607211941.GA1176583@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230607211941.GA1176583@bhelgaas> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 07, 2023 at 04:19:41PM -0500, Bjorn Helgaas wrote: > [+cc Yang Li, sorry I didn't notice your patch earlier: > https://lore.kernel.org/r/20230607093514.104012-1-yang.lee@linux.alibaba.com] > > I think we can squash this into the original commit since it hasn't > gone upstream yet. Also note that removing the dev_err() apparently > makes "dev" unused, so we'd have to remove that as well, based on this > report [2]. > > [2] https://lore.kernel.org/r/202306080418.i64hTj5T-lkp@intel.com Done. Thanks, Lorenzo > On Wed, Jun 07, 2023 at 03:49:25PM -0500, Bjorn Helgaas wrote: > > On Fri, Jun 02, 2023 at 05:17:55PM +0530, Manivannan Sadhasivam wrote: > > > Add PCI Endpoint driver for the Qualcomm MHI (Modem Host Interface) bus. > > > The driver implements the MHI function over PCI in the endpoint device > > > such as SDX55 modem. The MHI endpoint function driver acts as a > > > controller driver for the MHI Endpoint stack and carries out all PCI > > > related activities like mapping the host memory using iATU, triggering > > > MSIs etc... > > > ... > > > > > +static int pci_epf_mhi_bind(struct pci_epf *epf) > > > +{ > > > ... > > > > > + ret = platform_get_irq_byname(pdev, "doorbell"); > > > + if (ret < 0) { > > > + dev_err(dev, "Failed to get Doorbell IRQ\n"); > > > > This dev_err() causes this new warning from the 0-day robot [1]: > > > > drivers/pci/endpoint/functions/pci-epf-mhi.c:362:2-9: line 362 is redundant because platform_get_irq() already prints an error > > > > Maybe we could drop it? > > > > Bjorn > > > > [1] https://lore.kernel.org/all/20230607163937.ZTc-D%25lkp@intel.com/