Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp971583lqz; Sun, 31 Mar 2024 07:39:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmnT62vD1WjQsombfoFC8r9y6Ha8CG8YnDkwc+Gv6516YBFrbitfzcVqcqlg1DB+ljeXKDSC24tCmHygrSN+kZC9m2y8fL4b08i7pZBw== X-Google-Smtp-Source: AGHT+IH8+9UCtKydoRDVnBxgqLdiKqXedPv1NoRSFWVjw8diD9l5P43MRtHKzjbB4dDAC6k9K2Yi X-Received: by 2002:a17:902:eb8f:b0:1e2:45ed:6b8c with SMTP id q15-20020a170902eb8f00b001e245ed6b8cmr3703854plg.11.1711895982662; Sun, 31 Mar 2024 07:39:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711895982; cv=pass; d=google.com; s=arc-20160816; b=v/8HaqwCqbkNubdbF8jaVOyi6rN8LIg8i2KIt3kyoG0OrjPjnr3F3eo9L5xPOQm90T 4FdocTSA2KwLfFmGpJxpCZzLQFFE/Fb3o8PbxL8AMXOfLZbEwC4U99Mdm53wLB9Bd71Q wnku8QoUAhn0lnPPpkJWlaXicYQ+yIv9DPXmf+6fbCqkpvR+G8ZxcG8L6gzcOf16KE1Y 4nLeGMjwndkudeGLgXvgYigavqtOtqXqFUPEgUUmsrjZI+E/gkFrwjtkm8gRsB21eD05 hFNTv38uxm//iFWJ0T5OIYF2gVvpHXZnb18HXJJgsh8Nlg0jGTrluI41uWtmdKgsklUK Yyxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GCg7HPaQ79tAd2F76pyOQh4P9L/AGstkDInAl3eM+wY=; fh=odv3siBkyPeVb9G92gO5k4awbWsf0QmhRC4a25u6pQE=; b=Sq6wKTCmx7flVl5Ltat3NWfgGkrJGcGehMYqIAup3/hMO/iTdODvTIB4ABu94jD9eY tsfTgfKL/GaR0H95XNv1zCGs9IAWf1bh2BW7edJ3qzftF0YkIICeExFc2cHkGFBFHHI6 XqXw2pVUi4QdoTfe38MJXMlNKn5fqGYNbRQzqFM1sp46e4BlBq87PhveCORK8Zap2oIf hSlTgvnbsaCpcEW/Ohhvyf/Hvmq+BxN2U75LGjYhCjehZQ5Sqb9drpp0EMASjFKcFLF0 N0IKWPqqDwWUah4bUhXXZpwPTTKjzFnIC4D4XRbMAl3mNVgR9p0UeTfUeCCU3bJ2GPpO 9MlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LEm0WQFx; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-126087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l14-20020a170903244e00b001e245cafca2si2890516pls.383.2024.03.31.07.39.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 07:39:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LEm0WQFx; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-126087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 57C6A281C45 for ; Sun, 31 Mar 2024 14:39:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9C2F1448DB; Sun, 31 Mar 2024 14:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LEm0WQFx" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C1682F3B; Sun, 31 Mar 2024 14:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711895974; cv=none; b=pka5zHYSs30EEMb+YctV+gJ5Dlv5FlvsvVHt97RFJwNN3qZ8nuYmKKLrQ/pfo69NjHJItANFPuHZbhnku3i1ketuEazZZB69xTnWVF37FITxtv87NpFlhUDHCCPYO5kgMJWV8tjywZaQJuuwAieIkoNg0ITomq4INewk2ytLcS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711895974; c=relaxed/simple; bh=Yr7QgpoloklAjRb1NPaSLk0w+kU1jaHFGFJSCWmfwT4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mDLMgadNwlAXku1SErvMOWkF8xz7j9m1II4lAasrXHPHd2GLG4BXQWy7XfS+T22JqfcyL0wvF4IAaXmwaIZZhYuQtpBALLsOvolslb4p6z6bUrIrLFw5XkjXWUv8mzuepRALz5WQM7nKgrms75125dYQQUyvV8qwX9RkVLVH2Gs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LEm0WQFx; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711895973; x=1743431973; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Yr7QgpoloklAjRb1NPaSLk0w+kU1jaHFGFJSCWmfwT4=; b=LEm0WQFxDy6gTqAhxvcA9p1APciBhgR/hITlnViUY0Ke1sY+pRFdj9sa o0xt0Ph9xKBGutkS2XSwqnAGzFAbmCYm0T8iSbwSOgFf2W/AELezDC7am i/RlXZ3UimdGhVVuE2ZlOp+NwS2yLwh576mpv7nNwsrvXrAmziDJshK1S NA0i1BXOuOrncpfHxNlRX85X/MFoVVf4lVBWFvYUkn8PYlnLy8WE/QneM gSZusCng8IU6Qr0aw0PBgcRfFzSDd7Paoxjsoe0ClFn6F1rPjg+2klojb Goer9hiekfmezvQmvk2Dj5vK7DyV7PxldTiv/W/PH8c4WWXJMK29f3OVM Q==; X-CSE-ConnectionGUID: 44bafuEdSyKUvjJzmwOMTw== X-CSE-MsgGUID: 0cyHvS0ZQ/W54qbAMEiVoQ== X-IronPort-AV: E=McAfee;i="6600,9927,11030"; a="17653424" X-IronPort-AV: E=Sophos;i="6.07,170,1708416000"; d="scan'208";a="17653424" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2024 07:39:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,170,1708416000"; d="scan'208";a="18087295" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orviesa008.jf.intel.com with ESMTP; 31 Mar 2024 07:39:29 -0700 Date: Sun, 31 Mar 2024 22:34:40 +0800 From: Xu Yilun To: Charles Perry Cc: mdf@kernel.org, avandiver@markem-imaje.com, bcody@markem-imaje.com, Wu Hao , Xu Yilun , Tom Rix , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek , linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 3/4] fpga: xilinx-selectmap: add new driver Message-ID: References: <20240321220447.3260065-1-charles.perry@savoirfairelinux.com> <20240321220447.3260065-4-charles.perry@savoirfairelinux.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240321220447.3260065-4-charles.perry@savoirfairelinux.com> > +static int xilinx_selectmap_write(struct xilinx_fpga_core *core, > + const char *buf, size_t count) > +{ > + struct xilinx_selectmap_conf *conf = to_xilinx_selectmap_conf(core); > + u32 i; comparing u32 with size_t is problematic. size_t i; I can fix it in place. Thanks, Yilun > + > + for (i = 0; i < count; ++i) > + writeb(buf[i], conf->base); > + > + return 0; > +}