Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2924511ybx; Sun, 3 Nov 2019 06:51:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxNpamctn6muXtBK3fwGtZduV/Fd2aRxiVXWaiRdN5cCdAd5T/6cmNg1w0qpVz2Q+g0KRFq X-Received: by 2002:aa7:cad5:: with SMTP id l21mr24271101edt.131.1572792715220; Sun, 03 Nov 2019 06:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572792715; cv=none; d=google.com; s=arc-20160816; b=LrDYL9nIbOUOluJoI7+VsDoZM6oiBIEJDyBY0n5boO648TihcqX9UsYyO8AMhLbJTs gHCyuVw+Y2p5rPxNcdYukOzc3KhunKSL8n91ea7fybQD0QRA0/nkxz6ZED/SsTafq0QJ nv8qAXHuYv5a2JYLh5CHaUcMjttfqavBDu8FXna0pA7KHT66Qm6HM2Wf+GUYU6F501BV TGaikZ0ertlDPR45DwbnbsYaEkDO9fH73BoBulku7BVF5bkQoYzLw+Ms9SKH/iNyMNfy 9zj+Xw27aurWf27h5Ducjr91OEiXUBebKwykRPveErUgkUug+qvkXeg4sLMLK961p98t 5L7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dEApro5sP5wB+MyTac09JJfTVmTjYAsOlPQfu4eNumc=; b=VGsXcmKkPX/suckihzlNdybK99nUBjhCdtTkpKa0XyJRY0NJu8yHsUfRN/YctnLZjI /zIotUn1ycHsL7tTD91K3tH5zGK9mWdfzbhs3iCTWntrE1d2h6ZxX3jokNOXGEmuQXlJ omEOEu/FlWtLVioLQ0b4gJcPoWGusthKV7QQD+7/K9jWdql0I6q082fp0fUrweMKcZbl BVetp0/YKRtNv4TYf+8YOWnaDskxuQiB8q0XKobFLAgm6l4Ar6YseXeiykoKStt6uvco PYcjqwin9+ClAk+F1kq/lSevSPimwGPJuJxOkLUB+VhtAKx4StRj6tjwxOnFqDdE67S1 /oIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HoLsCEPA; 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=pass (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 p7si4564089edq.227.2019.11.03.06.51.29; Sun, 03 Nov 2019 06:51:55 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HoLsCEPA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727708AbfKCOsw (ORCPT + 99 others); Sun, 3 Nov 2019 09:48:52 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:32789 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727541AbfKCOsw (ORCPT ); Sun, 3 Nov 2019 09:48:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572792531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dEApro5sP5wB+MyTac09JJfTVmTjYAsOlPQfu4eNumc=; b=HoLsCEPAwnogDTmGijk8vOqQQ3Wgbf5aAYcmVkbKRbr5DM9fuYZ03ptoMvCXBHRdCKIwvt zEhiPfM61babYBI5SBuWDJe2EtQHFhXTM6noXri8d6CZb5mQqupWcg1eZU2UAdiuQ+WJdj 3FisWXHeL2mSkZDvv2VBSjHAHsL6wOU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-71-eS1J5Sj6PBW3hQQQSPBA6A-1; Sun, 03 Nov 2019 09:48:48 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E83561005500; Sun, 3 Nov 2019 14:48:46 +0000 (UTC) Received: from localhost (ovpn-204-57.brq.redhat.com [10.40.204.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C9C35D6BE; Sun, 3 Nov 2019 14:48:46 +0000 (UTC) Date: Sun, 3 Nov 2019 15:48:45 +0100 From: Stanislaw Gruszka To: Daniel Golle Cc: linux-wireless@vger.kernel.org, Roman Yeryomin , wbob Subject: Re: [PATCH v2] rt2800: remove errornous duplicate condition Message-ID: <20191103144844.GB8889@redhat.com> References: <20191102154639.GA4589@redhat.com> <20191102174701.GA1489@makrotopia.org> MIME-Version: 1.0 In-Reply-To: <20191102174701.GA1489@makrotopia.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: eS1J5Sj6PBW3hQQQSPBA6A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, Nov 02, 2019 at 06:47:01PM +0100, Daniel Golle wrote: > On 2019-10-28 06:07, wbob wrote: > > Hello Roman, > > > > while reading around drivers/net/wireless/ralink/rt2x00/rt2800lib.c > > I stumbled on what I think is an edit of yours made in error in march > > 2017: > > > > https://github.com/torvalds/linux/commit/41977e86#diff-dae5dc10da180f3b= 055809a48118e18aR5281 > > > > RT6352 in line 5281 should not have been introduced as the "else if" > > below line 5291 can then not take effect for a RT6352 device. Another > > possibility is for line 5291 to be not for RT6352, but this seems > > very unlikely. Are you able to clarify still after this substantial tim= e? > > > > 5277: static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) > > ... > > 5279: } else if (rt2x00_rt(rt2x00dev, RT5390) || > > 5280: rt2x00_rt(rt2x00dev, RT5392) || > > 5281: rt2x00_rt(rt2x00dev, RT6352)) { > > ... > > 5291: } else if (rt2x00_rt(rt2x00dev, RT6352)) { > > ... >=20 > Hence remove errornous line 5281 to make the driver actually > execute the correct initialization routine for MT7620 chips. >=20 > As it was requested by Stanislaw Gruszka remove setting values of > MIMO_PS_CFG and TX_PIN_CFG. MIMO_PS_CFG is responsible for MIMO > power-safe mode (which is disabled), hence we can drop setting it. > TX_PIN_CFG is set correctly in other functions, and as setting this > value breaks some devices, rather don't set it here during init, but > only modify it later on. >=20 > Fixes: 41977e86c984 ("rt2x00: add support for MT7620") > Reported-by: wbob > Reported-by: Roman Yeryomin > Signed-off-by: Daniel Golle Acked-by: Stanislaw Gruszka