Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1411535pxb; Wed, 6 Apr 2022 18:08:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTmMUODMYSYWXuWOMRd06yAPYB1/uxIUL6IReR8WcjfV1mcisNWpQldis5Zr/sPOYqeakW X-Received: by 2002:a05:6402:40cf:b0:41b:593b:90b7 with SMTP id z15-20020a05640240cf00b0041b593b90b7mr11636798edb.52.1649293704461; Wed, 06 Apr 2022 18:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649293704; cv=none; d=google.com; s=arc-20160816; b=cMPANutz50e5aJlhw30x2L1U0h1dSsLEKaHsnM9bWGBYcDb2NhE6ZDvfjnJ9Cg0UGX tJ5s9gMpbqNCuA4tJDVDu2zXq4MyRmEvgZNvqDCnFgRjFa+6cA4QkqD1tUEY+5/Wm7yM GFAjJzffMpiZlk6ZiFWADKzkEwRJwDG/Gwl6zriEGXL/CNq4v5kZ+e5seTqxjl3cu8G8 fVejh4p4ajb8mrPyO8M0/NrQSOhlhGZdeTTt2HoF2v7HnazgTCAFdyxa/hUFl2TCwNUE OFKZzGfAf9cM5uT83ctzk6p8ZW28LUEWTkpkAzpOmH3ZGyydGe9+wGpCEme53gzdg7Am ybVA== 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=eiI7X6dT42yKGQJQb30m9eUSmBWaGsGGkVUqKrcoGx4=; b=vXqTe2aA5YAWxwnqMdZnfMAx5SkIh9nbcMLw0lT4hrHcG2WZWgbDqPygd91lUw1ZZE zEBV0qbkuYa3iPdX2HLOzTkj93np40N01ztrNLM4rn0mVJ1aANzRGtRQnxxuCou4qOl8 aGdpRLn57g5yK4atr66iesYupPNfD73ZFRJ8jfRsArQAf7CMl2bBV322TzaleM0R/Kv4 fkql/oAsJJodVAV2nNkheTcs6iiya32EU0MCM7D73j94wak5ueUewF1sZj9jkuoeFJqd FuABaC7be3h3OV5pQ86YsWuKMCc1INCSTrj7SveeNwjXO5lvvLsU0dzKfubT91nsrB/D za8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="LWDVJ/ZS"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz21-20020a170907a05500b006df76385d79si12191384ejc.537.2022.04.06.18.07.59; Wed, 06 Apr 2022 18:08:24 -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="LWDVJ/ZS"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232947AbiDFUko (ORCPT + 99 others); Wed, 6 Apr 2022 16:40:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234864AbiDFUkE (ORCPT ); Wed, 6 Apr 2022 16:40:04 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409F4398201; Wed, 6 Apr 2022 11:58:31 -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=eiI7X6dT42yKGQJQb30m9eUSmBWaGsGGkVUqKrcoGx4=; b=LWDVJ/ZSal1eHjVTrYsVrSwlKr ApMgW1FbcuXL6b0jKhUUkux08j2su2wbZQVFTnKaDbAHeeOMeUJAHsUkUueocktlsREn/Und0NI2w Rq5fOth9IRM6Zcba/37iVrBgL+A3k/9IMSPHfKgIJEdWCX+LwPMUq5sA3UOl4OjCWG8E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ncAr5-00EVUY-Ni; Wed, 06 Apr 2022 20:58:11 +0200 Date: Wed, 6 Apr 2022 20:58:11 +0200 From: Andrew Lunn To: Potin Lai Cc: Heiner Kallweit , Russell King , davem@davemloft.net, Jakub Kicinski , Joel Stanley , Andrew Jeffery , Patrick Williams , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next RESEND v2 1/3] net: mdio: aspeed: move reg accessing part into separate functions Message-ID: References: <20220406170055.28516-1-potin.lai@quantatw.com> <20220406170055.28516-2-potin.lai@quantatw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406170055.28516-2-potin.lai@quantatw.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Apr 07, 2022 at 01:00:53AM +0800, Potin Lai wrote: > Add aspeed_mdio_op() and aseed_mdio_get_data() for register accessing. > > aspeed_mdio_op() handles operations, write command to control register, > then check and wait operations is finished (bit 31 is cleared). > > aseed_mdio_get_data() fetchs the result value of operation from data > register. > > Signed-off-by: Potin Lai Reviewed-by: Andrew Lunn Andrew