Message ID | 20210616032255.76966-1-wesley.sheng@amd.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=gOeDH4TR; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Wt41kcfz9sWl for <incoming@patchwork.ozlabs.org>; Wed, 16 Jun 2021 14:09:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34A3E82946; Wed, 16 Jun 2021 06:09:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="gOeDH4TR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0860282928; Wed, 16 Jun 2021 05:23:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2060c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5a::60c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DF4D4801BE for <u-boot@lists.denx.de>; Wed, 16 Jun 2021 05:23:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=Wesley.sheng@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FX+peVrgw+l0sBoIdwIvydWC3sBGm9Zm0GEw9dyfICrCcsiC5j4oT90jE6WYVkg5UO2S85d4gqUqVbphTNVHtF1ffXQMSu7NjciPA+Ih+zCa8SuFJl1yaOUF54dPRE3ooluIs3+bzQxho44/wYhhQHuSlqL03rzjnkqnhJEB+2FiGdtF/hAqvqQbZj+wPv39SugHShdwdtb2j3W7TTy4q8TtSGKBg9wRZdyDTqiHJwnEXZiqyl/rvrZoTP2sJApfIbLXSIPThWEkigtUbbHDwBDEIWSUjQE0M+L9pNCtugS9h4RO2nF532q/pcgvkybvf90vfEiksIzBOtJSBmDLHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FKCcBwzmCGTG6WdTCpsw7YWLMQXYVgNJRV/D6v2Y8Z4=; b=VaoAfP4wQi6hyLeJkoQxusL/xcju2adzHw92ZBgAJ6tVG5XaAr09pzp5MC69uhI9WgIZjGyqwfZ096pED/v67hjOWhLYNZQXKzyNT/IJKgnamWR8zzof1Sjb9W9HgC0vdtVhkzSAS7Aos/sZ1dgblOAGlodxGBRDf5skNjjqEYgJ8nVqriYPihRHZ3tjsAuL5P0qn5EOWuZO/Rn3jq8R6v9aOqyd/uApOfZxH9L6dyKj1ZkJN7nhIxwKnt22QumlECHOqWtF74fu2OLxMPse/C+2jIOydCjiYiqS+LY4cXCE2i9yJhpmjBSi+Z9AcumTqvsIPVvsv4eJpC4rkHJDBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FKCcBwzmCGTG6WdTCpsw7YWLMQXYVgNJRV/D6v2Y8Z4=; b=gOeDH4TRVCK7V0qmgZq+wXuErJQTDe0bidYHxUqu/GVZqtGpEl42L4Pg48BUyqYzUEGzZqzVDwF7FvghyVscyueLoC5qKm2TE/upWUNC7+TC6ci9QhJqm/K1Hso2iG/qPv5hyp36APufZ5bjSaEigRSaw0S9tNhDAhLgFO8DXbk= Received: from MWHPR22CA0011.namprd22.prod.outlook.com (2603:10b6:300:ef::21) by CY4PR12MB1688.namprd12.prod.outlook.com (2603:10b6:910:8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Wed, 16 Jun 2021 03:23:01 +0000 Received: from CO1NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:300:ef:cafe::48) by MWHPR22CA0011.outlook.office365.com (2603:10b6:300:ef::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Wed, 16 Jun 2021 03:23:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT012.mail.protection.outlook.com (10.13.175.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4242.16 via Frontend Transport; Wed, 16 Jun 2021 03:23:00 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 15 Jun 2021 22:22:59 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 15 Jun 2021 22:22:59 -0500 Received: from weisheng-Pro-E800-G4-WS950T.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2242.4 via Frontend Transport; Tue, 15 Jun 2021 22:22:58 -0500 From: Wesley Sheng <wesley.sheng@amd.com> To: <u-boot@lists.denx.de> CC: <wesleyshenggit@sina.com>, <wesley.sheng@amd.com> Subject: [PATCH] nvme: Remove the redundant aqa value setting Date: Wed, 16 Jun 2021 11:22:55 +0800 Message-ID: <20210616032255.76966-1-wesley.sheng@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b7d4de3-7260-4758-d83a-08d930760bb1 X-MS-TrafficTypeDiagnostic: CY4PR12MB1688: X-Microsoft-Antispam-PRVS: <CY4PR12MB168883F669BC15FB328472F3950F9@CY4PR12MB1688.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0te7CL5Zqb7602eBVPYX9UpoKeCeIHzVs8CIJopEsSzH+LH9LX6j7sEIqKtfYwFVZq2atGMLJmraBff2QcpAJVfHF1FJ9sMc7yGRxMIUoVyq9Gw5TTj7dKVlwjNiAZeK+MtrLV4ocuvw+rWhWzPZ9jIB+KW8/fL6YTa/y5aoX+T0H0i/0Nt4fVUh1Ucfism4iFCTr/T8V8s2Z28l9FTiwBsu1tnBvR2AeMb0wTYBCm+wqQMZ+uGJAgsTFtE/zNOP6y4Hnd8WfAyq2aH6ore7vsvdJx2V+4KEGTDosNKmShBXAPv8q7Oo457K4cjMbFwHMGGTF1Ji7pHMwvgd9GcLdS98NSV18IsDQreNxVF0UKN+yvE00Y0HVpbrPo8bVavCSQFhZJoJwlWUFpsmcaC5+9qI3tM9aj14/SQGiDYZk16tP3Lk6Fe3YfDXo2/9tcvlZWJBKMH2zZ0WhPN+B4i1rCLMb3RW/ghRedXNYS49pDns+5MwCKYPS/hjtDQpqX40ue+1DvyRlKqO0WKgr9/6ma5LkP1RY4ZCdYMHYNUd9IW3o6fkV82BTD8BCzmC20TJrctMBGMXlQyLd2STlcfaXk/ksjEd8/Z+emyfCmFKiPyMT5iV0qDpVnaOaMnDm3tIxQjxDQJDV3n2G8WEmnabJGdu0EC2q3TT+HM3qRDG5Ulx0T0ewbYwsLabdPJUdPsB X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(346002)(396003)(376002)(39860400002)(136003)(46966006)(36840700001)(82310400003)(186003)(36756003)(4744005)(70206006)(356005)(426003)(316002)(47076005)(336012)(5660300002)(83380400001)(70586007)(4326008)(2616005)(6916009)(44832011)(86362001)(2906002)(82740400003)(8936002)(81166007)(6666004)(36860700001)(1076003)(478600001)(54906003)(7696005)(26005)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2021 03:23:00.8495 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b7d4de3-7260-4758-d83a-08d930760bb1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1688 X-Mailman-Approved-At: Wed, 16 Jun 2021 06:09:29 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
nvme: Remove the redundant aqa value setting
|
expand
|
On Wed, Jun 16, 2021 at 12:09 PM Wesley Sheng <wesley.sheng@amd.com> wrote: > > From: wesleywesley <wesleyshenggit@sina.com> > > AQA (Admin Queue Attributes) register is a dword size with > lower word of ASQS, and higher word of ACQS. > > The code set the variable aqa twice, but it is redundant. > > Signed-off-by: wesleywesley <wesleyshenggit@sina.com> > --- > drivers/nvme/nvme.c | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index fc64d93ab8..a062234163 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -379,7 +379,6 @@ static int nvme_configure_admin_queue(struct nvme_dev *dev) aqa = nvmeq->q_depth - 1; aqa |= aqa << 16; - aqa |= aqa << 16; dev->page_size = 1 << page_shift;