Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1397794yba; Tue, 2 Apr 2019 08:09:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxefX8YvsQ+RkmlC9vR16wapUDHKDjlfAv2Y5cpbILo0nLaEATlQz5DyN2GWq77tu6Xjlpi X-Received: by 2002:a65:5304:: with SMTP id m4mr22203009pgq.281.1554217758342; Tue, 02 Apr 2019 08:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554217758; cv=none; d=google.com; s=arc-20160816; b=KriKLiphIC3KKXERot8puW2feYjzzzYd137vlmex+pSwluAfmSr7qND431EMIpNyjY YbsgIJqrpTnYp4o9sB+LaXZpgTb9K/23Opo7SV7CO0MztGid7SVhZseWajERUZwfever 5Azw42Uk99D49W2qVLkrEkoyaOI1xivOa5j3Frqlie5LVMl6ic0UjkwTdc0+3sEtic6n S9o1u3QfF3q8kvQde6xh0JYHEzpV8DUJ76+MCGDOXFilCPN7OyWtDreAZHvhKg54dNO5 d4tuONzvd1C97GB5CMWkk/zHtU3T38/7eOYOk+5I8YMSmXyfd5aG8ZNcH8Mz0t3nNfsQ OJ8g== 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=6aeOC7SVpLFSszfhznLaB+QdrlYI8qSl4PkyhTfLSWk=; b=K55qspAkUcKHT5WcVUOxddPrJN/OrEuz+L3if0RrE3++9ULsywBWszXmBSnnrMiWch bfqY6+YdrernB5u9sVQGmGvaW+1Ntbd5t606MGHvJFbBtId+bNa/V+F4zsSj0coozPZ6 J8Pw5ahMTt0PFzKFOKoG2e4g7ozEkjDLMNekyhuylQvoJnNCvNA5nw9lSeC03TzhIP/K AV9hOF8lG6AFoLNcbavyYdsc8hCY8ITpHpItsreYAC8m0CgdmcAAS9I2l1mnybk3HZle BN+hYdkzGfZdfavUP7J/vBEcMXPH/3Rvp3pkUhgVIoVAzPBVrYPUhNF2QetRky/SWSw2 NYLw== 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 h23si11261692pgv.190.2019.04.02.08.09.02; Tue, 02 Apr 2019 08:09:18 -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 S1731080AbfDBNds (ORCPT + 99 others); Tue, 2 Apr 2019 09:33:48 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:45566 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730324AbfDBNds (ORCPT ); Tue, 2 Apr 2019 09:33:48 -0400 Received: by mail-ot1-f66.google.com with SMTP id e5so11962939otk.12; Tue, 02 Apr 2019 06:33:47 -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=6aeOC7SVpLFSszfhznLaB+QdrlYI8qSl4PkyhTfLSWk=; b=U7tCaBRXImTi4qHyTp+ZfQl9Ucm9itgC/FIVWEh9nvvmAT6xKc9dS5tamRgHBdQjSe 2EHHVOBQSCAfRRvRCW9mThtalGnjVlszVXDNSloHqAgFeDHhzVsX7aOtwcS+0NkBoqC0 rMx5vz+ySkGheS8CdRLOFN1uRu0Tfn+JR74+FOGafcE0V304Te+6dhC7wFK+vs6CY8Oc P64N5qAh2qGCah9mKECCQTEMhEelhW3u4goUft5HZhY12JjpCdY7aKyPG9ndaAxBR2gV UmfAchBPZ9Llni4xxwds/a94qUwxUrV9pf14Q1nfaD4R2YOefwJi4Xk78K0OnUT0A/6R Ga3w== X-Gm-Message-State: APjAAAVHCxsIRzAKopURXikGz8JLM+uMiVdQSSj/07vRIVpHCC7I8As6 egun5PUektNv0O//eB+4Jv8= X-Received: by 2002:a9d:7e91:: with SMTP id m17mr23004271otp.78.1554212027489; Tue, 02 Apr 2019 06:33:47 -0700 (PDT) Received: from localhost ([130.164.62.212]) by smtp.gmail.com with ESMTPSA id u11sm5532165otb.66.2019.04.02.06.33.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 06:33:46 -0700 (PDT) Date: Tue, 2 Apr 2019 06:33:46 -0700 From: Moritz Fischer To: Wu Hao Cc: Moritz Fischer , atull@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: <20190402133346.GA14777@archbook> References: <1553483264-5379-1-git-send-email-hao.wu@intel.com> <1553483264-5379-2-git-send-email-hao.wu@intel.com> <20190401195447.GA1910@archbook> <20190402043845.GA24012@hao-dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190402043845.GA24012@hao-dev> 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 Tue, Apr 02, 2019 at 12:38:45PM +0800, Wu Hao wrote: > On Mon, Apr 01, 2019 at 12:54:47PM -0700, Moritz Fischer wrote: > > 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 Acked-by: Moritz Fischer > > > --- > > > 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? > > Hi Moritz, > > This is just a bug fixing for wrong offsets given to these 2 registers > according to spec. I think this is not endianess related, and per my > understanding we don't need more code on endianess handling as that > should be done inside the readq function already. :) > > Thanks > Hao Thanks for clarifying, Moritz