Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp125699imn; Fri, 1 Jul 2022 11:18:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1titVz3hG30ckZG7ldEPg9W7oqcjie0HVSIggVXkkUchMVQKDsLVmkB7Yl2HUFSWQv6np6u X-Received: by 2002:a17:902:e84a:b0:16a:5435:b5fc with SMTP id t10-20020a170902e84a00b0016a5435b5fcmr23342378plg.119.1656699511175; Fri, 01 Jul 2022 11:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656699511; cv=none; d=google.com; s=arc-20160816; b=PBH+YOmUz9CrhYScJlsRjVqdFzKkDLohMfGGy0qzh4lq1ipQ7WWHIwRgEVVhCBuX5R jGN9JF8sBdAEhZqS5qfpeTIMPZVrO2uWmSfRu3B47Us9NgdEdWoOu+2POMMjRT2K+qL+ cuNhpMLs6WhnPXNrZfpA0dqwP1SILwZLBAbC7nSB3qqSK6skSASr+k2WIq2Cm3dTOT6N 6XsV3+hOeQK5Bh/IdQEz19ddHZbObwIQmmYna9HzChhKIVtVf9WAc2RZr3gi41zbhpCL C+0XUfkW9WyQv0H4wvVE6jnoYgzKTPIq1dLA4ZwUpLLzur7R7exLhZ9NVv0fe8l3+aMx xqrg== 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; bh=8P1W/M2Ft7EitNG21OG6fNl0ycDFlWrehvj4QKWDQ7E=; b=OqvNnn6ZqxdrNJLDKjaCflKC/+IoYojIAYmCP2afol4NR4twCfkmIjtwp85lhU5LJz eZxoZ3u67inCjJGi/f8K90nMAmDXU3lYvu7TrmH6TJJnolxicPEj4qcr+FU76ZCJAsG0 DcWX4rphLlvwzxQ98HhFxlQcem6p5rbWQeLeXv8uzRzz4wyeRBoF5cm69b4kQCBmDPRv cgVsJByibZzdcVxarG8fVethI2Jk5nAxKtmn1f/B81BPiSD7KS/fI7tmBHfGPg9/72Cy QVcRrmjQaGCsxCXaaB/sRc11ooCqt7FP7KuJJBjJcAQkvyz3dB6IQcw/BNYEe4nuhjyb /9cQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a056a00240600b00518929bce96si9673009pfh.213.2022.07.01.11.18.19; Fri, 01 Jul 2022 11:18:31 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230502AbiGASRF (ORCPT + 99 others); Fri, 1 Jul 2022 14:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbiGASRE (ORCPT ); Fri, 1 Jul 2022 14:17:04 -0400 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A86D91572E; Fri, 1 Jul 2022 11:17:02 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-317a66d62dfso31368617b3.7; Fri, 01 Jul 2022 11:17:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8P1W/M2Ft7EitNG21OG6fNl0ycDFlWrehvj4QKWDQ7E=; b=7KzOeKZEE25UD3KnVLxD/fUoe8aDDC6ovjrXTYCyBOqcrGW242nEgqIdRzdxYIZyao vYQkXCqDY+YUG76TV4qAISrltFJuQdCb8pqU5M50XjA6uMIjBcfbvEg1rHiJFUYxysS5 kay3ceMBUjswdPT3VNx7zfawkRgeGrSQes62ZU/F2utz++KMiGjNtr9QesBq6FKu/hUD tSYiuhkUOLoPUBIJoBA4YRwfTE8Xpujy0Vq60J6xuRfICPSqMhfAMnMZxpMbPBYb56O4 qKS/yk9JmC8rkUPIt2suR7WOKKhv5WakS/0AgX01oDI4plXES4XeodViWzKB6BXqs4y/ nuDQ== X-Gm-Message-State: AJIora+IrRpjfa8Uxwt62e1F8r4sqMr6SEIwV6FDKWxfkTFIii8ts1Nv JQ7/9TGt3YETuY+u0EU1v0ZJLipejQk+hOmEgRw= X-Received: by 2002:a81:68d7:0:b0:318:11df:a40d with SMTP id d206-20020a8168d7000000b0031811dfa40dmr18234495ywc.196.1656699421800; Fri, 01 Jul 2022 11:17:01 -0700 (PDT) MIME-Version: 1.0 References: <12026357.O9o76ZdvQC@kreacher> <2657553.mvXUDI8C0e@kreacher> <5606189.DvuYhMxLoT@kreacher> <61fbd71b-9c36-345c-7aed-561b81c34259@huawei.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 1 Jul 2022 20:16:48 +0200 Message-ID: Subject: Re: [PATCH v3] hisi_lpc: Use acpi_dev_for_each_child() To: Andy Shevchenko Cc: John Garry , "Rafael J. Wysocki" , Linux ACPI , LKML , Andy Shevchenko , Greg Kroah-Hartman , Yang Yingliang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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, Jul 1, 2022 at 2:06 PM Andy Shevchenko wrote: > > On Fri, Jul 1, 2022 at 1:54 PM John Garry wrote: > > On 01/07/2022 12:07, Andy Shevchenko wrote: > > > On Fri, Jul 1, 2022 at 1:06 PM Andy Shevchenko > > > wrote: > > >> On Fri, Jul 1, 2022 at 1:04 PM John Garry wrote: > > >>> On 30/06/2022 19:13, Rafael J. Wysocki wrote: > > ... > > > >>> However Yang Yingliang spotted a pre-existing bug in the ACPI probe and > > >>> sent a fix today (coincidence?): > > >>> > > >>> https://lore.kernel.org/lkml/20220701094352.2104998-1-yangyingliang@huawei.com/T/#u > > >>> > > >>> And they conflict. This code has been this way for years, so I just > > >>> suggest Yang Yingliang resends the fix on top off Rafael's change. > > >> > > >> Wondering if Yang can actually switch that to use > > >> platform_device_register_full(). > > > > Maybe that would work and simplify things. Let me check it. > > > > BTW, when we originally upstreamed this driver there was some ACPI > > platform device registration code which you/we thought could be factored > > out later. I can't remember it. I was looking through lore but couldn't > > find it. I don't remember it being so important, though. > > My suggestion is definitely not for the fix itself, but as a follow up. > > > > And for the record, I think the Fixes even for very rare bug hits > > > should go first. > > > > ok, I have to admit that I was going to feel awkward asking Rafael to > > deal with this fix by having a v4 on top of it. > > I don't think it's a problem as long as we have an immutable branch / > tag with that patch. Another approach could be that Rafael can take it > as a precursor for his series and route via ACPI tree, but let's hear > what he thinks about this himself. I can take that fix to my tree and rebase my patch on top of it.