Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1676246ybv; Sun, 23 Feb 2020 12:20:52 -0800 (PST) X-Google-Smtp-Source: APXvYqysvzKIM4W1gZtRFuEBHJ9d1xsTarlT+pYTIUQllXQcYCJE9qv/FV6M6uJUDNhzB4mf0ivq X-Received: by 2002:aca:4309:: with SMTP id q9mr10464767oia.158.1582489252067; Sun, 23 Feb 2020 12:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582489252; cv=none; d=google.com; s=arc-20160816; b=UrhPSQV6rT+4zYkNlvY7Mejeymp6GSt4CVTozzRPijTRPvbMsPiw1WnX6bW2gChWF9 /ETkB/rjiLVxNuDndnBw5rmOGr5IAU6geBSkqOkdNGR2LUKWTRYoKrmruHjY3XO92T6m RtMf/tFi0AhUT74j1MGZdTTd9pIjEyMh78qVqXEj98pZg1VeqxShSrO/Ixpd8g6N+OLs f1Y5OuL8ZDXcdyV3oMJU5Q0BUM2OroLv2p8+NYDVQYfk2+9JB3z2qZ+6Do1hGF1swyc/ cSpSY20iMUTpv/rxV10FPDxCtZquMV8iCkBvS+O0ShJ/biFlIDyplNjlWTWg1FbFnj1/ PIuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VKpyWUJ7gW4E+h1Y5//iHVzFJTXsAhZvji90FqZCHZ0=; b=Je9rKrMlpqNZrZmlu/ruuC2NNSXm/FGaEaqxiOWtzNcPy9DtG96D5ym9TVK/EOM4fT T0m+O8tMoPxjh8uGeuBcDHlrAISU1xFxxk2WoHgzclTuwO/R3176vwveb6r/rR/0Y8XQ gUHWUUs54IjCmlV+MppLC8cClBMnVHMpe6IT4CfpiI8R7CRYh5oiHcRg2m/C/oqGXueR Y9lMlL1Mjiu4WUjG07WlDuZfSu3yOJ0C5MLbTXS2B3miyPjCzcijOBypuans30tRF7C/ mZKo+maYOpN9V5gDOXjNunU9cTh1a7/EKiHeJzW1kz9vqa5pyCkXkpOTTcTOPBvA2bNF rXsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Bo1BWpsM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si3861627oix.12.2020.02.23.12.20.02; Sun, 23 Feb 2020 12:20:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Bo1BWpsM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727125AbgBWUTf (ORCPT + 99 others); Sun, 23 Feb 2020 15:19:35 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:56518 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgBWUTf (ORCPT ); Sun, 23 Feb 2020 15:19:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VKpyWUJ7gW4E+h1Y5//iHVzFJTXsAhZvji90FqZCHZ0=; b=Bo1BWpsMUXHWoFmIvPDEszdUn JEq8dcLY9j8yHx6HijJLxLxZpPJk5BHAkvNiVKvr/FI1rx/ZJbi6VZrMknyTHObwNDOaJkjBhEomn TMo/C1bocYASl49lrI5X9yrB+dXHSJCNtxtxepUOlkNDxqadtuByghMavnC/wxprEe1mZKfoNu0m7 /oJWPyGUvCrwpw3PM+7U5jCrMcqI52rw3oymW4MlBkii1/60Kf1ULuumqjx4zjAjs587EFHHuaRVH 0pO5uNDqE0DZchOll+pR5DPzkfNhxGgcUvjKR9GF42YvGaWiJ3Cp7A5O1hyIKUZpfWnm4jqnB6h+9 79ii2fnYQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:44320) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1j5xii-0006sy-HP; Sun, 23 Feb 2020 20:19:20 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1j5xie-0005j2-CE; Sun, 23 Feb 2020 20:19:16 +0000 Date: Sun, 23 Feb 2020 20:19:16 +0000 From: Russell King - ARM Linux admin To: Christian Lamparter Cc: Ansuel Smith , Andy Gross , Bjorn Andersson , "David S. Miller" , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , Heiner Kallweit , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/2] net: mdio: add ipq8064 mdio driver Message-ID: <20200223201916.GO25745@shell.armlinux.org.uk> References: <20200222161629.1862-1-ansuelsmth@gmail.com> <4475595.vek7CkyBFf@debian64> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4475595.vek7CkyBFf@debian64> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2020 at 12:47:40AM +0100, Christian Lamparter wrote: > > +static int > > +ipq8064_mdio_read(struct mii_bus *bus, int phy_addr, int reg_offset) > > +{ > > + struct ipq8064_mdio *priv = bus->priv; > > + u32 miiaddr = MII_BUSY | MII_CLKRANGE_250_300M; > > + u32 ret_val; > > + int err; > > + > > + /* Reject clause 45 */ > > + if (reg_offset & MII_ADDR_C45) > > + return -EOPNOTSUPP; > Heh, C45 on IPQ806X? Ok, anyone know the hardware or is this some fancy > forward-thinking future-proofing? Quite simply, the driver as written does not support C45, so it should reject it, rather than truncating the "reg_offset" and issuing C22 cycles instead. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up