Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1715157rwe; Fri, 2 Sep 2022 02:32:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4yknpZrvk8fLqU2llKT4pR+efviv4qQ5oe60UIbbhHzjmHt99IeDhCxxdsaGUytW9KF+wA X-Received: by 2002:a17:902:db12:b0:172:9e51:64 with SMTP id m18-20020a170902db1200b001729e510064mr34731565plx.140.1662111135151; Fri, 02 Sep 2022 02:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662111135; cv=none; d=google.com; s=arc-20160816; b=QKwJssRzuY6fKoU4HXJVuetj3eejVtgntHrRott2ReHDasQjkRfDIy/tp3CbBm1kXT YEZGFdoPXETp3d1SaVutThx9FNgGJte4IqoO4b00mNgrP3G3K/4RTZrze8NOC4W4V+T6 /gegIPS1McENTIpcFfKoOd6CKqGzing0BYccp6tpjZt9FHM7qjhBme0LsETRvibKZUzM eGA/LYDr3MVDHMXRzYN7Ja0jTdxm71o109LCA/rDeppogEAyWNj5oHerSDQoh9t+vz4w 4UTpsLhKazrnsGmfHHaD/XDs5JgqfM4Ubq0Z2OCWUFc2WoGUe0Agjopv8obLioRjw1DL cW6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=L9O5decV2/N6JOI8M13p/L7aDc3oKkUKc7b1+iVr6Ns=; b=ZCtCI6TiHYLagAGJSUSY1uFreRvdBbhUtjND+tMFbyIZdg+/wRWORONbwiWEalLGxr SlzgDYvobmiDCCuk3UNENREeCizfcubHbkvaFD9pr/Qw/QP2ZJGkdQMbZex+1qQ9fu/1 QppIyGS6E8trw/xNzEm6hOn6V9zoV53ui9ujVqbbrh2wVgsHPbEDAiMUZkU+jbQy6Uu8 WBQYtFFVaYNtuPOhV+xX1tgceXPqAWnUhKFB619SjoTDhly1MtXAkBpioLy1y/L9TYyX kOkZJ6ojJmE14Vz3dWaQTO5Zpu0kucjGKUCgD/ckguvVnPv77lwZO0f1Ch4hIo8CcRk7 sS3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n8pH9KVW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu17-20020a17090b1b1100b001fdfa9e8c8asi1914686pjb.169.2022.09.02.02.32.03; Fri, 02 Sep 2022 02:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n8pH9KVW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbiIBJWe (ORCPT + 99 others); Fri, 2 Sep 2022 05:22:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235377AbiIBJWb (ORCPT ); Fri, 2 Sep 2022 05:22:31 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A799AB432 for ; Fri, 2 Sep 2022 02:22:30 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id w18so1242612qki.8 for ; Fri, 02 Sep 2022 02:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=L9O5decV2/N6JOI8M13p/L7aDc3oKkUKc7b1+iVr6Ns=; b=n8pH9KVWUwdC05ORursrzQoLTB97iTUEuehPv0ggTG2QfBGg4nhiwfUPI/g+QGH3zT r9xBeHoditdJ7HHhnwz0AeDSPO8cfpprt8M7agSmx3x6JQS5ZWR1kvT3LsYcbVnvpvwm omAtNUkcO62GYE8XSPDGGD5cVtwdCjlLJ2fJD01v4N1jRJZv/Fxvo2StNLMikWN/6ods 0H5mdHSLTjgbx77KBirRUlzPEWeDgPxO3CE1inI1PJ8QqlMTwyG+Kig104RY9g4hIx1w ju4WuFunjO25RTn99gp3+OZWHMLi58Zn5cjvS7v9Iw6GkeavE3qAUE4yDKd1VotFCsTp l2EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=L9O5decV2/N6JOI8M13p/L7aDc3oKkUKc7b1+iVr6Ns=; b=EDEKCqn0m4yps+OiFuB3tVfBY1Ynn+o0QI6OM7FKFzRA9le4QB4m2iqC9X2AdgML/c R+egSLw0kEgUdK8GjnN0YJARsH+q4Q3S85lJ8pT7H3XakqDuvb1lFqTMY333cQLKIert lRkhRofCyDNBinTNpN1ZmgR5uJsUr1cUH6Vl+4JCVwqQ+wxio4lI2kjUyg+OlhkMFDVT Q6u0fSeX+LHq+2yPLIJdhNvAKRsJzwopa6GVaJaFWnNrRmYoT8gMonGzNAWwDZ7i+WLh PZQU6N0gsqN/zvOlpVsK93n4LiiQ9Ci2RwHGnvZH2xKgznaFiID0ni/I389wEXhZEfyj d12A== X-Gm-Message-State: ACgBeo1E344uuuGbsdSvd61mqCzTCJ/sekZmBaaRnUvqniRnrc1PxT9o 6qp84iPZlVBU5n31aaJSKH09xcULNwzOdBQ5XBU= X-Received: by 2002:a05:620a:410e:b0:6bc:5cdc:88ec with SMTP id j14-20020a05620a410e00b006bc5cdc88ecmr22866476qko.734.1662110549331; Fri, 02 Sep 2022 02:22:29 -0700 (PDT) MIME-Version: 1.0 References: <1662104841-55360-1-git-send-email-john.garry@huawei.com> <1662104841-55360-6-git-send-email-john.garry@huawei.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 2 Sep 2022 12:21:53 +0300 Message-ID: Subject: Re: [PATCH v2 5/5] bus: hisi_lpc: Use platform_device_register_full() To: John Garry Cc: "xuwei (O)" , Andy Shevchenko , Linuxarm , "Rafael J. Wysocki" , Linux Kernel Mailing List , SoC Team , Yang Yingliang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 2, 2022 at 12:18 PM Andy Shevchenko wrote: > > On Fri, Sep 2, 2022 at 11:10 AM John Garry wrote: > > > > The code to create the child platform device is essentially the same as > > what platform_device_register_full() does, so change over to use > > that same function to reduce duplication. > > Now statistics plays for you and not against. > Reviewed-by: Andy Shevchenko Too fast to give a tag, see below (keep tag if addressing it) ... > > - pdev = platform_device_alloc(cell->name, PLATFORM_DEVID_AUTO); > > + pdev = platform_device_register_full(cell->pdevinfo); > > if (!pdev) > > return -ENOMEM; As per kernel doc: * Returns &struct platform_device pointer on success, or ERR_PTR() on error. -- With Best Regards, Andy Shevchenko