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=XcQH3rdI; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.68, mailfrom: pdk@semihalf.com) Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by groups.io with SMTP; Mon, 09 Sep 2019 08:53:01 -0700 Received: by mail-lf1-f68.google.com with SMTP id x80so10928461lff.3 for ; Mon, 09 Sep 2019 08:53:01 -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:mime-version :content-transfer-encoding; bh=KQmnH44yVBi5X2Wa1RDgZNqJXtx71M7g1n+GA/hagrs=; b=XcQH3rdIFCS9Fhw3ZChqWIG0V4ozG/CumBS32Lx3BvgdbDf4uvSl9nlaOWV6b3Q7ZD Q0oGe7neARMr/YI7wVaeBSZmOBq6+MbeLHFwqJnoVWDz3B+rlWg78oc6dwN29w4RGf4Q 5wRLNcm0+1KiRuFJG1O62zOhOO0upZUV3YBqfdlyb2IK5BuzBKfXbAX7Iz740HjwRm9Y gPO+oCfRSb5k/HTIsCiYH4ZIrG2S5fElIdP5pRKwbT3/VjoBmxC1JDZJr8UJKi+Xhgcs jEvrAzfCT1tNHSA3zPuyKwwB2ZBzzuqzyhqTmAvAh5qSFh9QyB1p+tnisfzC9HKYYuYC hwrA== 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:mime-version :content-transfer-encoding; bh=KQmnH44yVBi5X2Wa1RDgZNqJXtx71M7g1n+GA/hagrs=; b=F0MEOkAzzq5L3QskkNtmNQdSIcco5NpYdpsg4fOG1kaoTl+cJHQ+KUULiDWFE8xGV8 lmlKDzkiZbrSUvTLqjwuaIx48xiQbrhWbeUsgT01Av67+JDRvaFtkDW8Px6I2JmGNegw +6sPeFNaU6237qX9MtxH0VPo1LCS90TpSnR8EyemtdS0VkM/35UvK8ffYqNUbYi3IGv0 NzCv5W7aamdnCHUIIER95kAVKaCe17MrJpXvPfmnn6htMg220jYwCJjajnDCINO2Y87b vwnvEd5rQAqAVfEj+wv4V9MOU3p8rr+6QnnagSiaAFj1cK70ZQEQm1KGCJCBnTpcpya9 fv6w== X-Gm-Message-State: APjAAAWrv0I7sRMVpTbqIYN4yGDVMzomd8Uahk7lXF8jd2RcnMQMyFWg ybWJQw81t0s/j239/OmmFtCnKGdTuOJ2xg== X-Google-Smtp-Source: APXvYqx2WFMTfCpvfjrHju1tJ8NUhillEpo4dIgafz479kZJNN3NxwDQg1Qjw8J/cj2aLtct7udr+A== X-Received: by 2002:a19:ee02:: with SMTP id g2mr17080957lfb.113.1568044379359; Mon, 09 Sep 2019 08:52:59 -0700 (PDT) Return-Path: Received: from pdkmachine.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id d8sm3221238ljj.59.2019.09.09.08.52.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Sep 2019 08:52:57 -0700 (PDT) From: Patryk Duda To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, Patryk Duda Subject: [edk2-platforms: PATCH 0/2] Armada 7k8k SPI flash driver improvements Date: Mon, 9 Sep 2019 17:52:10 +0200 Message-Id: <20190909155212.30338-1-pdk@semihalf.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This patchset contains progress bar implementation for MvSpiFlash driver and small fix in calculating number of sectors to write. Progress bar implementation was mostly borrowed from TFTP module. During implementation it turned out that when size is multiplication of sector size, then last sector was not copied because remainder was 0. This was fixed by increasing number of sectors to write. I'm looking forward to your comments or remarks. Best regards, Patryk Patryk Duda (2): Marvell/Drivers: MvSpiFlashDxe: Fix sector number obtaining Marvell/Drivers: MvSpiFlashDxe: Implement progress bar Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.inf | 1 + Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.h | 1 + Silicon/Marvell/Drivers/Spi/MvSpiFlashDxe/MvSpiFlashDxe.c | 59 ++++++++++++++++---- 3 files changed, 51 insertions(+), 10 deletions(-) -- 2.21.0