Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp595005iol; Thu, 9 Jun 2022 09:44:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTdPbNgwaLEDK3V05wL9r+p8p/NRMAkyd9mOK1jM66w6rQNM1FiixLW4SN4ACQjDymb0Bl X-Received: by 2002:a17:90a:680d:b0:1e2:ff55:da6 with SMTP id p13-20020a17090a680d00b001e2ff550da6mr4287661pjj.133.1654793098736; Thu, 09 Jun 2022 09:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654793098; cv=none; d=google.com; s=arc-20160816; b=ynUiHj8WR4mZN88Au56UFlGDMmCoO6+xXP8CekfNxwT5iaEedLbYk5RmpVvvCaGryC LZ4TsCMs+H9gwJTUvZSwhrl3IN4VGJKKYmHBhMdzFWFFrOqp2RppyuSzeahjhMAuT4uR 2ho9pJ0QIKNzqtAgUqLNcEg43DYPpSuVnH7zrD9sDyyR1i3eyauEmZ1bgIdp3FfMHHKT PUSVKdk6TZ7/2XmQid2fC4JiqVR1JEttrHy9up37Bjg1etobTbzCM2D2ct60eQ+zBnn4 ZvHbzRn3t+l3BUNJHJQntsltBI/QDqSj25CC4TUQFdTZD4Gzk44Tp6gf60foLHLTPzJn t12Q== 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=oP68gQ771+clRj4cFwUH0Ec4RApgtfD1Z4Jp2OZ6o3Q=; b=V0gd60jVNfJksij0RmDeqcYd075SQIOCnL6NSVTR/ohc2OVQVWGTdeCJHEbIsLdSMU lSKGJzMrSWsW/b6+1lIcdnFrQH0vtCsiJ99jfiB3HoHDsydWPZd05iV9QUnMTEKbyIL8 RLNexReU7dcq9NuYeqVPqCX8aXRot9UHMer75WVyqVIoKUX+tAVK78ZI6095+KssuuKt nrkWaq3gKyEF8kqG7UzxqqvCzNyLzidVgqijYbyT1qh96K7nig57t8BPwQj6h2wiLmk6 uKMjSwPfjVuNR/Xsp+Dep7vTpfOJTbGOtLSrJOl2zPlemfDJcQg7pPgY4m+JlKdbkCek 7Vgw== 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 x30-20020a63485e000000b003fc962aa2a5si24364640pgk.219.2022.06.09.09.44.44; Thu, 09 Jun 2022 09:44:58 -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 S234949AbiFIPhf (ORCPT + 99 others); Thu, 9 Jun 2022 11:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344529AbiFIPhd (ORCPT ); Thu, 9 Jun 2022 11:37:33 -0400 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F8B09CF15; Thu, 9 Jun 2022 08:37:31 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id g201so14560980ybf.12; Thu, 09 Jun 2022 08:37:31 -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=oP68gQ771+clRj4cFwUH0Ec4RApgtfD1Z4Jp2OZ6o3Q=; b=KTZOd3Lx6qgH3bZ2+CKWKw7kX1GXH8dj0QuBGSNozzHtcZBpCHb+giK9N90t+BHW1B ImPveg3UN3MFA53ux9XrJ6XTr/hx8uZTN3Nwkji6QCarMw+ENff0nqPOnMrG+QuVZnLS ZcbFWKuj2PABFa4QMHcAxrhgVsy1/K6tciZlKSFUfyMTtMThnyYQponF1oDye4aB0X1K uAzEBmiDcqY9hGAxDbG62Ub4L3N4v53iQq3tAeQYUZvo4XZ8PU21VVZShMx4gX7tICSQ pNWM/4Fc1WcEFcrsALEnCPmlmxXteWU/DrWl7axLudmD0AtDlDYYYTD9JGruYAtI2nyY VD9g== X-Gm-Message-State: AOAM5304EDvfEEZvLAJtKtSHIaUdr329zjXEAeMHkSEY13FGK2jjBKF9 dfzT8eR/6QT4pv/Ra0gvLAxMYWCGpQtADmkQ2gI= X-Received: by 2002:a5b:4a:0:b0:663:7c5b:a5ba with SMTP id e10-20020a5b004a000000b006637c5ba5bamr21326407ybp.81.1654789050580; Thu, 09 Jun 2022 08:37:30 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <3459925.iIbC2pHGDl@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 9 Jun 2022 17:37:19 +0200 Message-ID: Subject: Re: [PATCH v1 05/16] USB: ACPI: Use acpi_find_child_by_adr() To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Mika Westerberg , Hans de Goede , Sakari Ailus , Greg Kroah-Hartman , Heikki Krogerus , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" 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 Thu, Jun 9, 2022 at 5:27 PM Andy Shevchenko wrote: > > On Thu, Jun 09, 2022 at 03:56:42PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Instead of walking the list of children of an ACPI device directly > > in order to find the child matching a given bus address, use > > acpi_find_child_by_adr() for this purpose. > > ... > > > if (!parent) > > return NULL; > > Can be removed because it's embedded in the call below, no? Yes, it can, in analogy with the thunderbolt code. Will update. > > + return acpi_find_child_by_adr(parent, raw); > > --