Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1440174imw; Sat, 9 Jul 2022 04:41:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tYg8FfddRzryc9M0MDGv5wy/DeSjnCVzRA8XRX+BJXmV5K9kWqzzHLIs/CzldHz0Pr6LOW X-Received: by 2002:a17:903:1312:b0:16b:e369:5c1f with SMTP id iy18-20020a170903131200b0016be3695c1fmr8242852plb.43.1657366869243; Sat, 09 Jul 2022 04:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657366869; cv=none; d=google.com; s=arc-20160816; b=NGMVW1e+CGFY/wtb16C/10K4HeelScdTBFnaB6QDJLUoDamF8OkRXuExdD1HWUdp3x 7gSji/tXzymT3EkK9IMXn+DET2F6hL2IgcS8LUGNhdA//ECJroiEox21ByQ+0LGys33U cXEmwIJmFl4eFkJ/XleRvlkvnMzt3PzLmGFkGvJD1ewOqTF6Eys6BhdVMAkchvwvW5Ap 6zgAi9vllewRbbqPszCp4j7S3Omq7n8vENccIP2RQWLSXERpb73OWxP6oQqV/OunL+T4 /o1R//zNWw3bu5TJ4Q45MZv8uGIwcVqS+cHqhhvuZmWkDxE94v//snNTlaLvjmViIhq6 9q3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FRulKm6e54Rx05VJEtDgH/oUpouEIMBNeaS4CcWT2II=; b=tIn3KusxPvEJIrCDHX7o9G3Un5b3w12bBHRLa5Qi3Xt3FC4uVrItzrJzflCTHee2q7 d/ColwlaWJO9FAVGnhsiMsviamlVMeL77Y3w2/RTdiNsFXkle9QM7y97U5kTd+beF9i6 0V2J2rL1wmQuYAXQrzuWGecAGocMqldG8N+eMPSuwTQXZBrUjiRPQTAbuDAV+p7N9GBE WpnqKgLeHk+3LLchr1a3lGBAg5lYFLRpE553OieHnFzN2+B0DATDwUp0yS1MQq8hMlQe UmT3zdGMGWlNesH4BwXTtaoRPcd4ENDZy6sLZ6zmyc+jNSc+H0t3GZz8AHUZSXIHHepS bGGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nBFOhEEZ; 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 s2-20020a170902ea0200b0016a38086f4asi2228287plg.297.2022.07.09.04.40.57; Sat, 09 Jul 2022 04:41:09 -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=nBFOhEEZ; 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 S229541AbiGILes (ORCPT + 99 others); Sat, 9 Jul 2022 07:34:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiGILer (ORCPT ); Sat, 9 Jul 2022 07:34:47 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C9205926B; Sat, 9 Jul 2022 04:34:46 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-31c9b70c382so9719187b3.6; Sat, 09 Jul 2022 04:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FRulKm6e54Rx05VJEtDgH/oUpouEIMBNeaS4CcWT2II=; b=nBFOhEEZPgyq0RdwW85lPI1KwlgUZA1lwSMnWWi+7C7URoY4TdWslvx1AV1+pJ7lzY hs7iAVgE0Y/bPVne4/68sAPFoW0jfxQmneBSmJwAM6vDINN3C+SdCjF4qnXSRizpUvEB tEV4vRHFlelzBLB4/Wz3xfaULngQhiUqqCbx2ZDd25O5jwIQWNRYsc9dHyocrPlQ7RcE /bxPXywb+NV92QZOEWEhqHDS/yOgBQKBPg1CGFGFOpwMa34DVp+DchMeMRhk1NQB+nL4 MdWKCYrhdJZ+bk9dW6oTPyvmEUQ66aV757pRSSnDMK+Txzeq15/9T2xvj2yFauqIhFTt +dKw== 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:content-transfer-encoding; bh=FRulKm6e54Rx05VJEtDgH/oUpouEIMBNeaS4CcWT2II=; b=tad4z8dnAp//dHCOLcEuoCov1zEdBy3LjAuFvVY7nsbMzMxToypnHpOP8mWC5NE+Pd Cbl5oTFk30kaPH18fdtrPl5IOk0qinjzOqLiIlE0Ux1HNWfafTU7dnie1jpDorqnaDFc hBwKoRvannfzkOnJvNcQ0KKCAA0H5LTww+ywL4gmt0jvVcFkXrk0gfdp328/YsxUmy3p QRiIBMPmFx0wRMgZ1WKzqmQBsgKzcUnk5XN3lpJtkkmh/z00WKYxsghXOXeLLI6ELOXs u/JQzW7haH6EEHoXa3JntpfMr8frSHtkVmyoQdqB7MNJ0zrCmytfTIM5Tdw4jwGQxcsA jMbQ== X-Gm-Message-State: AJIora+ZkTOlZTU3bOgKoIt6HOHBiq2X/vjRR2IACxS+MaFwCaQmT9yg s78L9mHqaZIzFY8n+jmebstPR89OlBhEji9jmOc= X-Received: by 2002:a81:8397:0:b0:31c:8a02:3f6d with SMTP id t145-20020a818397000000b0031c8a023f6dmr9266059ywf.486.1657366485519; Sat, 09 Jul 2022 04:34:45 -0700 (PDT) MIME-Version: 1.0 References: <20220709000636.35550-1-andriy.shevchenko@linux.intel.com> <20220709000636.35550-2-andriy.shevchenko@linux.intel.com> <9826f272-ed7d-1daa-c852-6f353258bb2b@redhat.com> <154a12ef-29a7-8189-1a5d-648dc92cffd3@redhat.com> In-Reply-To: <154a12ef-29a7-8189-1a5d-648dc92cffd3@redhat.com> From: Andy Shevchenko Date: Sat, 9 Jul 2022 13:34:08 +0200 Message-ID: Subject: Re: [PATCH v1 2/7] platform/x86: serial-multi-instantiate: Improve autodetection To: Hans de Goede Cc: Andy Shevchenko , "platform-driver-x86@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Mark Gross Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Sat, Jul 9, 2022 at 1:00 PM Hans de Goede wrote: > On 7/9/22 11:52, Andy Shevchenko wrote: > > On Saturday, July 9, 2022, Hans de Goede > wrote: > > On 7/9/22 02:06, Andy Shevchenko wrote: ... > > So nack for this > > > > This effectively means nack to the series. > > But it=E2=80=99s easy to fix. I can add check for ret =3D=3D 0. So, are you okay with fixing it this way? See below how. > I don't see how this is a nack for the series, just drop 1/7 + 2/7 > and rebase the rest. Yes there will be conflicts to resolve in > the rebase, but the rest of the cleanups can still go upstream > after the rebase. Because patch 3 makes a little sense on its own if we drop the patch 2. The rest is the simple cleanups which I do not consider as a core of this series. > > > case SMI_AUTO_DETECT: > > > - if (i2c_acpi_client_count(adev) > 0) > > > - return smi_i2c_probe(pdev, adev, smi, node-= >instances); > > > - else > > > - return smi_spi_probe(pdev, adev, smi, node-= >instances); > > > + ret =3D smi_i2c_probe(pdev, adev, smi, node->instan= ces); > > > + if (ret && ret !=3D -ENOENT) > > > + return ret; /* * ...comment about why we do the following check... */ if (ret =3D=3D 0) return ret; > > > + ret =3D smi_spi_probe(pdev, adev, smi, node->instan= ces); > > > + if (ret && ret !=3D -ENOENT) > > > + return ret; > > > + if (ret) > > > + return dev_err_probe(dev, ret, "Error No re= sources found\n"); > > > + break; if (ret =3D=3D -ENOENT) return dev_err_probe(...); return ret; --=20 With Best Regards, Andy Shevchenko