Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp896975rwl; Wed, 29 Mar 2023 09:47:25 -0700 (PDT) X-Google-Smtp-Source: AK7set+68DsFKRUXd68gt3SMQP/J/Vm9KkDCtok053Ajhfl1phEOttpfGaPc4XrpNPuE8IkOdaAs X-Received: by 2002:a05:6a20:c41f:b0:db:6237:e76 with SMTP id en31-20020a056a20c41f00b000db62370e76mr15522318pzb.15.1680108445207; Wed, 29 Mar 2023 09:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680108445; cv=none; d=google.com; s=arc-20160816; b=keHOgR9jDYheneRUWOz6UXy+0r9FLFE9zNkVAPc3832z+enElHy3H6Nqysp6iDrqML yjPzFHuxEqtPbgTkENJ4WDezNs9VtUaQs7jBJ00xqZITw2iOuH6jaeKHe7tPvc6n6dxG mfVr2YoEOWtsL8O+rkgwk5UI8FueOLEU9OeU+ECcZp6K3awsJfI9JdgS5dfq7z4jcYEm aPzH7k6KNzRughDCPAdEW8G+V3zdnTx3Ji0jdwjk0Bf8IxvGt9tTjsajaF9V73SdG+SK vIcuWldtM9n2r0q4LWF/kJWzPX4I/RO8YvpCl5JrSEcLmuOOomVcfiFpilvgiwgT0oXX Dyeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q02vEpE9IanvR7N3TS+xOq3YegyHFecQ5XDPoym/Loc=; b=nZC742KVk6hwQuBOvn+/PYS86J3cmsVmDLe5DR8LEm+/aFKTPFh2TF2wWwTOONv6cc 7hFIRylj2EeyLe83hAzUoWjVfRx2nTggtIrOd6Fum6w/01T3xSyjNSme/3odWFrACKZK 5kjMWokwmwwxKqC89o87PGj3rYZSFtkjOKSIKb/pJQl/yJYYZQBkCL2/1AgQA74seE4B m2B28Zxaju7cfo8CxEKAzHQ6zxhp42OSJDo30kJ4NyYXlG5dl0/75vf8bewCgakF/RCf M5NesTeiIZ+jWJv6n7lJP82l8iwdpld+aNRKqg/mH2CbOiUW30o6altcv8JgWZabNDKG tMKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=h74855VI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n127-20020a632785000000b00508de5eb602si32689720pgn.311.2023.03.29.09.47.13; Wed, 29 Mar 2023 09:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=h74855VI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbjC2Q1L (ORCPT + 99 others); Wed, 29 Mar 2023 12:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjC2Q1I (ORCPT ); Wed, 29 Mar 2023 12:27:08 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920D0126; Wed, 29 Mar 2023 09:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Q02vEpE9IanvR7N3TS+xOq3YegyHFecQ5XDPoym/Loc=; b=h74855VIrQBAeKyzlHsW0m3wu+ lIlU++Cr+xfUPWGhQS98kmqJcM+1otMPnRpKcb0OCcSAT3J81JA9Bnf2np1cYcbt7ddXTDWroEirj VgQRYyMLuwzWE5X1fT5Gj1KfUiLogO6ZFIk5pLjFCYGfBNYBfxOokdaSRIf11NSuxipo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1phYdb-008mUE-3Y; Wed, 29 Mar 2023 18:27:03 +0200 Date: Wed, 29 Mar 2023 18:27:03 +0200 From: Andrew Lunn To: Daniel Golle Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang , Landen Chao , DENG Qingfang , Philipp Zabel , Sam Shih , Lorenzo Bianconi , John Crispin , Felix Fietkau Subject: Re: [RFC PATCH net-next v3 05/15] net: dsa: mt7530: introduce mutex helpers Message-ID: <468587cd-c667-445a-b518-fc2db83ba527@lunn.ch> References: <118badcdd9741d21e3d367e10c34a2d66ae04f59.1680105013.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <118badcdd9741d21e3d367e10c34a2d66ae04f59.1680105013.git.daniel@makrotopia.org> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 29, 2023 at 04:58:22PM +0100, Daniel Golle wrote: > As the MDIO bus lock only needs to be involved if actually operating > on an MDIO-connected switch we will need to skip locking for built-in > switches which are accessed via MMIO. > Create helper functions which simplify that upcoming change. > > Signed-off-by: Daniel Golle Reviewed-by: Andrew Lunn Andrew