Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp232918rwl; Sat, 25 Mar 2023 01:04:58 -0700 (PDT) X-Google-Smtp-Source: AKy350a2njW/kbWkwke37tXJkQDAKojfv00Vk1WP/caCOfkKw2U2ji/Fnq47rbm+A3CobSABJ7ja X-Received: by 2002:a17:907:a68a:b0:93f:9b68:a0f4 with SMTP id vv10-20020a170907a68a00b0093f9b68a0f4mr657953ejc.26.1679731497995; Sat, 25 Mar 2023 01:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679731497; cv=none; d=google.com; s=arc-20160816; b=dABg5FcMRQ/XfKL6Ct9WS6vwfGwq46ogIj22+SnwTvDOwg14DxdxtkpmnoEAtdVz67 rhYAG848gQJ082dZOyVI+mdzinPK4NUd+LGrZ9rBBbBU8qicqHG25V3BPeqTC5L5VybP AZD74KzsgtmCfGy/8+fi5RAFc5GE2aD1u5dVQopWRx6qD73ANGhBxNqB/xe9L1x4qRjg yWJJpwsYKbUxY4xuqsmmJBBd/xYtDnC5VDEXwIAQIlPkuKwjjDNdjvUMhebx5uBsp7o2 NREvoq4LRNJir5P50njPOkvPPdsosgcqAJ/S5VtmFP80fLF+DSNl6Xi8kewlq9BerkJ6 X0iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vfJRG3viKRH7EaYkWVzd8PCePtPqsoCI/itOH6ZbQ/w=; b=kQ76iqr5VvhoWUtnUGqXpFu4aEDcUFAsRHFgwQUJknbwHhSLUOVV677kMO9NYiCXaR XOKaXnL0ewOYerB7YKIOLPQefq0kVWi2xsktNUu82DASApf7PzXznqfMYYib5bu1mioN 3s6xe9/x5XN+58mDpBcySNDbc27QHP7Va0t3DiKlw1324FEXDgFPSkKbkGZPdyfq55kc vZZE0AHsWhNctHQLgeSVKljL6eH4UISYowuP1U5ArNbW94gCSfGkNwOoMA6VOT7f3anj xeMKddBMVNuPRaT1Gh7ayNiHI3lhqrr8rZnzKyl6QWqh8sZO3h3h7I/A/n8Am4BnMPtQ ef1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K6pfWbbK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020a1709060a5a00b009314c7ae06csi23738997ejf.191.2023.03.25.01.04.29; Sat, 25 Mar 2023 01:04:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K6pfWbbK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231681AbjCYHtg (ORCPT + 99 others); Sat, 25 Mar 2023 03:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbjCYHtf (ORCPT ); Sat, 25 Mar 2023 03:49:35 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A353CC2B; Sat, 25 Mar 2023 00:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679730574; x=1711266574; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FI9l8yK3Z4jLS2d3SFwLHKy3poC9MnSFlslPOykU5N8=; b=K6pfWbbKK65K5SwcxNQe2gyhKHTzfoqC0jUaM2U0u+qK8Z6z11ucsdV8 lQ1sIIeu+Fxf8l370/NOvAqYg747owFRCJ4t4o00yzOn+jz/X+OWSoKSU mlRHmIaXMRJPf0WDeBaWOHBxBuubYtNchmHy6BeSV5buhXBPMBABEtsZO PsgX/1lxv/DwqGD5T+C9cgicR1ZeJ6mr0uTfgNOqcxXkCfSQeuNkVcL9C 64ptp01VnazWsAT2u2xWT5zrtJmr1wcWpQNQFe0vxt59odIgBezfM3gxU A2hBdLDzXeWKjsQQW2EDGyKdAB9cUw2ya/aJuFnQukyQTmw6Yb/Os0073 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="339973554" X-IronPort-AV: E=Sophos;i="5.98,290,1673942400"; d="scan'208";a="339973554" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2023 00:49:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="793713002" X-IronPort-AV: E=Sophos;i="5.98,290,1673942400"; d="scan'208";a="793713002" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2023 00:49:31 -0700 Date: Sat, 25 Mar 2023 15:38:04 +0800 From: Xu Yilun To: Tom Rix Cc: Michal Simek , linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Moritz Fischer , Wu Hao , linux-arm-kernel@lists.infradead.org, linux-fpga@vger.kernel.org Subject: Re: [PATCH] fpga: xilinx-pr-decoupler: Use readl wrapper instead of pure readl Message-ID: References: <0381e4e8061c2fee182a104768e84feff3a82d25.1679412800.git.michal.simek@amd.com> <18e45db9-0b7d-abc3-5564-93968819f877@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18e45db9-0b7d-abc3-5564-93968819f877@redhat.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-03-21 at 10:10:14 -0700, Tom Rix wrote: > > On 3/21/23 8:33 AM, Michal Simek wrote: > > Driver has IO wrappers but xlnx_pr_decouple_read() is not used and readl is > > used instead which is just wrong. > > It is also generating sparse issue that xlnx_pr_decouple_read() is unused. > > > > Signed-off-by: Michal Simek > > --- > > > > Created based on discussion with Tom here > > https://lore.kernel.org/r/20230317230617.1673923-1-trix@redhat.com > > --- > > drivers/fpga/xilinx-pr-decoupler.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/fpga/xilinx-pr-decoupler.c b/drivers/fpga/xilinx-pr-decoupler.c > > index 2d9c491f7be9..b76d85449b8f 100644 > > --- a/drivers/fpga/xilinx-pr-decoupler.c > > +++ b/drivers/fpga/xilinx-pr-decoupler.c > > @@ -69,7 +69,7 @@ static int xlnx_pr_decoupler_enable_show(struct fpga_bridge *bridge) > > if (err) > > return err; > > - status = readl(priv->io_base); > > + status = xlnx_pr_decouple_read(priv, CTRL_OFFSET); > > Thanks for the change. > > Reviewed-by: Tom Rix Acked-by: Xu Yilun Applied. > > > clk_disable(priv->clk); >