From patchwork Thu Nov 12 12:20:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 324179 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp286055ils; Thu, 12 Nov 2020 04:20:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMZCB+7LPMFb8qqAkc7quDupci6PD8QUPbpQdbPxwuG1ymJhNmulf859AQrdTMIeFPJ/i+ X-Received: by 2002:a17:906:2f10:: with SMTP id v16mr29143290eji.320.1605183613241; Thu, 12 Nov 2020 04:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605183613; cv=none; d=google.com; s=arc-20160816; b=Mtg7qvsSBpdquO54OD4gF3g0maSBHqTXsSOUJ2+zh7DcFzS1O/sL/nNpqxdY0VdTXm /EAaWFrBO+AvqbWDGWyi3MFoYMe/hKJs+KRxNoWoO0rfCBLiTCZdzPtTElD3sQJOoqJS 4DmTafTWZHIEGIcXr3oTdPmiWaK/bv4UprESSRPNad0cddEm7Y6FnNng9aFGQEYvuSaL y4dEodqdLzi5pO/kwTptO4Dsn0QHFd6GEmCXR/PBOhE/q7rUYkeNdUH1fvRqC1x9O3kE YdN6sBAm7MnomB3anPz+IcQoqnOB8IhuBgFprcgS2e5OMUPM4uj7R9MxE2aGJ8QkzBYb lhpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=za7dGFRnG2wqlECVVKnE08UYeaqzR64RF/uHTVmfPiw=; b=In7lGYAPg7k6XHE/cTWuwiu111uti31Lfo+OqvxAd5DjwuOH2xIuwm9S9hzPC2g3Dv NJUCr4USJpfShborI67fQs3fqkLsfsCf+4QV8qbKHKhLH75H53JXpmNq2Q2VVZRxrxoU aW7Nd6zzGScGbgt4f/DiCxjOI3e/71y8CZGm2I16/ssWhHblgBOitN7vDIzJJpUBupeu m5kyosAOiZB/Nxa66yWQrjPGGGy6bpjPyLfg0OuZn1LQ06OvsUgrbYu6iK3zQC+UYC/4 ORt4w+WxfWloQ3pAt7CCxJyt7QzRCYg2HMIj8piOg6ufQ3BNZOFODHRpgHXtaqQPIS2G TS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C668CrY1; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (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 j9si3871428edp.113.2020.11.12.04.20.13; Thu, 12 Nov 2020 04:20:13 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C668CrY1; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728073AbgKLMUI (ORCPT + 8 others); Thu, 12 Nov 2020 07:20:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727789AbgKLMUH (ORCPT ); Thu, 12 Nov 2020 07:20:07 -0500 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FF30C0613D1 for ; Thu, 12 Nov 2020 04:20:07 -0800 (PST) Received: by mail-il1-x143.google.com with SMTP id y17so5062265ilg.4 for ; Thu, 12 Nov 2020 04:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=za7dGFRnG2wqlECVVKnE08UYeaqzR64RF/uHTVmfPiw=; b=C668CrY1de6Ifr8xbe4dcJaTJ8AojI3HzTemGQD+gegAMiMiyRUE8KlQ2tqgAJczHb zjsJnfG9n3PkTTAX8e20y6vahZ+EHuR3BRA1YEBvb4Ru57NNqjitIRYfnkn+csqtvYt5 MYNZvPkaYxtcZRhEgX5uwbM6MB6JjYfG2f1f/d6i1TMCVqLjt83qE+kVFuvA6sVSSWrC 1M12EC8B6lcaqDBlsNSSHEkbM7E1tsBEIssLmxnPUm/gabJwogXtOqS6sNzydh1GxLpc Gsv76gclozNDeBodzuLAa0aFIpPRBQN6NIOClr7uJ6yq0un1jcRr+pj/UjloY5PQmlRr e+ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=za7dGFRnG2wqlECVVKnE08UYeaqzR64RF/uHTVmfPiw=; b=oEL6zgIV3r8E3y6/X9vq4IC6k/JlqznNZt4guOW2DwHjiU+1YKaJTbzjp/OMmbWXZV s91e54bSFV0TJIidl8A6OLHl4ELpxQTk/FEbHtXEEgrlR8rqSwwLsbXKJnMiJ+2WEl0F MqlC9UqizgAlaOBUfk4OQypovVAvrTs0QtDXpbIhnFa4mgHTd1PEfPmGSGitR08k4y4g O4QMzT9gU4IRclgoSaELPQQREe3sJTG+THvPlF1VKuBLtZ5LU4pi3GymHldJSpof/y1I 8++IzXbrk+mqOO23k5lic8m5zNSG5mMrhwcZkgpWT3wfLyIOl+W563d+QRYXqur7BLSE JDIw== X-Gm-Message-State: AOAM530JMvIdoQAixAoFG7iAr+l45JziLZZM9Mf0KO6S+wm9o2blzvmz i1DG2nfvKK3dDbF4hUgM5PHyRQ== X-Received: by 2002:a05:6e02:2cc:: with SMTP id v12mr23629975ilr.115.1605183606897; Thu, 12 Nov 2020 04:20:06 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id k18sm2696996iow.4.2020.11.12.04.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 04:20:06 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/2] net: ipa: ignore the microcontroller log event Date: Thu, 12 Nov 2020 06:20:00 -0600 Message-Id: <20201112122000.20089-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201112121157.19784-1-elder@linaro.org> References: <20201112121157.19784-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The IPA-resident microcontroller has the ability to log various activity in an area of IPA shared memory. When the microcontroller starts it generates an event to the AP to provide information about the log. We don't support reading this log, and we can safely ignore the event. So do that rather than treating the log info event we receive as "unsupported." Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_uc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/net/ipa/ipa_uc.c b/drivers/net/ipa/ipa_uc.c index b382d47bc70d9..15bb357f3cfb1 100644 --- a/drivers/net/ipa/ipa_uc.c +++ b/drivers/net/ipa/ipa_uc.c @@ -129,9 +129,10 @@ static void ipa_uc_event_handler(struct ipa *ipa, enum ipa_irq_id irq_id) if (shared->event == IPA_UC_EVENT_ERROR) dev_err(dev, "microcontroller error event\n"); - else + else if (shared->event != IPA_UC_EVENT_LOG_INFO) dev_err(dev, "unsupported microcontroller event %hhu\n", shared->event); + /* The LOG_INFO event can be safely ignored */ } /* Microcontroller response IPA interrupt handler */