From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=DIDWwbBH; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.195, mailfrom: mw@semihalf.com) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by groups.io with SMTP; Sun, 05 May 2019 19:37:23 -0700 Received: by mail-lj1-f195.google.com with SMTP id 132so1980083ljj.4 for ; Sun, 05 May 2019 19:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P2Ddp9ABveYQnd7aEKQWF+7DGqZgZ9seAP5H+q80ccg=; b=DIDWwbBHvv3mc4lKDhM3mVmmYR85Ph1YWe4uc3ZVWIajqRTPAMXSkwovd64LuJpw91 Oq4yxgi2lOBR73P+LjSPUdb7V/iERu4WM1xqfrrZJwLm3rtEHnRS3pz5q3FCxZCoUu4S NMpbwMoAKT7fM0I4xCuNEtO29IaN6HN8Ny3zn3ZWTAATubn7oOAK16dpvk5gC2emc48k Vg9lEt6F4nqNauPhEK3yGsVzzT2tdKV25sl8Al0L5MNhfOVQ7S9w1mZ2mbRcB7hjfIew qVQBRnttgicmiHxydyYpYaBED+a49dvK2mnNZP1XXOOgvnVzy4jSLJnZCw0v2zbV39ta +dIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P2Ddp9ABveYQnd7aEKQWF+7DGqZgZ9seAP5H+q80ccg=; b=MPSgkQJV0pEw6rDK53M50FPiu7UNHE2sfg6NbxTvRIUwc7MOBbm5+AChmMAjzY4fK0 XHMjCLDEun/uJWavFfcPOrqju4Oi8EJ73w0A+me+E4FBMm4c5OMGuQFoyepw4vHsX2S0 NaE1TDEsksUeBMAXvykjjXX47JOikkbAymOEUiQ6+2KVORRR7edbHbpjHQmaQe0XuogZ h3JiSX/2H1eI90ubv+CI3ZyK1l6336plhr4skt/+KGXRXzDq9cFpx2glSkFbeb5xxNdc z/sGDOImk7OQH8qkEjKfLFQk1zNjGVjA4LxZMAngsGsaMLb32uzJj8OM8b/NI6WJfRmq HEkQ== X-Gm-Message-State: APjAAAVFQm+Q5SSmWOPPDdbMByN13iXY8cGtHjF++ORe/ofMOdmPFc2h XbxJ+UNzLqEirkwNTr3w7BFIdn9L6ng= X-Google-Smtp-Source: APXvYqwd5qUJpFlSiiPWvHcxLr4tLMwHqsm1QOaNs8N/XjddoEaW9PYpxL+0DJtODfqZPDpQOwQT7Q== X-Received: by 2002:a2e:9713:: with SMTP id r19mr12437613lji.189.1557110240733; Sun, 05 May 2019 19:37:20 -0700 (PDT) Return-Path: Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id v6sm288378lfg.96.2019.05.05.19.37.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 May 2019 19:37:20 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, Jici.Gao@arm.com Subject: [edk2-platforms: PATCH v2 4/4] Marvell/Drivers: MvPhyDxe: Reset PHY only once Date: Mon, 6 May 2019 04:37:07 +0200 Message-Id: <1557110227-31466-5-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557110227-31466-1-git-send-email-mw@semihalf.com> References: <1557110227-31466-1-git-send-email-mw@semihalf.com> At the end of PHY low level configuration a soft reset was performed twice. It is not necessary, so remove redundant reset call. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c b/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c index 81f9c0f..4376172 100644 --- a/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c +++ b/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c @@ -180,8 +180,6 @@ MvPhyM88e1111sConfig ( /* Soft reset */ MvPhyReset (PhyDev); - MvPhyReset (PhyDev); - return EFI_SUCCESS; } -- 2.7.4