From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A71D3AC11A6 for ; Sun, 8 Oct 2023 15:39:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ojLkNC9agb76MORXh1l34xVnWO5zTilWJbJmQkxW3HU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1696779575; v=1; b=fTnGlaNqcDdgu6rMUQ1cZ0We9uVsfj/W1zfdKzHBCSoF63NlCsiRVvBDdb+muaTB7zSq09w5 mjXXz4qK7u5SmoQJFXdcu6ujzoSQlzXH7afaZ9CJEtRW44NAmHJ1XItZnhXWxTQIeD/krVlCBUx LHemSMkBGswG/9JQM+cDLwJ0= X-Received: by 127.0.0.2 with SMTP id gglfYY7687511xqT6TozKLeG; Sun, 08 Oct 2023 08:39:35 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.40421.1696779573038207278 for ; Sun, 08 Oct 2023 08:39:33 -0700 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-52-sZOcZS3GMpaMIzgY7VPKiQ-1; Sun, 08 Oct 2023 11:39:19 -0400 X-MC-Unique: sZOcZS3GMpaMIzgY7VPKiQ-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DC1553C176E1; Sun, 8 Oct 2023 15:39:18 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.192.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id DF69F492B05; Sun, 8 Oct 2023 15:39:17 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Gerd Hoffmann , Leif Lindholm , Sami Mujawar Subject: [edk2-devel] [PATCH 2/9] ArmVirtPkg/Fdt16550SerialPortHookLib: rebase to FdtSerialPortAddressLib Date: Sun, 8 Oct 2023 17:39:05 +0200 Message-Id: <20231008153912.175941-3-lersek@redhat.com> In-Reply-To: <20231008153912.175941-1-lersek@redhat.com> References: <20231008153912.175941-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 1S4OmdOho7m7LODtjJkXQWZTx7686176AA= Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="US-ASCII"; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=fTnGlaNq; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io VGhpcyBpcyBvbmx5IGEgcmVmYWN0b3Jpbmc7IHRoZSBwYXRjaCBpcyBub3Qgc3VwcG9zZWQgdG8g Y2F1c2UgYW55Cm9ic2VydmFibGUgY2hhbmdlLgoKQnVpbGQtdGVzd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