Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3060869pxb; Tue, 19 Jan 2021 12:42:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcj/Vn3EQsla036s8Lg358jNLNN0HKXcfuFryhFvwG9BKyBgf3ee7xP2uKJ1mNf0Ep8usZ X-Received: by 2002:a17:906:2407:: with SMTP id z7mr4156604eja.219.1611088933288; Tue, 19 Jan 2021 12:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611088933; cv=none; d=google.com; s=arc-20160816; b=Cnwm7TtfU9ydQzBlO8dwdWQohTw8PZFAhphcomQWDOWilSd4QGsTRrHNcMGYZoYwFX SJm7o4YVsu7BCKwTm6XKUkixrtuyRE5YGp1rUYUcT1lSClJgezLGJ1ov6rDzxtbYvxHa 0juTut695vciPKUMScPnke/3zQ6tc94WgnNcIA0M1wp/wvhfgyw5sQaEBl1eZAOfVekw tkLgUoQsvGAYawxYQu3wLODMsluKV4yRPKA7tlhIVpHf8IAaUo4nEn7TzSXlPXNxR+1A CZr3u2ZTz/QWAOXb+FH9zWNGwIo8/FUUo3bQnMCEednNWfuVPI86wYJgx4GxAh+P5gvR vguw== 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; bh=HvOYoK4uzmZSuOqmhZZoHoj6auLaG+5Vb4jowljq6h0=; b=B0d9gkW9KtN4eN6w/lmXd10HJpnW9U9o9THWKj4f975YqNMCx5B+g/NQJd8wy4cS3X IoHg8k6Y2GoWgF94b6sHkE7Gb4zxGPQx3Iz+r90slB4mb3iPb5/tzMdnDUP0YljHRXNs lq1Fe09OS3N6v6HxEBVNf22g//gig3eNOpcK0vNEEy1ZY/T8Kwj7xZ9El1UEPJ5wbHeo w4AW1ZFClimlYjj8bUEGumpieJNexveMyuE6l8KT2uM3CiFrbcfen7BwxbyWCOgpUvV5 o8+akIBn7TZaS4Y3V5BPr7anujRt10DlHKsnhkQw77zQE6YabWb7QS3bgz/iUNLBKFAL qa4w== 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 h6si6327161ejy.98.2021.01.19.12.41.49; Tue, 19 Jan 2021 12:42:13 -0800 (PST) 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 S1727366AbhASUlK (ORCPT + 99 others); Tue, 19 Jan 2021 15:41:10 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:3935 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388994AbhASUkW (ORCPT ); Tue, 19 Jan 2021 15:40:22 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 12767240002; Tue, 19 Jan 2021 20:39:38 +0000 (UTC) Date: Tue, 19 Jan 2021 21:39:38 +0100 From: Alexandre Belloni To: Steen Hegelund Cc: Philipp Zabel , Andrew Lunn , Microchip Linux Driver Support , Gregory Clement , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 2/3] reset: mchp: sparx5: add switch reset driver Message-ID: <20210119203938.GQ3666@piout.net> References: <20210114162432.3039657-1-steen.hegelund@microchip.com> <20210114162432.3039657-3-steen.hegelund@microchip.com> <20210119203710.GP3666@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210119203710.GP3666@piout.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/01/2021 21:37:16+0100, Alexandre Belloni wrote: > On 14/01/2021 17:24:31+0100, Steen Hegelund wrote: > > +static int sparx5_switch_reset(struct reset_controller_dev *rcdev, > > + unsigned long id) > > +{ > > + struct mchp_reset_context *ctx = > > + container_of(rcdev, struct mchp_reset_context, rcdev); > > + u32 val; > > + > > I would ensure the reset only happens once here else I'm not sure how > you could do it from the individual drivers. > Ok, the core is taking care of that, nice. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com