Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp610059yba; Mon, 1 Apr 2019 12:55:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLiAG8GQmjJ/MdVB4mozlf3Z9mU0g2M9GgG1Mtt5zvzLSYnPgQ1LfInNObCbsgIlheJCZd X-Received: by 2002:a17:902:8345:: with SMTP id z5mr12717596pln.197.1554148555331; Mon, 01 Apr 2019 12:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554148555; cv=none; d=google.com; s=arc-20160816; b=Y2d+2YyGcEfY7+jB+ipi9mt9uPgAM4UayWmBCjRvtrJNDKDkMVgRR7JnveIlAyez3y wSWD+w6Hrg3TZiUJINF/YZEtZPHwefIrAHy4NRAGiY/zdGxmsL4xwaBDZG4wfO2gHAMm wgozvt0l4i02X8wU5tENaSxnzeTkGH2/wNhEZ+kEEeHnpr4peT86Suaagt25f1TQq3Ty 9lKQr1fOqd6KwaP+4udaxHGt1/rDHG//3SaH1HbgbLbts08zRLuSa5EQnuoGo51ngTx2 Vgt44Axn3+kMjvsHGH/cIL1VL3PyunO5o15vTYfe0g3saGHQC5sffb6TeuVZ8zpA1z6L f+Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AGDOzetaZYZ8LOd8b9oKz8TSRDQVr/+nYM3Gw/VJ2oQ=; b=gE7TBqa/M1Mn76Qoo3w6aG5tFBlU2QnIiOK6u34Rt7gLZ14CJdlGUHmm9lfC+MitA3 HCx6hOJYMJF8VDAm7ppCIsBkqL+4xQMjrnnkfboRqEnNG1HWd/CWLwRgfpg6aRQyL8yH YiwcNpzht3gk8P6LQQX4dCAfvPW5Zr8qJVbGJ/IX6Y9K3fDAvDRCiiisq/vlmQDCmfGl 35FBvRtV0cIgcJJTLBv81YbP3MgUGwdImeUO50XtlW4r0iTPPUeQbReEOIY7JZQHb4FI XjMOi/CMwHmBue1CAxjVtUkMrHVM9dC1mrAgMpq+8mCrMi3D+qn1fZ6wLgc+SDUXYwM/ v6Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si9658962pgh.458.2019.04.01.12.55.40; Mon, 01 Apr 2019 12:55:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbfDATyv (ORCPT + 99 others); Mon, 1 Apr 2019 15:54:51 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:37585 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfDATyu (ORCPT ); Mon, 1 Apr 2019 15:54:50 -0400 Received: by mail-oi1-f195.google.com with SMTP id v84so8405679oif.4 for ; Mon, 01 Apr 2019 12:54:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AGDOzetaZYZ8LOd8b9oKz8TSRDQVr/+nYM3Gw/VJ2oQ=; b=UW9igYgiZXQEjeJW99iUJnbvEvPS5zVaLqiwO4Q9KbxJ/JiWNvvEpRKmaUb1bjNfgC AaYcSQw0YR8HWi0H3CP+jNzQZhxGmw0poyS4I0ObVXErYjyczzB25jPW/tEVScvpBvOu j0CAzg+CigipLzaH2KY6Kp+SwqqRGa4fanMQ22XEKFhrGx81bdALT6NA/HztsnavMgkb kt4/8zQeKt+3fAk+6baigvugYfIj7x+jZWUOhx+DdEzOOB6mAdNYz1fNprq6w6hcO4gS NIEvAn/YJqt+SpNpoipcBpqGWrZdxna8iJKpOJEK0XNvrDZB5LoFMJAoad8aaZxb5FrK hSsw== X-Gm-Message-State: APjAAAXfOTrARnRZ5fl0EH3zlCIeDrjIJ3S/Jvvm9GkMmrGv3Y7paDoT zxboVu1wyQQz8cuNRLi4IN3nWQ== X-Received: by 2002:aca:355:: with SMTP id 82mr1877834oid.30.1554148489952; Mon, 01 Apr 2019 12:54:49 -0700 (PDT) Received: from localhost ([130.164.62.212]) by smtp.gmail.com with ESMTPSA id j18sm4483486otq.68.2019.04.01.12.54.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 12:54:48 -0700 (PDT) Date: Mon, 1 Apr 2019 12:54:47 -0700 From: Moritz Fischer To: Wu Hao Cc: atull@kernel.org, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH 01/17] fpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address. Message-ID: <20190401195447.GA1910@archbook> References: <1553483264-5379-1-git-send-email-hao.wu@intel.com> <1553483264-5379-2-git-send-email-hao.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553483264-5379-2-git-send-email-hao.wu@intel.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wu, On Mon, Mar 25, 2019 at 11:07:28AM +0800, Wu Hao wrote: > FME_PR_INTFC_ID is used as compat_id for fpga manager and region, > but high 64 bits and low 64 bits of the compat_id are swapped by > mistake. This patch fixes this problem by fixing register address. > > Signed-off-by: Wu Hao > --- > drivers/fpga/dfl-fme-mgr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/fpga/dfl-fme-mgr.c b/drivers/fpga/dfl-fme-mgr.c > index 76f3770..b3f7eee 100644 > --- a/drivers/fpga/dfl-fme-mgr.c > +++ b/drivers/fpga/dfl-fme-mgr.c > @@ -30,8 +30,8 @@ > #define FME_PR_STS 0x10 > #define FME_PR_DATA 0x18 > #define FME_PR_ERR 0x20 > -#define FME_PR_INTFC_ID_H 0xA8 > -#define FME_PR_INTFC_ID_L 0xB0 > +#define FME_PR_INTFC_ID_L 0xA8 > +#define FME_PR_INTFC_ID_H 0xB0 Does this handle endianess correct? > > /* FME PR Control Register Bitfield */ > #define FME_PR_CTRL_PR_RST BIT_ULL(0) /* Reset PR engine */ > -- > 2.7.4 > Cheers, Moritz