Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1846507imn; Mon, 1 Aug 2022 02:16:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5LuMjyWFOcBD9UPdErNF9pPzELttFqpR0aBGIKVcmN2gNYsD2VSpQ+fOPtU5MKJZzGswWp X-Received: by 2002:a17:90a:9383:b0:1f4:fd59:7e47 with SMTP id q3-20020a17090a938300b001f4fd597e47mr5058727pjo.172.1659345419342; Mon, 01 Aug 2022 02:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659345419; cv=none; d=google.com; s=arc-20160816; b=WxOFx6ILwt7T9bmIukMBCzo8gIq0lOJhIKK74R/5yZk0086R/A2Wxqd60oCFxkhWRs 8AjqFR/l1GNx89uHvlwxZ9xVbZc7h3NaHLd6ONzM794Qm7Thmmdc+ZcFGLXn4C10wYef GdfFQ84w2aGmub5ly5WdXlPkfnG50Jvj8xuBA/PCxVjrDHEJao5mCp/YcKxDjbBHkpec get0zpoxMoqLsdZSv7iiiDdy6ufGGqg8hfBkczGs1DSf5JvGQcMF+fDq7FhCEEiA6yYo rPWGVV8lixHvaMruS87akx2nCcEJomA5oxYMFdjItv7xz/hFyLnuduHSuAXESrSz/VaU IMQg== 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=nB0ZRcjHZMk2tgYdKDIpiNEK8D7kZup7/hRGKDPsck4=; b=BfjayqqtXvBgUsmnMu5g2jYxhT0/y02JQfHEm/ZkbtyyirQ8JQeWf38rMwAwdvMLuz SLgnTyQpFO71N5XUD5HG8End3DV+8a6ra52QwW0ZVOhjqi1L996vKjdOQLLisUq3cc7z N4j7G5XomoC0ySjDGTyIz7EJcPX5RKIdvvJGSE6cBIg2IpJpSYT2ltUy2gKvUfX/p0s6 9Blt4jCSESS5ktQ1y+WCR3+9teroJ4+Cu9xleTjXVVymkjl8fa2ANWEzaTBrzrRqRQJs 0jv9Pf2MueqqeuNV0vmc3xmC+aZS8kkGJEwmrT0HtpzxqLkMLiSob16IErdIwfjGCj0s 1PnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TbF5k8ly; 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 c17-20020a056a00249100b0052b2d61f2c8si12090126pfv.293.2022.08.01.02.16.44; Mon, 01 Aug 2022 02:16:59 -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=TbF5k8ly; 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 S230341AbiHAJPH (ORCPT + 99 others); Mon, 1 Aug 2022 05:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbiHAJPG (ORCPT ); Mon, 1 Aug 2022 05:15:06 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1ADC1DA43 for ; Mon, 1 Aug 2022 02:15:04 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id kb8so4600409ejc.4 for ; Mon, 01 Aug 2022 02:15:04 -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; bh=nB0ZRcjHZMk2tgYdKDIpiNEK8D7kZup7/hRGKDPsck4=; b=TbF5k8lyU8bYSJIOuZfc6dx3Pu2cpOLaSdtPvHDtFTEGT1CpqKn5DYiTKT6YjXrbKa pGP3AEGJSE59P+Tj6IxfhCLBkb75gBAyOXdEoMu8Uz9snItXHj05Bw/RkjDlcs4HApj7 /5+Pj0fLBpIfOQnm7ZT//8mWu1EAhkj9WP20V7Tf1wixsGdfiNvbYokNwL9GtKu1XzAk CBkVoh2fCOgB6gniZH2xIcKxiv5KXGVJ54irhasRjnP9ucIOdmUkrwQLfhs6KkylN2Rw hwgumJxPaiUKuiXVCHByZNqOmWe1bQOqK4Sa1mIvPAW8RBXneUoEN8ImnRpu7cY2an0V RYdQ== 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; bh=nB0ZRcjHZMk2tgYdKDIpiNEK8D7kZup7/hRGKDPsck4=; b=yFNhi91vVphG2e95fECECSoGNs1cjs8xTiOPCdlwdtyzjGaPyiPhjBDCVn58A4Eekw Ga6WjAUwj/BZ8dDyg29wFn3M9aR6wvlA6xPLKbIHXdgViuVQNECHrIwLTTal7AMtvrMj Ux84b+LCziusAZpD1RErgkHf3zZ/dBdfe9FMyTYOD0PZI0nKFgaXm4Ve/oDJIeM7bHEb MHi8T3MfO8ePGuX0KsiZocWcakoYUlLD0ZQR8rXugXrcRe4XJ8SMf/OICQMyEruqlIg9 iU6xHvOLoQKsqXnRdKc7upqxQI8Gok59lVO8F8CO3OlkptVLe5J44t25fTY9v9fz/DXq aKvQ== X-Gm-Message-State: AJIora984Geh+HXDWwT+at4tJpad5YCcWNKFAGwQnjh3LY1KWxwdJvXO zmy4x6GIjNkXcmHgoYZ06PrQ9dGwwKwVXeBtTiM= X-Received: by 2002:a17:907:c06:b0:701:eb60:ded with SMTP id ga6-20020a1709070c0600b00701eb600dedmr12205508ejc.178.1659345303440; Mon, 01 Aug 2022 02:15:03 -0700 (PDT) MIME-Version: 1.0 References: <20220731201258.11262-1-andriy.shevchenko@linux.intel.com> <9b9abdf0-7cd5-df51-adbf-2225291f0dd2@redhat.com> In-Reply-To: <9b9abdf0-7cd5-df51-adbf-2225291f0dd2@redhat.com> From: Andy Shevchenko Date: Mon, 1 Aug 2022 11:14:26 +0200 Message-ID: Subject: Re: [PATCH v2 01/10] mfd: intel_soc_pmic: Fix an error handling path in intel_soc_pmic_i2c_probe() To: Hans de Goede Cc: Andy Shevchenko , Lee Jones , Linux Kernel Mailing List , Lee Jones , Andy Shevchenko , Christophe JAILLET 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 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 Mon, Aug 1, 2022 at 10:43 AM Hans de Goede wrote: > On 7/31/22 22:12, Andy Shevchenko wrote: ... > > err_del_irq_chip: > > + pwm_remove_table(crc_pwm_lookup, ARRAY_SIZE(crc_pwm_lookup)); > > regmap_del_irq_chip(pmic->irq, pmic->irq_chip_data); > > return ret; > > Note alternatively we could just move the pwm_add_table() to just before the "return 0", > there is no strict ordering between adding the mfd devices and the pwm_add_table() > (the pwm device only becomes available after the pwm-driver has bound to the mfd > instantiated platform device which happens later). > > IMHO that would be a bit cleaner. Good suggestion! Since I need to send a v3 anyway, I will fix this accordingly. -- With Best Regards, Andy Shevchenko