Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp836525rdb; Sat, 7 Oct 2023 00:58:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhkvOS4+ybHi+7gyNWEo0r5gcYYH+Bm7XnlJ4CjEI1dB/GyXF8Y7b4S6iLQMlRVfMONAR8 X-Received: by 2002:a17:902:c112:b0:1c3:1f0c:fb82 with SMTP id 18-20020a170902c11200b001c31f0cfb82mr9256776pli.41.1696665485323; Sat, 07 Oct 2023 00:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696665485; cv=none; d=google.com; s=arc-20160816; b=FYGma6mGLjeDbk2wLiN3ZeytaYQY5nRErAXPderOMAFpWzVqGpTlpaRJvxnWkf/Kct wPeja/AMYN7HbE7hsyzBIYuCX/B52Ox0h93YXH0ZOK7C36wlNWTxFPQ+gW9lxFQ+38Vn CLf1bAMxmAZAQOe700NQZTecxIyLia+W8HD0g/HQhquniLJE8VNu4albx8s5ipAFT8vS NUMW4Tl0VDosp8Dcag+Qny2G6DUGhmcV+JR1RnBqAfEUFJ/ucyw0iumKS2bVrBTEs8OL JPxz47PRbwMf/FR9vs2vjLtFbK6hBkXsc497lRV2TZV0wTaD/qTXVOheslRut8JxhWEc PxKw== 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=ipzxtP+/RFNBKlqi883Q5sB73hSikcaIdzukHImzjsQ=; fh=SSrIty8EiRFi/DZsy5nydz9NyRWvGtFUnvIqpC6PPL4=; b=gfbSrGnS9/XGQ0HS5kN+maP0TGIpATJaRYBtdvSDjoQjlay9J+OCXxXg6y54XEmb3H FVEFVTo3r/n25g1GYDWO1taaLkI/S7kUp9b2TDrQ3czGfrq74PuFgsfgVCb7+dpcjdJ7 tuJGwckBxSuiuJE66oZxt4ym6MvcGr/87JKN3pKRZKoQGMi1rN9E7IBwrX+/5/E7XkIE 0nsyn7jrHQ/RtSoqlfSukI2gWHV3qZKWw5xzqJt/o41faa8xKMwDreYwfeP/s9ePiHrL OEMFprpYR4wRzFsXq6sqCphB5XRvS99QlucHkZhkVS45+jzt/kU+nMkP8HnFcPIUZp1g b33Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N6zyf85o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id li11-20020a170903294b00b001bc553d16e0si4970194plb.507.2023.10.07.00.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N6zyf85o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 223E2807C74D; Sat, 7 Oct 2023 00:56:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343758AbjJGH4N (ORCPT + 99 others); Sat, 7 Oct 2023 03:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343774AbjJGH4J (ORCPT ); Sat, 7 Oct 2023 03:56:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92086D8; Sat, 7 Oct 2023 00:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696665368; x=1728201368; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hGqWmkWoM6afuulAuBmtxIaiirPB7kQUbXbidMCkQT0=; b=N6zyf85ovBwIPMiS1RbqYgp6vK1surMxKInLMqrTnhA10Q6QbT6MDVZh +qH38uGpPzjaJ9Kc4w021NvX3V0FndmIWj6Ee68/fTUFj340TwugsUKnG vx8E9Uhg5ISK5lTyi7hAa13MBOs7yqRxSeg8kgYSop2q4+fWKo7SxTPbc 6uJ5O2WJ5GPCqImiVToV3rnku1MTT7XRGsaXvhBlgM9maQaIeXhSRaFJ3 1j36TQvKU8XYmyBtqaDx6SEkJbr73Gxze/INphP+pSAfQD3lgjWFCBRx+ mwYkun3B3oLZH5i9VpDN2wUJF/1PF3MF1Ln1Pyur+bVBsb3oNXVNenhcs Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10855"; a="374239653" X-IronPort-AV: E=Sophos;i="6.03,205,1694761200"; d="scan'208";a="374239653" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2023 00:56:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10855"; a="926217051" X-IronPort-AV: E=Sophos;i="6.03,205,1694761200"; d="scan'208";a="926217051" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga005.jf.intel.com with ESMTP; 07 Oct 2023 00:56:06 -0700 Date: Sat, 7 Oct 2023 15:55:16 +0800 From: Xu Yilun To: Rob Herring Cc: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fpga: altera-ps-spi: Use spi_get_device_match_data() Message-ID: References: <20231006224624.444857-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:56:20 -0700 (PDT) On Sat, Oct 07, 2023 at 03:43:41PM +0800, Xu Yilun wrote: > On Fri, Oct 06, 2023 at 05:46:24PM -0500, Rob Herring wrote: > > Use preferred spi_get_device_match_data() instead of of_match_device() and > > spi_get_device_id() to get the driver match data. With this, adjust the > > includes to explicitly include the correct headers. > > > > Signed-off-by: Rob Herring > > Acked-by: Xu Yilun > > Applied. > > > > > static const struct spi_device_id altera_ps_spi_ids[] = { > > - { "cyclone-ps-spi", CYCLONE5 }, > > - { "fpga-passive-serial", CYCLONE5 }, > > - { "fpga-arria10-passive-serial", ARRIA10 }, > > + { "cyclone-ps-spi", (uintptr_t)&c5_data }, > > + { "fpga-passive-serial", (uintptr_t)&c5_data }, > > + { "fpga-arria10-passive-serial", (uintptr_t)&a10_data }, Sorry, one more. Should cast to kernel_ulong_t? Thanks, Yilun > > {} > > }; > > MODULE_DEVICE_TABLE(spi, altera_ps_spi_ids); > > -- > > 2.40.1 > >