Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp284994lqt; Thu, 6 Jun 2024 03:40:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrPYkU3Y20LgnJ8iJD/BplMWr+KV1k7hzOJ2n7J2ihRPmviM+WjaaN0F2qh9XIIJ2saBmq/3+Btyet0l7eWii3Jh+IjOVWDuKjXfiS0w== X-Google-Smtp-Source: AGHT+IH+BqxUkt6uiL36O332mxHGk5iYqQnhccxfUMHHXV9/5NPyu9IkP6fo0F4vRVcLtBV8FSkZ X-Received: by 2002:a05:6a21:3996:b0:1a7:a72c:6f4 with SMTP id adf61e73a8af0-1b2b71224c4mr6266229637.41.1717670444753; Thu, 06 Jun 2024 03:40:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717670444; cv=pass; d=google.com; s=arc-20160816; b=NvmbbyaYDkdfzoQCc308bRT0nn+tReS2KfWRtoQ2edWKdsYfPqq2dd7ikVB31vn6IC NfG7fmRMBmuhmotDrXrCxWBHj+fiueau6QampQ/2aJ6TifTUNLofAgYO81t6stsmijpC UExXwCvqjCFSeBCzdQBSpca5/5z8gfyAUy3eD7VmAshQgCzZaBsM05AfuO+0wwayw0YV 8aPW2u5fvMh0M3EBz3gbpR6RosKzpyuuJElaLKW0DEG6Ztzj2KrsG07u4otXLr/B3ezv B3K6s0f+BJb/xUVxcsEYEYnMLj4prLRzdyzDtVD0gLZntz7tdurC+o3zJ4XH96yUoDjk OJOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=THykdbgFjTOi08AMjXYKGq55B3BCRHgQPMDRbnhqys4=; fh=yIAAXmdmvMqtFca5pT5r2yeno9ZzqiQk06HFg5w4J00=; b=PBPvn/ZWcK1hjRkzpv5LzAnTn4/+A9T5u7+JjR8nWXq0SM1eR2hMx7S87W1sHcV3+i 3ifRNyiCBfVkmaLcHIjx7kr1CIm08JLVkPXW5mb/EEoXukcgYnUqXjHVF76qncOpSH6k lKpx5UL1Xlkh5nPiKnYl7/CM/TRNEr8eFeTUI9MXBu7+Z1gXGnx8RAE6tfOfIxL4q5T5 bPPoullazx8j/G/oTO/YOXl0Etb9keQC3+91zsUbjqvYQkb2yZKtOX8b/7PmqKHymE/h SgUAmW2cbjhqdIy286s1Nw2itCghZ/HBDzcvv/JlxFKnSXKM4ZDIBe0phlBkPwBxEe+5 9scQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=c64syZkQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd3b18c4si901883b3a.118.2024.06.06.03.40.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:40:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=c64syZkQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 099E5B23C15 for ; Thu, 6 Jun 2024 10:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8690B192B83; Thu, 6 Jun 2024 10:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c64syZkQ" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.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 2E2911922C3; Thu, 6 Jun 2024 10:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717668899; cv=none; b=jW9XC1R2j2Cs0sO4a+91i4jXECIOBZBD9AkGae4ybMtzKE7d/e5UkEcFZHaYq8pNkmb6hCNng5w61bspM3rgY1h5lJGhqAYqgqezmVvyIzZ7D4PP8+MIWXI5sFvrlyEgTNldUKl5lPctDVAkjQtSZFxdmtSdaUX8Ok0Zjf60I1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717668899; c=relaxed/simple; bh=sRLl/T7sAUWjcjU9UYt7gfzdlUwbj7+4GSoQNc/K4UE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qiEUsztrrqLPWPhK9Le1k0kSv08PES07KltpFWWpgoyoTfn+8VPwdjJS+eWwHSseSDNlUvSl7PR71cm1FNgWP5Oqcn8Mn0u5h+jfpH06rmDPx/pMqCaDgLNtAfhysiZR/p2UgP0cP7DUIB0jLb02RbgM6jE1gRM/VLk0aAiazwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=c64syZkQ; arc=none smtp.client-ip=209.85.167.42 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-lf1-f42.google.com with SMTP id 2adb3069b0e04-52b9af7a01bso947982e87.0; Thu, 06 Jun 2024 03:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717668896; x=1718273696; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=THykdbgFjTOi08AMjXYKGq55B3BCRHgQPMDRbnhqys4=; b=c64syZkQBwwArE2KmII1HykIDW4WcTg4jFS63SR3MbCOs3dywlmrhYYJB3Cyza+o+r C9z8gqhjlRkNtv8OZYkUoyBcuAbkyeknDa4jOWIFwtkfMYVaIR2Met71fJoceVcAmNRs IWdBkOY659ElRzzNz+6S4JLB+5H2Rj8p4va1eAyx7kuIFtbi5WQ0aJ9OwrytzaXSEsXk CnkgBPMmnJxRXH8/UgPbUFR7Y0rnr3CxX28UefoW8Nshaz7ibcJS52OSXDWw1dw5y10z f593eXjNUmpVa/90Uzn3sXWWXWfmta2l1AZQgXCIxzj4AXgQP2WdJhygzkfsFTtxQExx eGsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717668896; x=1718273696; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=THykdbgFjTOi08AMjXYKGq55B3BCRHgQPMDRbnhqys4=; b=vwGuSLPxPJCSZfHG8qsi1agBXQqFIlCJbk4saDbfYpiY8BL2farVgpIPwjcdpZyqjY 6acyNfoatB5Ke0fbfACUhBsrEdJm9Jhn4X8yoPPVxEeoyUz24fUAWB0tQrpI24TQVEAy UydQwcG1DiiceTqbvojqurhB1NL2FmWCTus73Wr8AT/cnfhEkkCn9MvAV+iMNxE17RfV IHf3iNLRYBFQlSf3hFw7agrkTXq8WY5U2zuO8RILmUy88L6NLoQsTNDAQfidPD/Ub21L Oa8fXsf+pUKFxfU8dSSaetSj1J7c4bdNh138jGWMEiQjxJOAekd2a786lTVD4dSEUjgq HW+g== X-Forwarded-Encrypted: i=1; AJvYcCV7Y38Z1bRaPcnQ+HvENUYuvXnSG80FYfY8qhVd5PLhfZAICLzayWBzghdrLg85/xHA3ijD84ddE3IOdzktuCynvNoH9pakszRM3tk+WF9uqp9sFt7ibCmL8uRq8IkRzw2oaMuORmStwtVIWafPE+tT5onpElWpj/kX1qbebDoSiA== X-Gm-Message-State: AOJu0YzCCCB1M21Xgamvgd9JXcCnyaYmFucfM5OE7kzwinTRczMkuiID o/E0fPnlEoT2g5UgATXXdgJHwQm/PlOTtZn3RzQNcEiIRtzGtQ4t X-Received: by 2002:ac2:4282:0:b0:523:8c7a:5f6 with SMTP id 2adb3069b0e04-52bab4f5d39mr2790961e87.51.1717668896147; Thu, 06 Jun 2024 03:14:56 -0700 (PDT) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb43327f1sm150215e87.226.2024.06.06.03.14.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:14:55 -0700 (PDT) Date: Thu, 6 Jun 2024 13:14:53 +0300 From: Serge Semin To: Simon Horman Cc: Andrew Lunn , Heiner Kallweit , Russell King , Alexandre Torgue , Jose Abreu , Jose Abreu , Vladimir Oltean , Florian Fainelli , Maxime Chevallier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sagar Cheluvegowda , Abhishek Chauhan , Andrew Halaney , Jiawen Wu , Mengyuan Lou , Tomer Maimon , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 07/10] net: pcs: xpcs: Add Synopsys DW xPCS platform device driver Message-ID: References: <20240602143636.5839-1-fancer.lancer@gmail.com> <20240602143636.5839-8-fancer.lancer@gmail.com> <20240605174817.GQ791188@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240605174817.GQ791188@kernel.org> Hi Simon On Wed, Jun 05, 2024 at 06:48:17PM +0100, Simon Horman wrote: > On Sun, Jun 02, 2024 at 05:36:21PM +0300, Serge Semin wrote: > > ... > > > diff --git a/drivers/net/pcs/pcs-xpcs-plat.c b/drivers/net/pcs/pcs-xpcs-plat.c > > ... > > > +const struct dev_pm_ops xpcs_plat_pm_ops = { > > + SET_RUNTIME_PM_OPS(xpcs_plat_pm_runtime_suspend, > > + xpcs_plat_pm_runtime_resume, > > + NULL) > > +}; > > nit: xpcs_plat_pm_ops only seems to be used in this file. > If so it should probably be static. > > Flagged by Sparse. Right. I'll convert it to being static. Thanks. -Serge(y) > > ... > > > +static struct platform_driver xpcs_plat_driver = { > > + .probe = xpcs_plat_probe, > > + .driver = { > > + .name = "dwxpcs", > > + .pm = &xpcs_plat_pm_ops, > > + .of_match_table = xpcs_of_ids, > > + }, > > +}; > > +module_platform_driver(xpcs_plat_driver); > > ...