Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp739497ybm; Fri, 29 May 2020 11:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgLu8X8IImbsK8IH37ULCJG8lVg2yE6lgT3isdgfVj3kkfL88MDbLhby4KU+JiZ06FqOHZ X-Received: by 2002:a50:eb0c:: with SMTP id y12mr9323143edp.165.1590775239619; Fri, 29 May 2020 11:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590775239; cv=none; d=google.com; s=arc-20160816; b=iPY6gHG84QakGLGAESGhlmerJEClAzPGhuyrcKeHWD2BXpdW1HwDOVZ2e0fQYSObMq IfK3/K8vEV45+JbZmmNftLUOjlYcy/+kh5iI2qTb8lIRRl0o5gfLWtOeowGFR15sRql7 9KdNsQB/XHgy5IJqD2kX9X81RPRAP5c0awEv7RPZG8hZnN11OedH6PHKYCxVWt9QbrSe kk2RcFs1gklhzAqrXoW6qKVwZTgdib6Ku/73As3Qzy+JYM0jh92Do4cEg7sjVZWrZMGY n7KVZETafOw+JL0SREc3r9bc7RnrQHUuFba1IucnKPRMGRttyYm8HtwJarJNz1hv5x40 ZyKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jBLz6Rf/CVAknyZwjJaiJFW5Lm200kQWjUJA7G47oJA=; b=SzjpSWGWaz2dicvyHLzuQ/q/TbKHPHPEbYB7TkPaGSEgdnf0DgPlYMt+rz6U6fVf2g JVsDnQP1MLEyUj2vM4zqVB/Ua8NwGuLkRkctYUopsgSPgVXiprUbL2nJ2WjHxNbet3so 8HjVwxCvooYoeBxu1VIEa2dxj2m/ONllADAj4x0TGwVmet8e6AkCjfkzJJPrUw70/kQ3 fEoHjA5v5se93cL2N9pgGgXuEmClrTM/ftnjgzxBTCjLvBE3FqMwPXKdnudFje5mafcx N55dkedkcZbT5ME+uNON/EgJ4FnlwypYQTcPW2HIqYjQZ1PB5onW+XgEvNfvjKIRsgQ3 TqnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu28si5585993edb.189.2020.05.29.11.00.16; Fri, 29 May 2020 11:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728000AbgE2R6d (ORCPT + 99 others); Fri, 29 May 2020 13:58:33 -0400 Received: from bmailout1.hostsharing.net ([83.223.95.100]:39279 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbgE2R6d (ORCPT ); Fri, 29 May 2020 13:58:33 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 6BDB030004817; Fri, 29 May 2020 19:58:31 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4431510D0CE; Fri, 29 May 2020 19:58:31 +0200 (CEST) Date: Fri, 29 May 2020 19:58:31 +0200 From: Lukas Wunner To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Mark Brown , Ray Jui , Scott Branden , "maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE..." , Nicolas Saenz Julienne , "open list:SPI SUBSYSTEM" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" Subject: Re: [PATCH] spi: bcm2835: Implement shutdown callback Message-ID: <20200529175831.p4dphb5luymgapzx@wunner.de> References: <20200528190605.24850-1-f.fainelli@gmail.com> <20200529174719.5tvchnoov747fm2x@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 10:48:11AM -0700, Florian Fainelli wrote: > On 5/29/20 10:47 AM, Lukas Wunner wrote: > > On Thu, May 28, 2020 at 12:06:05PM -0700, Florian Fainelli wrote: > >> Make sure we clear the FIFOs, stop the block, disable the clock and > >> release the DMA channel. > > > > To what end? Why is this change necessary? Sorry but this seems like > > an awfully terse commit message. > > To ensure clocks are disabled and to save power in low power modes used > on 7211 for instance. Thanks for the explanation, that's an important tidbit. I wasn't even aware that this SPI controller is used on SoCs beyond the Raspberry Pi ones. Does the BCM7211 use shared interrupts for this controller? Does it have DMA DREQ attached?