From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4EBCECAAD8 for ; Thu, 1 Sep 2022 08:03:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8EDc4WE5bjEu+5endZcqTEa2ivMlNIBgHNxTG5k1gsQ=; b=1J1vF7q8KvA/IU Kwcb0w9IKVZXHu5Sf0+JxKwmWLEt+e94B0QdthWWN+jNK6uooaxxcP4f90BiQEaEraijiGOgLRZEd a34s9olhpKrmle4ltvPGVplAxWNXgOfR1fCh1W1GSIHc7Zra8kA+BbH9JEgZZeEvTl+zCcjIY7v+F AMV/ekrZzYJJY1aNyF9CYs6Bh7v1xpXt/h46qAr8xUvoVNxGeAxLYXfmUTh9qiiuchxO7rHbU+RDm vfKugm2zuxEjbgkYBuT2bZgmdPXXZTuznsPbZq7GCpY70OFOv2W1C6ibK+mVcJANed93VnGKUOX/D CQqW97EA0ZmhTVmHeqkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTf9G-00ASnt-B4; Thu, 01 Sep 2022 08:02:02 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTf9D-00ASnB-Hi for linux-arm-kernel@lists.infradead.org; Thu, 01 Sep 2022 08:02:00 +0000 Received: by mail-lf1-x12c.google.com with SMTP id z25so23274420lfr.2 for ; Thu, 01 Sep 2022 01:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=JE5EdXExU9KB2vgJJhQ6V2iSs8d1y3Mi7fJ+Qjt9Auc=; b=aB2V/BErUKMHkn2ek+qBlKawiRb+bkfxMbWiz40Nt14zziORYJF95FPu6AP71lX8e9 Dq+xkIoWRMeRwuCQ8sRA0XAnX/tNVCIEHAHmbBph4/o0bT5/AIy1KXewrl85KZf+i1KH 2AC7ylvXvi3i611Q/YagrkP2nGljcjbRuIgE8RboPsabxMUUg+xBA/IWYfNruvRijGIa H96paO6sca481TlKtsgLNNR4bk0LF5MYZJPtztf/D9KOfX0wy/T1JTSRf7GFSntFIRrj xUmfOFScRCWDls5Df7UlbH96vkkEkJxequIlOIqRi+256pFmoDr7stoBXjvLiBt5Y08P Go4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=JE5EdXExU9KB2vgJJhQ6V2iSs8d1y3Mi7fJ+Qjt9Auc=; b=BepTsWWNhMxd2paHB4/UnN9VK7XBlHDmqJrfCvpwvIoK1TrPawZVRw+PjlD8a75cmW 2jCILaXSyCFhKNJzK08BG1secB9obLwOt0ffZVdPlurP84dNAwPgKr7zL0N70Y8JKGU2 Mi2R+BgrfrfCUDx1Tem8v9/lcjaHKArvoPhf3jpasn0JELjSlUW4GroDrrSF0L7tEAws WE9tKVRSBKpdITiK8QQ99JH5/tHLyufaipM4wHA8YnyfGCapUh7nOFb5TzOR8yToBho9 o3rCOVzwkLpkLo4XWbtVqNceY5GinU+y8RDS/r8NqL+bTLm0qiLcceKDayuRFkCv+9Ac gMMA== X-Gm-Message-State: ACgBeo1Q8jLNHiFWD42X2fEvxtwFKuwTna+QgltI2CsYOArznanAtlAP ZSjDJ0NWg5/iOWpkdeKcKk1QIw== X-Google-Smtp-Source: AA6agR6Gt8vZPLOFDKLLdZvIJqwp7OXLZ31OJ5pouoSLNqUfk7zi/LbFjh2q00ET/ZGzDHMbeKn86Q== X-Received: by 2002:a05:6512:3dac:b0:494:903a:1f9b with SMTP id k44-20020a0565123dac00b00494903a1f9bmr1877630lfv.498.1662019317892; Thu, 01 Sep 2022 01:01:57 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id l19-20020a2e9093000000b0025d5eb5dde7sm2344768ljg.104.2022.09.01.01.01.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Sep 2022 01:01:57 -0700 (PDT) Message-ID: <9863bdfc-1de2-62fb-19da-44a68bea3607@linaro.org> Date: Thu, 1 Sep 2022 11:01:56 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 7/7] spi: spi-zynqmp-gqspi: Add tap delay support for GQSPI controller on Versal platform Content-Language: en-US To: Amit Kumar Mahapatra , broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: git@amd.com, michal.simek@amd.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, akumarma@amd.com, Naga Sureshkumar Relli References: <20220901054731.7705-1-amit.kumar-mahapatra@xilinx.com> <20220901054731.7705-8-amit.kumar-mahapatra@xilinx.com> From: Krzysztof Kozlowski In-Reply-To: <20220901054731.7705-8-amit.kumar-mahapatra@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220901_010159_613397_CB9AE20B X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 01/09/2022 08:47, Amit Kumar Mahapatra wrote: > @@ -1165,6 +1214,7 @@ static int zynqmp_qspi_probe(struct platform_device *pdev) > struct spi_controller *ctlr; > struct zynqmp_qspi *xqspi; > struct device *dev = &pdev->dev; > + const struct of_device_id *match; > struct device_node *np = dev->of_node; > > ctlr = spi_alloc_master(&pdev->dev, sizeof(*xqspi)); > @@ -1176,6 +1226,13 @@ static int zynqmp_qspi_probe(struct platform_device *pdev) > xqspi->ctlr = ctlr; > platform_set_drvdata(pdev, xqspi); > > + match = of_match_node(zynqmp_qspi_of_match, pdev->dev.of_node); > + if (match) { > + const struct qspi_platform_data *p_data = match->data; There is a helper for that. Use it. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel