Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp354479pxv; Thu, 22 Jul 2021 01:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzACMAypVXqWiFghDpX2bR4NfStvrvII3wZPxG/9YVrHtHAthjH/IzKVYOHvzhSHlNBQ2Cy X-Received: by 2002:a6b:5115:: with SMTP id f21mr24486336iob.161.1626942997002; Thu, 22 Jul 2021 01:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626942996; cv=none; d=google.com; s=arc-20160816; b=P2tPDqshg+70b06mGzfyoJHBD+3SYPcJSLNc/88emDqKoCXwfwcDYlL3HmGFjxPh8l nsNQRp2cfnnJBBth9jBVIHO8/n0GorzHTNIu9qvHe50D6A/FNMNO5gGI1zMU+H78hZ4v QNn0DGsSFPkkIu9YSmiEgrDivnlWrKmZc8uOCI2Hyire2GKtPJavo4zcL8x7GJLoOqsO j1dKggmGlmIr0utqX1zhPitNG39N6c3ZQHKKSjqBZ198K5JimQXZynggkWG3sCL+2ytk o2DShUXoo9fB5evGI8+ihFRdDYMh/L+4n2E5Dm/J9zFeTvUHGb/+POaP846JvjRcdLba Pqig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=R2cRD9h5/Gqmy65OEXc3jmPcHkIPaUMGGs+z8iomu68=; b=s4/CJ9NUYx1LHNMZnSunMaWGmu5XqX+iCVrko1myd8PVQPZ5gnK89HlOaVU5ji4TIw oZDaINhIeISOraW6yyW1llS2hRZKRsYpjHAgyZPgF/cV2hhY1buLMN5qZbD1ll28gGLL Lv9dwCfszRP0CLBQ7Cum8eZV0//Rlr2+6ofdOLico/xBSOLbqyu/QUHuV6Kk2nsV8su/ 6WEK9Tq3C9AxtjE8P/4VZF8fALxR7eHe8lfgNXPErjFZ4RwLABg5FiKh1Wq5HLrSLKiB nAEpGBZdO8r4N+1UQIrv/JaZi8vwbrPVRkmutFyPISOmMCCAgY9pJ8QMkOYIoLEHrIce 8Dqg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si27473637jat.98.2021.07.22.01.36.25; Thu, 22 Jul 2021 01:36:36 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231250AbhGVHyD (ORCPT + 99 others); Thu, 22 Jul 2021 03:54:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:52256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhGVHyC (ORCPT ); Thu, 22 Jul 2021 03:54:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 23E486120C; Thu, 22 Jul 2021 08:34:26 +0000 (UTC) Date: Thu, 22 Jul 2021 14:04:18 +0530 From: Manivannan Sadhasivam To: Stephen Rothwell Cc: David Miller , Networking , Greg KH , Arnd Bergmann , Bhaumik Bhatt , Linux Kernel Mailing List , Linux Next Mailing List , Richard Laing Subject: Re: linux-next: manual merge of the mhi tree with the net-next tree Message-ID: <20210722083418.GA4446@workstation> References: <20210716133738.0d163701@canb.auug.org.au> <20210722143306.305aed6f@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210722143306.305aed6f@canb.auug.org.au> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 02:33:06PM +1000, Stephen Rothwell wrote: > Hi all, > > On Fri, 16 Jul 2021 13:37:38 +1000 Stephen Rothwell wrote: > > > > Today's linux-next merge of the mhi tree got a conflict in: > > > > drivers/bus/mhi/pci_generic.c > > > > between commit: > > > > 5c2c85315948 ("bus: mhi: pci-generic: configurable network interface MRU") > > > > from the net-next tree and commit: > > > > 156ffb7fb7eb ("bus: mhi: pci_generic: Apply no-op for wake using sideband wake boolean") > > > > from the mhi tree. > > > > I fixed it up (see below) and can carry the fix as necessary. This > > is now fixed as far as linux-next is concerned, but any non trivial > > conflicts should be mentioned to your upstream maintainer when your tree > > is submitted for merging. You may also want to consider cooperating > > with the maintainer of the conflicting tree to minimise any particularly > > complex conflicts. > > > > > > diff --cc drivers/bus/mhi/pci_generic.c > > index 19413daa0917,8bc6149249e3..000000000000 > > --- a/drivers/bus/mhi/pci_generic.c > > +++ b/drivers/bus/mhi/pci_generic.c > > @@@ -32,7 -32,8 +32,9 @@@ > > * @edl: emergency download mode firmware path (if any) > > * @bar_num: PCI base address register to use for MHI MMIO register space > > * @dma_data_width: DMA transfer word size (32 or 64 bits) > > + * @mru_default: default MRU size for MBIM network packets > > + * @sideband_wake: Devices using dedicated sideband GPIO for wakeup instead > > + * of inband wake support (such as sdx24) > > */ > > struct mhi_pci_dev_info { > > const struct mhi_controller_config *config; > > @@@ -41,7 -42,7 +43,8 @@@ > > const char *edl; > > unsigned int bar_num; > > unsigned int dma_data_width; > > + unsigned int mru_default; > > + bool sideband_wake; > > }; > > > > #define MHI_CHANNEL_CONFIG_UL(ch_num, ch_name, el_count, ev_ring) \ > > @@@ -254,7 -256,7 +258,8 @@@ static const struct mhi_pci_dev_info mh > > .config = &modem_qcom_v1_mhiv_config, > > .bar_num = MHI_PCI_DEFAULT_BAR_NUM, > > .dma_data_width = 32, > > + .mru_default = 32768 > > + .sideband_wake = false, > > }; > > > > static const struct mhi_pci_dev_info mhi_qcom_sdx24_info = { > > @@@ -643,11 -686,13 +689,14 @@@ static int mhi_pci_probe(struct pci_de > > mhi_cntrl->status_cb = mhi_pci_status_cb; > > mhi_cntrl->runtime_get = mhi_pci_runtime_get; > > mhi_cntrl->runtime_put = mhi_pci_runtime_put; > > - mhi_cntrl->wake_get = mhi_pci_wake_get_nop; > > - mhi_cntrl->wake_put = mhi_pci_wake_put_nop; > > - mhi_cntrl->wake_toggle = mhi_pci_wake_toggle_nop; > > + mhi_cntrl->mru = info->mru_default; > > > > + if (info->sideband_wake) { > > + mhi_cntrl->wake_get = mhi_pci_wake_get_nop; > > + mhi_cntrl->wake_put = mhi_pci_wake_put_nop; > > + mhi_cntrl->wake_toggle = mhi_pci_wake_toggle_nop; > > + } > > + > > err = mhi_pci_claim(mhi_cntrl, info->bar_num, DMA_BIT_MASK(info->dma_data_width)); > > if (err) > > return err; > > This is now a conflict between the char-misc.current tree (where commit > 156ffb7fb7eb is now 56f6f4c4eb2a) and the net-next tree. Yes, this is expected as I said before. Dave, please consider dropping/reverting the patch. The MHI patch should go through char-misc tree. Thanks, Mani > > -- > Cheers, > Stephen Rothwell