Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp374493pxm; Fri, 25 Feb 2022 09:37:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsbDmO31RIpy1gp+a6kFZ5Lv3TXAQifFWFXF7Ks7otMgaUVbvZpXYsvEkVnjnLO1cxYHvH X-Received: by 2002:a17:90a:4814:b0:1bc:ec27:b644 with SMTP id a20-20020a17090a481400b001bcec27b644mr4157379pjh.213.1645810632196; Fri, 25 Feb 2022 09:37:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645810632; cv=none; d=google.com; s=arc-20160816; b=ICkcHJGO1mIhSH5c+ksIpHQ6LrtWvC7zKiKwJwoHPAI3gDzul6J+Wg3J3tOHMtcoTO z9lLFLVMEkb6izNYOkElbjafzmZj1hsrDuwlTOjexCh52tJXTi7Tov9I+h9MlaKMmycK kbIGfdiUnZRaZaXOWGTVm30UvSp4/tSmQey+trhXTlRTy+9AWqDVJYI25h4MBL0fE2RI rIzKkJW7Baps0UTntYRhCz9Wm0RKoXN0Bg81feUu7DkCYn4W/mLtV0Eu1CZ0VKCeqp9C hoyaaQ96XnMPwnD0nBOVhZFhVbtpOLt2L3hGR/fRbwqjcKjkmvNEOzrpJpmXfqcXkClA HTrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=+q1gViKdOi9RcOJ+odBYQrgsvqRDpGCtDhZFmJirlII=; b=tNja07EpphWKchwkojIndOYboP1t1O05Yj+JFUAIpUeMm1W5JaIeflHTfWZZ9a+CGV ozUyGDClv6ehrjj/lLCk04s2hxl14/oWTqtqWYkrEtNm+wwm2sWZ8Hy6DLL5Ex5YT8lS 9NcjztVOsuEz1r+3mv3FZjbXq6tiHQza/4porZRPecjyp3SPK0N48dj4e8r2gTQMjhIW soiwt4o7DnTxtTDa3cm28MGsPqKBBHBq835Szvy3nDy4+tS4BW5/YMfHBHvmHhvCiU5G 3HWl2Moypthbu8+yaNbvWVMJ6NVDEqZsIDx16igX268CUUhaiNisrkNbXlj0WcexiCAP Y2KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UmtdF7B3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a631809000000b00372a204d9bcsi2260089pgl.419.2022.02.25.09.36.54; Fri, 25 Feb 2022 09:37:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@intel.com header.s=Intel header.b=UmtdF7B3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239940AbiBYLLF (ORCPT + 72 others); Fri, 25 Feb 2022 06:11:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238967AbiBYLLD (ORCPT ); Fri, 25 Feb 2022 06:11:03 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C743197B51; Fri, 25 Feb 2022 03:10:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645787432; x=1677323432; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Tm075Fx16DfjHBtJEGna7CmW+o40n6UD+/Aw9R+hYBk=; b=UmtdF7B3JQZRQAEe8BuC+b0vcK41zJBDXqtQv0uhJUMHQDgn2Qc4+26r Gad/4TGMr8QJJv0M3vSczPTDaOtAGsQq3JDE8+/5ZglAeaouyA0zXYvQ4 KhYVkmc9A3jK1FN5pSoYAqtZAiqGQs263feXxrCgswvtOFkdbYBvz95q4 0/ox/KIH0xeZGEOruRUz5ZQMVFhBe9kBkMnA1h3ju0tmiME6SliPXIAwb A4iEyC1h4fPJJSUQxxNCgU3LqCBl6oW+Lv2S8kHbnwyrUS6nzHQK8zrh+ PqSHFjV+fDtl8FH6FjdzUcfTQ0ymzsk6nQu29eonhWYeHJSAuHJioAZ6r g==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="252672301" X-IronPort-AV: E=Sophos;i="5.90,136,1643702400"; d="scan'208";a="252672301" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2022 03:10:32 -0800 X-IronPort-AV: E=Sophos;i="5.90,136,1643702400"; d="scan'208";a="549223077" Received: from grossi-mobl.ger.corp.intel.com ([10.252.47.60]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2022 03:10:24 -0800 Date: Fri, 25 Feb 2022 13:10:22 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Ricardo Martinez cc: Netdev , linux-wireless@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, johannes@sipsolutions.net, ryazanov.s.a@gmail.com, loic.poulain@linaro.org, m.chetan.kumar@intel.com, chandrashekar.devegowda@intel.com, linuxwwan@intel.com, chiranjeevi.rapolu@linux.intel.com, haijun.liu@mediatek.com, amir.hanania@intel.com, Andy Shevchenko , dinesh.sharma@intel.com, eliot.lee@intel.com, moises.veleta@intel.com, pierre-louis.bossart@intel.com, muralidharan.sethuraman@intel.com, Soumya.Prakash.Mishra@intel.com, sreehari.kancharla@intel.com, madhusmita.sahu@intel.com Subject: Re: [PATCH net-next v5 03/13] net: wwan: t7xx: Add core components In-Reply-To: <20220223223326.28021-4-ricardo.martinez@linux.intel.com> Message-ID: References: <20220223223326.28021-1-ricardo.martinez@linux.intel.com> <20220223223326.28021-4-ricardo.martinez@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,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-wireless@vger.kernel.org On Wed, 23 Feb 2022, Ricardo Martinez wrote: > From: Haijun Liu > > Registers the t7xx device driver with the kernel. Setup all the core > components: PCIe layer, Modem Host Cross Core Interface (MHCCIF), > modem control operations, modem state machine, and build > infrastructure. > > * PCIe layer code implements driver probe and removal. > * MHCCIF provides interrupt channels to communicate events > such as handshake, PM and port enumeration. > * Modem control implements the entry point for modem init, > reset and exit. > * The modem status monitor is a state machine used by modem control > to complete initialization and stop. It is used also to propagate > exception events reported by other components. > > Signed-off-by: Haijun Liu > Signed-off-by: Chandrashekar Devegowda > Co-developed-by: Ricardo Martinez > Signed-off-by: Ricardo Martinez > > >From a WWAN framework perspective: > Reviewed-by: Loic Poulain > --- > + /* IPs enable interrupts when ready */ > + for (i = 0; i < EXT_INT_NUM; i++) > + t7xx_pcie_mac_clear_int(t7xx_dev, i); In v4, PCIE_MAC_MSIX_MSK_SET() wrote to IMASK_HOST_MSIX_SET_GRP0_0. In v5, t7xx_pcie_mac_clear_int() writes to IMASK_HOST_MSIX_CLR_GRP0_0. t7xx_pcie_mac_set_int() would write to IMASK_HOST_MSIX_SET_GRP0_0 matching to what v4 did. So you probably want to call t7xx_pcie_mac_set_int() instead of t7xx_pcie_mac_clear_int()? -- i.