Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1724079pxj; Wed, 19 May 2021 12:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9drlzTZY2M2nieY30+AxPSsLMeX0aYlpX2ocz08+tpDbuIdKfdM+D4DejFtxFqlXl4lxE X-Received: by 2002:a05:6402:cb8:: with SMTP id cn24mr600792edb.325.1621452146545; Wed, 19 May 2021 12:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452146; cv=none; d=google.com; s=arc-20160816; b=kYpv51GpY048LvzOIK4f8t8m80et+JUeBYFh5OsJij4g0wanGOLaNzRJ0D1oEdvJAY O1/0HW8uRvSdd+zB/9H7+P3CirDdtDtsh/LogxLTYGqMC4yIwWr2KWVOnjKUrZ47wFP4 iyNoX/xc1aPhC77gvnU7PwAl1YXZITVP+IjJK0CX+zTHoEFh/ie3YT5epRS01JYcakAP wvlYNX2mEP0AS23Af+YK+b1FWTMdLsm2ug5DroTYYi4Weq1Lk5UwvlixDeB69C8LMdia 6nhfgpLHBLaZdet9MEKqwb2W+d3pFSQ7NgE/Cno0rbUAk1yyUVctE7MJZTbfUKeKc2Ql 1OjA== 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=RX37GXPCypgvcoWlbbN4gkZ51LJCuj2wgpC5xKSPX+Y=; b=zYl+MzcJ8HmekIclq/PeQSuE3axn13oL0Ggg75X45HH4v1t5B46t0rrZfCuaeww3lV oWFeQIp3nVSfS1l7FN2xbvd4iiAMxCN/YzuGDMLtFXLl4TU5mXmYAN2awcu9zdgvcVxk SXlANK7hupKDEGx9gq2xOP/gluOn148huprPccoVPzI05JZz0VoUsN4nlE1Z9+1AjFw3 pSCcpqMAybD2WzxnMQHHNCsfQ/lDRhntVOZ+bsH70gWw/C2cC5hI+f+EoAW4EDv8S38z 3v4wcgAvxlJkLRbXeJwz/y8yyVC8ziy2LbykuRLXDXpdJy9rnZrCHYaheyg51O/vjXia kATQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EQbXTObv; 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 h8si616000ejj.270.2021.05.19.12.22.01; Wed, 19 May 2021 12:22:26 -0700 (PDT) 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=EQbXTObv; 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 S244604AbhESITn (ORCPT + 99 others); Wed, 19 May 2021 04:19:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:52230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240732AbhESITe (ORCPT ); Wed, 19 May 2021 04:19:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5242F6109F; Wed, 19 May 2021 08:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621412295; bh=dsuOfWqUpLG6TYxzvoXLt4qolVX3EH9WyyCF/m4rDZ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EQbXTObvr4x6HAPKQDoLEy0KFrcDnhjLY8AEw8oTzi3gN4Vs+VRCV6AFyeQelvllV g7FQDiVNV1aMFbB08/om6u+SFsGATw4xd/E1IWj1nNP+7QGnmMQgTHDP73a6MZlPKN 4CTNyy7iJg7hyfZyaQndlExHDjKrESngZQANz877ewTF7cdWmkF1JW65LPxXHlyIXm WBoHjxPDxIcwRxjKNYCRY/8IugEb3NXKLKm3xOlDRzfYqpZq3mpp3M7cCrukUEuptw ytvniQq3569YdALX5OqkbaPBiGm/NzWJ+flxWSvvhZAlp33KfgP/EaRsznquTe/hfD dJQo2kLayKxmQ== Date: Wed, 19 May 2021 11:18:10 +0300 From: Leon Romanovsky To: Peter Geis Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Linux Kernel Mailing List , Linux Kernel Network Developers , "open list:ARM/Rockchip SoC..." Subject: Re: [PATCH] net: phy: add driver for Motorcomm yt8511 phy Message-ID: References: <20210511214605.2937099-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 18, 2021 at 08:20:03PM -0400, Peter Geis wrote: > On Tue, May 18, 2021 at 4:59 AM Leon Romanovsky wrote: > > > > On Tue, May 11, 2021 at 05:46:06PM -0400, Peter Geis wrote: > > > Add a driver for the Motorcomm yt8511 phy that will be used in the > > > production Pine64 rk3566-quartz64 development board. > > > It supports gigabit transfer speeds, rgmii, and 125mhz clk output. > > > > > > Signed-off-by: Peter Geis > > > --- > > > MAINTAINERS | 6 +++ > > > drivers/net/phy/Kconfig | 6 +++ > > > drivers/net/phy/Makefile | 1 + > > > drivers/net/phy/motorcomm.c | 85 +++++++++++++++++++++++++++++++++++++ > > > 4 files changed, 98 insertions(+) > > > create mode 100644 drivers/net/phy/motorcomm.c > > > > <...> > > > > > +static const struct mdio_device_id __maybe_unused motorcomm_tbl[] = { > > > + { PHY_ID_MATCH_EXACT(PHY_ID_YT8511) }, > > > + { /* sentinal */ } > > > +} > > > > Why is this "__maybe_unused"? This *.c file doesn't have any compilation option > > to compile part of it. > > > > The "__maybe_unused" is not needed in this case. > > I was simply following convention, for example the realtek.c, > micrel.c, and smsc.c drivers all have this as well. Maybe they have a reason, but this specific driver doesn't have such. Thanks > > > > > Thanks