Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp540394rwr; Thu, 27 Apr 2023 05:10:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mdzxZNLExXpF8hW/Jz+WYYQ48lLwAbEMTo96fq/yymvFSqXULuxsyRUAeX0L33dlTM7nG X-Received: by 2002:a17:902:ce91:b0:1a9:8769:3697 with SMTP id f17-20020a170902ce9100b001a987693697mr1606262plg.4.1682597443206; Thu, 27 Apr 2023 05:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682597443; cv=none; d=google.com; s=arc-20160816; b=Gnh4l43zHpbxaaqRG6oQwCJ6IHqE6oCADW7erRdDiSg034H7gstio/5q7S69Oh4gpa 0z/nRmw+RX16s/FBgpc6m3NFJXu003zkMxW4cT3WcpvK5SDCXJ3/O7LW+JBexX/OytSp 1y/HMAIMXmi/jYjyQVevQFpPoqDpHHO7NPfSH42J2MMEhFtavOopGHk0P36g5+IHHwsE 5D3KTv+BwnGTfJeFRzDKcs9Wr7jXD9b+S/ea+e3nasU37ocAEa4a/H1ZbLho+ebPGLd2 nzD+hwBQdgPBLjuXqn1mUFVm7quH9esnAJ+eTK8hzCSggxuACnaLVHi05x8nMRv0w9C5 uqaQ== 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=nYa/8ox879vAurF3/ChPDco9/s1SvwncDHNZ4lY9C8M=; b=UBVsOKafQS2sT3nKmuT6ib+IX+XjiCT/JXn7HWZrQ5gMezEJIwXT9tFEAEghyKIMne 81IqA95P8nQddLQ4W53unoBXszzG/Yn7vdHQ6zXDH+PMWpcChAz/IhhivmngFsziO6B/ yUSnXhNkvABzVg60wXIonmUVFhBFo44MMq+AHyq9rimQY0SkSoMpnZ/eFdEU+rKMJsPq 6VTYHVuha98vHLjrZkMFrvxnuWukcPBlmkzXr2dxgpuGexG9k6fICZlEXhkRe9DGTGDk zIQ0+mQZkwzKuN2VouKmio6wSkgrC7VHQ22hW4GLzXrwQdFylb+epT+ej+lEOaxK8fN4 dJ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=zrxHHg1q; 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 a10-20020a1709027e4a00b001a4ebe5d058si18111773pln.38.2023.04.27.05.10.28; Thu, 27 Apr 2023 05:10:43 -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=zrxHHg1q; 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 S243662AbjD0MET (ORCPT + 99 others); Thu, 27 Apr 2023 08:04:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243215AbjD0MES (ORCPT ); Thu, 27 Apr 2023 08:04:18 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4C1524F; Thu, 27 Apr 2023 05:04:17 -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=nYa/8ox879vAurF3/ChPDco9/s1SvwncDHNZ4lY9C8M=; b=zrxHHg1qFaP7dAOLkgqO8584Wy s4gWCW4GOLcD5t+6p/KraezkOfzqEk/GVLX7cD0dWLlsDThHXdkh1dP+IUhfungYRc/twulwG5gpD pxGnSDyi6Ia8vcoxZ4dYLhx1tBBhS0mLTo+nEpy51O28YMbLlfz4dO6WyZbCKbGEOIEM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ps0Lz-00BLck-Em; Thu, 27 Apr 2023 14:04:03 +0200 Date: Thu, 27 Apr 2023 14:04:03 +0200 From: Andrew Lunn To: Siddharth Vadapalli Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com Subject: Re: [RFC PATCH 2/2] net: phy: dp83869: fix mii mode when rgmii strap cfg is used Message-ID: References: <20230425054429.3956535-1-s-vadapalli@ti.com> <20230425054429.3956535-3-s-vadapalli@ti.com> <99932a4f-4573-b80b-080b-7d9d3f57bef0@ti.com> <5a2bc044-5fb0-4162-a75a-24c94f8ed3f7@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > > If you say so. I was just thinking you could give the poor software > > engineer a hint the hardware engineer has put on strapping resistors > > which means the PHY is not going to work. > > I understand now. I will update this patch to add a print if the MII mode is not > valid with the configured "dp83869->mode". Would you suggest using a dev_err() > or a dev_dbg()? dev_err(). And you can return -EINVAL when asked to set the interface mode. Andrew