Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp4021333pxb; Tue, 7 Sep 2021 12:48:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9Ea6Uc6q/AKFBDvTlCc7AFp6KvAQNYZRfIFE4HT4G1+qe2S5ih+E2DYm1zoPgdvmWl16q X-Received: by 2002:a6b:bad5:: with SMTP id k204mr10787710iof.65.1631044113593; Tue, 07 Sep 2021 12:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631044113; cv=none; d=google.com; s=arc-20160816; b=zZibOEf/ESbPCHRcHxcartzFrTFslmfJxXuHCrHZl4h98OXHEIUa6QkjG1dBiRrnMV QbZDfUBAQ9QrBGeQjajoqBp0VOk0/ibf1+EOBxuTudjJZxYesWnWIMf1e6KVJaMoGEqW ztU1C8PC8sTqzHxDICeMiUzaRyBqotAY15dOVs78fYYLWuSy3W/D3pEG/Y77c9zH1+xp KzuuRbYhF3c8ybdiOZjARzIpEJn9Dr+kqDweJdIoIqphhrtKOaa33AzLQLiNK21lmQgo LNZbNNdIfI4RrtW8hSXW4zqimWrqbToMd1W2+LQ0IeqYOc2lC+FZ7SCyr5AneEs9i4M/ IN+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=w+pEkVJd/h+WI+7Ik9xWqY+Z8oL6sb51sITpdGLwuE0=; b=fgUVwA7RUSyqSNApDduI/h8Bl4XqRc/FAwr1849cGLqUrjduoweoGF1yJcks3wBZDl edN4GW69cQZoK65CCxX41N38Y8Ukl1QiXY26VMZrGvpg9RUWCesI4EegXJNT3e2Pujwl gy4V56GwWkTttfEwmtRZIobxC6A80njq6lMtaAsQmJqBkS2J9eNx796x+vuRWLqZWyRO 9TEepr5xDB2yhWpdaqSLBcxAb0/otIByI28tcagXivpLAEwNuj3kwy/zqgif4FZQw8qn tZmkWDTyFVRiQtDDEN3wua5/stgq1WqlvYxuTFesxomAdHU0ryNPSK91t0buTLlJdrW/ NE+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZfXkyFLo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si11769555iow.31.2021.09.07.12.48.17; Tue, 07 Sep 2021 12:48:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@chromium.org header.s=google header.b=ZfXkyFLo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346052AbhIGTtU (ORCPT + 99 others); Tue, 7 Sep 2021 15:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbhIGTtT (ORCPT ); Tue, 7 Sep 2021 15:49:19 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 356CFC061575 for ; Tue, 7 Sep 2021 12:48:13 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id x10-20020a056830408a00b004f26cead745so492965ott.10 for ; Tue, 07 Sep 2021 12:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=w+pEkVJd/h+WI+7Ik9xWqY+Z8oL6sb51sITpdGLwuE0=; b=ZfXkyFLoNLwSCxIt2lcXw2d4jOGw2BhBPBTFYcXhipfSjLsFGRUgNK6ftpTAP5TXWq ruwHEv5trPt3h2I/CyAqcbyOo83YrThS3Kjacjot2cOxAKpRgjgr1lQizsZ7yTchvihV ErsPeqGVBrbrrKzNFlwtX95iDjPuVYP5wRuiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=w+pEkVJd/h+WI+7Ik9xWqY+Z8oL6sb51sITpdGLwuE0=; b=biunq9gVN7kQbKm63YNQq7JUSpECbNlx6BBJ6PTC0Pr1FTsauBd2INc82CK1qgJaaS Xqd1q9gwaZrqFdylLqutwojylBu6FowMZWv5kW7u+AYSrxNYdgGFc3QhIrrj/75BMT8H qjojJq6Cx3SGEx+6pIEyKwtdqtyrwDntLS1sIhy6CLW96hIEiOrDfALQH8UUT5TS9y2H iEivrRLp+zkVFdjNyvIKqBvyGMhbTudmFgh/EHTXqVnZJIssx2/jeAdkS0VXyIqtFeMd zNH0VzytTtRUo0A0VTOb64REbgfZlWXCSlvGCMO77KJCrZIKmtYsl4ge6jYqBIuswsjI pTbw== X-Gm-Message-State: AOAM531mDtgNQr0EriSa9xRD/obpgtub+q8dZptEv9DRsRnuQ8kYsTiN MrjLDJkT+57j+l0L2oGzdHhkCRVBYgPd6xwnKI369w== X-Received: by 2002:a05:6830:1212:: with SMTP id r18mr58677otp.159.1631044092581; Tue, 07 Sep 2021 12:48:12 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 7 Sep 2021 19:48:11 +0000 MIME-Version: 1.0 In-Reply-To: References: <20210905210400.1157870-1-swboyd@chromium.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Tue, 7 Sep 2021 19:48:11 +0000 Message-ID: Subject: Re: [PATCH] ath10k: Don't always treat modem stop events as crashes To: Matthias Kaehlcke Cc: Kalle Valo , linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, Govind Singh , Youghandhar Chintala , Abhishek Kumar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Quoting Matthias Kaehlcke (2021-09-07 12:32:59) > On Sun, Sep 05, 2021 at 02:04:00PM -0700, Stephen Boyd wrote: > > @@ -1740,10 +1805,19 @@ static int ath10k_snoc_probe(struct platform_device *pdev) > > goto err_fw_deinit; > > } > > > > + ret = ath10k_modem_init(ar); > > + if (ret) { > > + ath10k_err(ar, "failed to initialize modem notifier: %d\n", ret); > > nit: ath10k_modem_init() encapsulates/hides the setup of the notifier, > the error message should be inside the function, as for _deinit() Sure. I can fix it. I was also wondering if I should drop the debug prints for the cases that don't matter in the switch statement but I'll just leave that alone unless someone complains about it.