From patchwork Mon May 17 14:03:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12262087 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1151C433B4 for ; Mon, 17 May 2021 14:10:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB2106143B for ; Mon, 17 May 2021 14:10:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB2106143B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ci33yyHcNawhICyqXKx63UrM3n8WHToFZVtaWf03e9Q=; b=Hy1EQWuGH8djwfMia5LqmaQGi XqbPDYVysfmYe/FoK8cwGrYYqXmmYSnedY9xQbDj5dd2evla8mkeVO6Vx5WYNmFzi80zRx1whQcEQ JiKsFOVf+GdCRoclQxjzgk1eKwGSBvOk/irQkiKXUMvW7J9+rHjjcdZ8lYzKJEymPaRAi6tX0Pet4 VTcN/dvvr3HMNq73+R9jTy/hRX0bXZzEwR56qn+UFlHVTjJ8o0LCkdiquTB2cqUrL6WWgFPnlNCJY Akt9kPZ/ELwHsnwGjDF4tdlL4J4Pg1Ff3He6uadY0fe3LfTNFbZwNzRBPhNWr1SRwVDFkyevSfrK9 xUgosnBOg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lidt6-00FAt5-SX; Mon, 17 May 2021 14:06:29 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lidqY-00FASU-Tl for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 14:04:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=f7OZQi390tqNqPZ9qJK5Fp1RLu04pmMyhu6v4UZJzmc=; b=xepgRs4AgrWAoRx0v2PN8KZxHP igmal/NL6hNhdySRIyYSzAw3HGkqmLpQlJE8YENDE4iiUBHPLbQ44ZW+Y+kEbd+QxCsE+AS4kBNA4 Q7otTZAqIJEETGiOG24lK7fIpd7hK+AISyf3iuqtnxTE0+GAwGNTld5vS/Oa6ERylipxt+0z8jrs+ sQ4y/pAOAqbfQke+07ETVH2T2I4tubz/iBie1k2MtmKHSUBEP2b88CcIJkpfr/pM5RDMhZ6lVPVmQ yJHR6Ea8ez0e5L2C7kw8ck3dsE+9k7MoJxXQdvEX/NWWdIHKcLF52ux7ZUhgD8oAeVPdOabzKXBJK 5SjDWbgw==; Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lidqO-00Dp3z-Cx for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 14:03:49 +0000 IronPort-SDR: 2iOILfhk0ckSLMJnXWi10RhPGKydKkpRWmUfsRwOIs2Iwcg8YBpDZF2c3y8FYbyxvC6HRKbPzI tAdZ4UYIIDxA== X-IronPort-AV: E=McAfee;i="6200,9189,9986"; a="221509224" X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="221509224" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 07:03:36 -0700 IronPort-SDR: M/lgSDZBPlt9P7KzUBCLBSXDjxWPHmW/lCkEkWNS5qxpilAxPDDQCO9mu0yU059ZRaBq5VODyB FBYFQRp+yehw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="394458581" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 17 May 2021 07:03:33 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 0C4D712F; Mon, 17 May 2021 17:03:55 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH v1 1/9] spi: pxa2xx: Propagate firmware node to the child SPI controller device Date: Mon, 17 May 2021 17:03:43 +0300 Message-Id: <20210517140351.901-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210517140351.901-1-andriy.shevchenko@linux.intel.com> References: <20210517140351.901-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210517_070340_470124_0955F6E9 X-CRM114-Status: GOOD ( 13.70 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org SPI core may utilize properties and resources provided by the parent device. Propagate firmware node to the child SPI controller device for that. Signed-off-by: Andy Shevchenko --- drivers/spi/spi-pxa2xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 5985b39e2dd6..38eef9033468 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1718,7 +1718,9 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) drv_data->controller_info = platform_info; drv_data->ssp = ssp; - controller->dev.of_node = pdev->dev.of_node; + controller->dev.of_node = dev->of_node; + controller->dev.fwnode = dev->fwnode; + /* the spi->mode bits understood by this driver: */ controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;