Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3280169yba; Sat, 11 May 2019 07:29:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGnzRRV21cLbenz5s/6ylFe9ZPqgP09tP5eTs0MxgF+Mu1ORKMjqa7JEoF5/TgslP8oJ31 X-Received: by 2002:a63:6b49:: with SMTP id g70mr21197396pgc.176.1557584988534; Sat, 11 May 2019 07:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557584988; cv=none; d=google.com; s=arc-20160816; b=E9R0YNUMp4NJkvpNp34CWIk1K0BpNAPEa2EkdkNnDaShMPP+tkhuguMJKaRQC2uGvY JLfUs07DHf/ENv7xnf99wbup+te1tkYN+IXHHsVoH1Sgb4qyOtiZX3sU3sQqgjPSeazh M1FgT8zK5pEm0qFbWrWFuZvhpDTVLIpmnmaiozL3/kTQkCzwf7kXrXm8ALxTqSmWxFYV 1fVuNRhME8HgTtZcAV+e2SdbkEjkakYImYlVjyBwt8Q/IyEDCv8Yuo2UqEj6p8gcRhVu ltx6ZVh94Lpo2ks8wN1qzUKuW0qfH00e39Yy7DbTI00tOTkC7GrtYnuC9++agn+FE5U3 TzOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=gHoNFZn/tHV2iQLEYewjP4dMVMvO8BrKjwh6LbCkBV4=; b=UP9d3E53jt6G0OL2Qp45F++ABKrFNPEolxlM4y0HlJO3yNC6o3N65ShmJ1Qtodb6EM wwLXTNk+561sm/cZpMpfc9A73WSs8R6ePoDna/TdTnQzHyligt9pepcGmICvWU5qEXB+ ogfHH1OUoWzf2Ecte6nC+HbbTnxNjDmMjvmlYYty1DwHIoyarpSJVXjRC9TTfREJXJg+ 5X/4v95Hst9lfUPEJ81rku5BOHP01K/GcsivDxVjlNBOtRIfC/Y0P8kAZuuaE0r+egPL WoVtXk4hPSYcrTO7wRoqWdJTKhsKsDxUybbz7LY3/3CgGjmMiYGIxY77AohIW9y3ZU/o Pthg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q205si14052868pfc.151.2019.05.11.07.29.34; Sat, 11 May 2019 07:29:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726259AbfEKO3R (ORCPT + 99 others); Sat, 11 May 2019 10:29:17 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:36277 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbfEKO3Q (ORCPT ); Sat, 11 May 2019 10:29:16 -0400 Received: by mail-it1-f193.google.com with SMTP id e184so1453443ite.1 for ; Sat, 11 May 2019 07:29:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gHoNFZn/tHV2iQLEYewjP4dMVMvO8BrKjwh6LbCkBV4=; b=Xa27Gpykq0yi4cRN/7gHwLjc6RtXdrGzWmx52QFFE3qWxHW1R/6EsVtrqSe6mc8R55 Gyo3alzCD+QtRS3M8i8VW/uAmYSt9CBIBkdMUU/rUkb+5y84xzsHmq2al8k2QtjG02Fy y4KIz1+WnvFFTTXJXRx4yOXejMBiF6hgKxZ0b52LT04lzHO3RBwG6yLcIfQULlBHC/7F jB2afTJLP7KjO8CnHPNHB14QrMLGgs7VsINOroPFLwzoVtmj1mHQbNPG1f3TcXGB6Rne 4XUSyYJcPCeaefkCRwOTAP2h3+ZhjZKeQi0zzv38nrHEmOoQI49i4OGGpI0Glg/URbaq BIcQ== X-Gm-Message-State: APjAAAXqrYP2S8EdvfqfepP5LvkhDMLva6LbPeJpdfgkDxIXvu3rm4rW wjm/afVc8U8w/u/VsESn1HC0vD17pELaKhgV+IKA3Q9+AwA= X-Received: by 2002:a24:b109:: with SMTP id o9mr2574378itf.68.1557584956124; Sat, 11 May 2019 07:29:16 -0700 (PDT) MIME-Version: 1.0 References: <436469e1a4c1e0c11ae43a0b002378708d31f15d.1557567465.git.lorenzo@kernel.org> <97ef0073-6dae-f9d1-e97f-9aadaa629628@nbd.name> In-Reply-To: <97ef0073-6dae-f9d1-e97f-9aadaa629628@nbd.name> From: Lorenzo Bianconi Date: Sat, 11 May 2019 16:29:05 +0200 Message-ID: Subject: Re: [PATCH 4/4] mt76: mt76x02: run mt76x02_edcca_init atomically in mt76_edcca_set To: Felix Fietkau Cc: Lorenzo Bianconi , linux-wireless , Stanislaw Gruszka Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > > On 2019-05-11 12:17, Lorenzo Bianconi wrote: > > Run mt76x02_edcca_init atomically in mt76_edcca_set since it runs > > concurrently with calibration work and mt76x2_set_channel. > > Introduce __mt76x02_edcca_init helper routine > > > > Signed-off-by: Lorenzo Bianconi > I don't think this is enough. To prevent issues with calibration, we > probably need to hold the mutex for the duration of the calibration > anyway. Otherwise it might get enabled right in the middle of it and > screw things up. > Also, it probably simplifies the patch if you don't add the wrapper > function that takes the mutex, and instead just explicitly take the > mutex where needed. So IIUC it would be better to hold the mutex during mt76x2_phy_calibrate processing, right? If so, do I need to repost all the series or just this patch? Regards, Lorenzo > > - Felix