Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2879871pxu; Mon, 7 Dec 2020 19:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJylCj4Zle1xsCEqLjmtWglc+lW35Ur7h1/i9EuzeY+hsVIgj0epHE/J88NYWvF1KxmiGNYh X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr20943673ejn.424.1607398409592; Mon, 07 Dec 2020 19:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607398409; cv=none; d=google.com; s=arc-20160816; b=eFpdc2gEq2ejM5XPl8MSL7KXyokznrs56I5Xhz0YmX/wWLyrXt5wLTkzaSN4Kb+cOa GcN1S7Qh5fuz5gtxJFhIj8HG/YUgvKUKY4bLk10BV6kf9d47x7iPH1ZQq3n3ChIYQ1ga wTcBUjAIqO9otpfbgti+pi0FQcnd3zamvma7zeGCt/440ahCispQyYr1tvhhTHugA3E7 7lw8TfdK7lTBMw2gV2x//4qWnpPn35I86kghgoNBhEGlGJwJl6m0K828oDVePsOlCXpo eoHbYKIzrIIU8HxV3+MuDmTDffwJX+N8ILdi6VSuweEujIk00X6o2Nsg+vZ69g7bkR08 gUvw== 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:subject:cc:to:from:dkim-signature :date; bh=eiCpstJ7Ju7OVt0RXEXRH0m6WMxJSAJull324cxUX+Y=; b=kXGEhxw8/ne2DPMCXULALNDHKVep5vjsVxAzGg90R94iW6ElxUTJhlIQjpq+d7ET+V fkJLo1bYW7nVf0zzXvVyvMQRbqE3Du8UBFQ/goEwZ1DkD/S/Yz+wPpgWj+vZ8iranZxA edEtU68IkDHwYBr6WZmpJOT0FYQYe703vvR736GigAdhW/XFUgdQFM2SBeUQqYCEKjSm BF0KisRH1mdcmu/QXPvkBeqPrXX8JmRFcmxxuttsREqd1SbP/+mdB/pP7riC8KcaVVTr epnN3t2zcB27L9Yad3cYpff53aQY5D0IVKnKNhOzc8vj2THg32lkzA4gbVGo2nNVq43P 2oqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=knwrH+dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id no7si4672328ejb.586.2020.12.07.19.32.52; Mon, 07 Dec 2020 19:33:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=knwrH+dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727219AbgLHCF0 (ORCPT + 99 others); Mon, 7 Dec 2020 21:05:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:56914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbgLHCF0 (ORCPT ); Mon, 7 Dec 2020 21:05:26 -0500 Date: Mon, 7 Dec 2020 18:04:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607393085; bh=KognAkCYfuOB1Nu4iQHjV0+XS82XioxE4y/7HqsoFSI=; h=From:To:Cc:Subject:In-Reply-To:References:From; b=knwrH+dkY81EEXnXNZrcZ7/DxgrakZsW/jRIRhprkgTkBBpdy2Owu0tNqcetN6IDt 4u/G5n9YDT8JYkLyisZRP9dKW54WjJXuJBMbbet+sMZGrhSkDdfLXEZQGFSKUETobW 8KEb57LGEJugVUVwV7skGo6j0k5D7ttGWBptAP45kKt1XWHVmYxHnq2xLn/6ABgi3m P6O1pnrNTY10rqcjPklFIeE8If1XZwJIUvR+2vsCHsQaNFitbNW/pONVw1+ZQ0ZmSk uKCHK0i42P/oOgTxW70VHFgXU7A2tLsbntopIPou5K9TMn3ikM1OYtQoHwHL2dk3mP icQbKxYNw6tww== From: Jakub Kicinski To: Jerome Brunet Cc: Martin Blumenstingl , davem@davemloft.net, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] net: stmmac: dwmac-meson8b: fix mask definition of the m250_sel mux Message-ID: <20201207180444.2a48c366@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> In-Reply-To: <1jo8j62c8t.fsf@starbuckisacylon.baylibre.com> References: <20201205213207.519341-1-martin.blumenstingl@googlemail.com> <1jo8j62c8t.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 07 Dec 2020 10:31:46 +0100 Jerome Brunet wrote: > > The m250_sel mux clock uses bit 4 in the PRG_ETH0 register. Fix this by > > shifting the PRG_ETH0_CLK_M250_SEL_MASK accordingly as the "mask" in > > struct clk_mux expects the mask relative to the "shift" field in the > > same struct. > > > > While here, get rid of the PRG_ETH0_CLK_M250_SEL_SHIFT macro and use > > __ffs() to determine it from the existing PRG_ETH0_CLK_M250_SEL_MASK > > macro. > > > > Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC") > > Signed-off-by: Martin Blumenstingl > > Reviewed-by: Jerome Brunet Applied, thanks!