Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp63934rdb; Mon, 15 Jan 2024 12:14:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGugpbGYsHGYmU1T98Wyz+Sh9owkr5SH4+aHVyh0K52W9KnI+ftv7YnNrrm3y7wmgFXcLzL X-Received: by 2002:a05:6214:1d27:b0:680:c741:2650 with SMTP id f7-20020a0562141d2700b00680c7412650mr8150802qvd.15.1705349656976; Mon, 15 Jan 2024 12:14:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705349656; cv=none; d=google.com; s=arc-20160816; b=fv7BBHKA5oIKhDilq0ExIIMkztSz2ZqbMcr4kGWr4JrbK3pJvuD3JjcpYu9TmYXDE6 ALc5a+rIpO7CnqCRuebdChnR+aG5Ectc5x3H8pgc2iAdrGelvjLWwmjlh1SLNZCzwnAr 8/Fdx1iF+rPQ52mLFYD9f2GvMsj7Qxv2HtVQKpr+pqlD3sBA3YwGDM+qoC3FCq80hePI w78P5TtNA6fiEHhbBDuYS4kKFCCZE0vqPBB4x2CvsAL0j0DLKllwnIzR0raQyBCnpQUX m5rGXmgAxJQ2AGdOeKIjBu4/xTCMjDVZ4fZA1KihAp8NTZ4eRJmtMAvKxz4VXdlP89Q0 gBsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=uzwptSzRuVMAhJ0tuUmms2JAaokAMbwnmo5GAtEP4b8=; fh=SwzX0tglQFYcPD71mvgbAwSYlQ5cQ3p+hpmdhIQdgbM=; b=pkrJxR41rdW8OBfz8qc7ZpSn0a+4rhTR5gCNxh96NamyHaNu5zUlLuNrgEoEHQL3Yo amhry0IoIXRXwH9f5BvJGz8SbZJ3dEwL8c46ENQ3rxyW0RFhiVSlH8DrIyZ5qfoNQe5B d1BChJOApRUeaeK3mXp2fAKLNVDOM3xqJjjK+otoDnta7lL9N6VoTmQe1ByV7gC/oz1Z ylWqWabEZR6hSp8sKlG/we0liHTO2ZoykvXt+gOrSYYmpLxh+09NzEul0DjOrhxuhlxG d9geEENk7kCzOp2FIKtrZ4gcWU7TJvPA0SDtr6fB0DK5UKJBd+YbH9RqrGHr3v8Nb5Jh RUkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=eSNJhFI2; spf=pass (google.com: domain of linux-kernel+bounces-26470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c10-20020a0ca9ca000000b0067fb9bb71bcsi8463451qvb.529.2024.01.15.12.14.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 12:14:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=eSNJhFI2; spf=pass (google.com: domain of linux-kernel+bounces-26470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B78D21C221FC for ; Mon, 15 Jan 2024 20:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B1CB199AA; Mon, 15 Jan 2024 20:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eSNJhFI2" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 429D018EB2; Mon, 15 Jan 2024 20:14:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a28b2e1a13fso955521366b.3; Mon, 15 Jan 2024 12:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705349642; x=1705954442; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=w5Ok4CQAPkpysNJkJjEPQdxy0iDAuR07BorZIgMZAwk=; b=eSNJhFI2HC3yags6sB4AhEGf5FSISrPystjo2EVRZjn+vsZq98eD/Nt2g67m5JQIwe GEOeJCgTLZhQtczML86nPfgnf5fmHR9ly+l79DM7eS+dG6hA766mAiN/L59p1jY9vD2p Uu6/NlFRZaNlg/ANmVjU1zC86MJ7wvny7uVXQB2SJIksNKUBpPEOicgDVzf4N4gsdXD1 dCmJpo2ekYok5tmyNJS5HrUWqQwcNy8ojcG5Q2YrsZblEXekGNhIPU7o1Esbtvd9AQaY iDjaMOQQnxyvVrgqXFQtCcIaUSsuZ7tYWngNuDXkyFe/5AydaVwOE281GRDTt1uiSAHU TRDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705349642; x=1705954442; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w5Ok4CQAPkpysNJkJjEPQdxy0iDAuR07BorZIgMZAwk=; b=WKwa9KvlewsK4SgdcEgwyw6j9aUvZZYVx93UyrUmi1kh1dWjziI50XUJ2g8HnUAauW 2Crp1bH8MDeJdgNmV4IHKg3ZQ1Lpj7QY3yRq3+ZN2edpC/xOAsgXshhigFUztE7E23nQ wIwX3E6ghOwYeAa+E2pOR4dZv1D8NO6gtUr1XXGfHU0x8Oo61qrLJjXwcRPpsT+54JTN Rma9NVG03Ku1PFI5BUAjkGE25YxV0fcpO/2ROiSKdrBclxvsFYXPBvHcyeqSEKFpohGX vtpr+GukD7lZ0HVWHITZ3b1taj6GK64ygjdluZS6iuCobjjonxBqSSEuJKbrpfVBJLOg 9UYw== X-Gm-Message-State: AOJu0YyUs54ibGrX9OXvSy855xVV8MhKrgmCGxcMC0PNrvYOaMgutwLt WGlNG/XpTJ57I79Rx8Nlpd1A+K/Akpm/HaXSY6I= X-Received: by 2002:a17:906:39c6:b0:a27:bac8:1000 with SMTP id i6-20020a17090639c600b00a27bac81000mr2579905eje.96.1705349642324; Mon, 15 Jan 2024 12:14:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240102-j7200-pcie-s2r-v1-0-84e55da52400@bootlin.com> <20240102-j7200-pcie-s2r-v1-14-84e55da52400@bootlin.com> In-Reply-To: <20240102-j7200-pcie-s2r-v1-14-84e55da52400@bootlin.com> From: Andy Shevchenko Date: Mon, 15 Jan 2024 22:13:25 +0200 Message-ID: Subject: Re: [PATCH 14/14] PCI: j721e: add suspend and resume support To: Thomas Richard Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Tony Lindgren , Haojian Zhuang , Vignesh R , Aaro Koskinen , Janusz Krzysztofik , Andi Shyti , Peter Rosin , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , Tom Joseph , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, thomas.petazzoni@bootlin.com, u-kumar1@ti.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2024 at 6:16=E2=80=AFPM Thomas Richard wrote: > > From: Th=C3=A9o Lebrun > > Add suspend and resume support for rc mode. Same comments as for earlier patches. Since it's wide, please, check the whole series for the same issues and address them. .. > + if (pcie->reset_gpio) Dup, why? > + gpiod_set_value_cansleep(pcie->reset_gpio, 0); .. > + if (pcie->reset_gpio) { > + usleep_range(100, 200); fsleep() ? Btw, why is it needed here, perhaps a comment? > + gpiod_set_value_cansleep(pcie->reset_gpio, 1); > + } .. > + ret =3D cdns_pcie_host_setup(rc, false); > + if (ret < 0) { > + clk_disable_unprepare(pcie->refclk); > + return -ENODEV; Why is the error code being shadowed? > + } .. > +#define cdns_pcie_to_rc(p) container_of(p, struct cdns_pcie_rc, pcie) Is container_of.h included in this file? .. > @@ -381,7 +383,6 @@ struct cdns_pcie_ep { > unsigned int quirk_disable_flr:1; > }; > > - > /* Register access */ > static inline void cdns_pcie_writel(struct cdns_pcie *pcie, u32 reg, u32= value) > { Stray change. --=20 With Best Regards, Andy Shevchenko