From patchwork Mon Mar 25 19:30:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13602810 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44F12199B4 for ; Mon, 25 Mar 2024 19:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711395044; cv=none; b=lA5IJCKK6Ao2mRRld441+JQaTEk7b7x+i29mDWgaEoRv3ttMmoUDP1YkpRBdcVyl97mhVUWH+CVDP/UoU9ahjCaZmVHEjDnBBr1mLSXW4MKxKmwIHmQqxa0mLOi/lJU4Bigl7lm1qPswVfURt5wnrp2gfAku+irPD94MnYo8pbc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711395044; c=relaxed/simple; bh=v6G1t5xa1m45npwhCM/vE4vLduoUMyKJzxpyHQSCp1I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=YCmnqfLrXk30kAEEY7u21MlNgaxnzH5lyyKPs3J93UDczi8S6ccMvumzK6TAV/R+jBNkWaKPdLpAEiMRnz2RcpSTTRpArJYTpYzHeEoMEHtBEQcqO8XTnIxScUxyHPVWNB4poSjM95nqetDjmEI9qXUjkGR0ArMX/cW+S1ooV0c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=IesjFqmh; arc=none smtp.client-ip=209.85.160.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="IesjFqmh" Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-42e29149883so16133961cf.2 for ; Mon, 25 Mar 2024 12:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1711395042; x=1711999842; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=G4dYGcZiV00v6EHc6gdMbt+oV99j68Ka3RFWTHrz6o8=; b=IesjFqmhPxa38ezMNj88pfBbQsxqRWEZyNtR/mVujwvGXBLqsTmPbxEXD4udZtM9Gb DzQwUB6ziYegte59+FlwTI8RKvrg/YF9hc/0CQyVOXn44M89+/nz9IHCiihoBRFGlTc2 Zqx6g11we/ZphqNBYTxY3O6UlFZ4/hmHrYnfs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711395042; x=1711999842; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G4dYGcZiV00v6EHc6gdMbt+oV99j68Ka3RFWTHrz6o8=; b=M44kFJPJolNN40xzGgXbutOlZB1fTrCbiUlxWX0BgekpIyxWK1euDdLfMxdtmGSy22 2KT02KIdOXpPITXV6RxSvdnt4EzDz8IiITybNaeKTiZJ6CUQr6uXT23J714Q6sMEYyB2 /XPQvLbXRbZdJ6wCOXNrPQmbC9UPBJl73M7du0mvD/++1hUlOk2SQGyzg4ROFzhWG29g h0daj7/HnswXrdlXoBsQ8dzv5SBCUij7eeo6nUcbeDTruSL1AgqvmNYxXPB16OPgskd+ Frg+S4zdXiyaR7ei2JvW9XKLplg5xLDagkVMWNPW5zxYA431K5DMu6PNPYBZJyvV4yMx ly5w== X-Gm-Message-State: AOJu0YyrjBQfXm5sIc1EcXkTuIBx0jr9A3vSeabja7GUGmeBVVvs/wnt 8EOmhMdKsuF9jruwo/iG0aGaEvAj7xAupWtv2j579QH1PcEAMIg51Ax5z76bW6sgbr6b2+sx1E5 BTpSKKQa+VOVBRoFkZTq4h5KCOWhSAAlwrmXuxx9jMF3vJLMyawWQEcWFfUbZiSclo/WK46wS0A 2vrtCVHw65wWQ/Y0jjNQ3ZxQ0haEoGUH8XZl/GICXBhA== X-Google-Smtp-Source: AGHT+IFZjEYqy/EOWSAVkzKNy3/4LrstDzlvj3KzEeW6dmxMQujmv7e5mNCuDmyH6pXJGD8Ba0YbfA== X-Received: by 2002:ac8:7d0e:0:b0:431:2007:48c8 with SMTP id g14-20020ac87d0e000000b00431200748c8mr8887202qtb.13.1711395041877; Mon, 25 Mar 2024 12:30:41 -0700 (PDT) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id ey5-20020a05622a4c0500b00431612e7111sm689448qtb.41.2024.03.25.12.30.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:30:41 -0700 (PDT) From: Justin Chen To: netdev@vger.kernel.org Cc: florian.fainelli@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, bcm-kernel-feedback-list@broadcom.com, opendmb@gmail.com, Justin Chen Subject: [PATCH net 0/2] net: bcmasp: phy managements fixes Date: Mon, 25 Mar 2024 12:30:23 -0700 Message-Id: <20240325193025.1540737-1-justin.chen@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Fix two issues. - The unimac may be put in a bad state if PHY RX clk doesn't exist during reset. Work around this by bringing the unimac out of reset during phy up. - Remove redundant phy_{suspend/resume} Justin Chen (2): net: bcmasp: Bring up unimac after PHY link up net: bcmasp: Remove phy_{suspend/resume} .../net/ethernet/broadcom/asp2/bcmasp_intf.c | 43 +++++++++---------- 1 file changed, 20 insertions(+), 23 deletions(-)