Received: by 2002:ac2:5a04:0:0:0:0:0 with SMTP id q4csp945645lfn; Fri, 18 Feb 2022 01:18:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMDBUrSm1e3I0S0TkynvIDSc0CtbeZQ465qpYTuJ+504VKK0QVXR75In/jKNi31GNBmyxO X-Received: by 2002:a17:906:4116:b0:6cd:1980:5ad0 with SMTP id j22-20020a170906411600b006cd19805ad0mr5947565ejk.595.1645175901513; Fri, 18 Feb 2022 01:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645175901; cv=none; d=google.com; s=arc-20160816; b=oGrbpsoh1cLW89/4tkog+JMpYFpxVF9ybhhsfhWGTn9RsbjT4zNj/NOZZIPbMaimud xUnzLC+Hr09zZx3CxmbAYZQMnTO1lm28N/nI2A22GvQT9dWdrrT4WNH+x1cc5LKmuCSt lozvMMc5y1KeEGlxLl++1cydd6jXDeZ9p9L1xO+tq21X0opzMX2dB4KONgoViWQD7ohr KWlYbjHKRXytYW22ETU7nOfylDlywBk/drIGk8iciAsUDIHEolXSFgv6jgkxZJ6Z+rY6 bib21YIBsa0Qm4tQ+vh40gY11U1mrVFmpyqgunlDAavWFFAF4SjrIfKOW3HVU/oKMD3J X+xg== 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=SimntoUMkVEr2cj/igvj4PS7W+Y51sYnkHLvFZaYW80=; b=YXQZH4bS1VK0BH26gDjnba70LhUp8JXwWUEvM9UB2Vf+S9cA8SP4KzxOIx0HzlCLAl whXv7Bxifwx5zNjd1sxSV8cLQQ68rd3qVAdhzvoU/WhcgHeniFi8Rw2g9sHKhkGFqoyB Tz/BZERi52QfaDc2dv/bN21soJukek5pGgh3RSJ0FMBOFI+5WQDqBP3+akhoIqmPlc+q JjFMLe0xyn/Xpfd0Er/5kDJeBUlIjx1IkS7GDA4TtFaZn3KlM3jFFGdB2zMuj/PialMy W0ztxuiKbEJUwczwM+Bbj4DOsqJiwWT6ryJZ61CgGQilNMK9lirczPligD+yIfKTDZNP jEAQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1si4669813ejn.33.2022.02.18.01.17.58; Fri, 18 Feb 2022 01:18:21 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbiBRIoh (ORCPT + 99 others); Fri, 18 Feb 2022 03:44:37 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232671AbiBRIof (ORCPT ); Fri, 18 Feb 2022 03:44:35 -0500 Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3057E29924D; Fri, 18 Feb 2022 00:44:19 -0800 (PST) Received: by mail-vk1-f171.google.com with SMTP id f12so4427666vkl.2; Fri, 18 Feb 2022 00:44:19 -0800 (PST) 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=SimntoUMkVEr2cj/igvj4PS7W+Y51sYnkHLvFZaYW80=; b=H6EhQcfUGl/x/FwmMEC0GKzTlKvRrsxJdOISya+K5Mkm8xYNd0hntME3zyIJ+vkjQ/ k+vJmT1TvwkEe+vqjgoHwhMvYr2h1k3l7hW2hLOHGs1Yv1An/baL6znslB2wdnlFG6J1 2l7YoPkNPezwQJHVbwQNl/lyStlZYs6AoKMOYUnWre8Fk3m+T3dkaPZsEqziH196rizf 1F/I5UZg+MMmr2WZtOPhCZ2kjAYaso3BMCprhvakXUjsxAITEsq+RI5MtXZQOLceXcRx ol6URm8dGp69rsuV9Eyj9iE+f6L1R0ICGcZgHuG3xISe87YsFP2GoaLGl9+hrE/W51DN BC1Q== X-Gm-Message-State: AOAM531Fvoh2etlhhEEMMIZWPA5/yeBC58bWcFHMirDlBvycAebtSPNF sVF1ULJt1XPk98rRf35p1oRxgikwWXW8EA== X-Received: by 2002:a05:6122:549:b0:330:288:f36d with SMTP id y9-20020a056122054900b003300288f36dmr2942131vko.28.1645173858249; Fri, 18 Feb 2022 00:44:18 -0800 (PST) Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com. [209.85.221.175]) by smtp.gmail.com with ESMTPSA id s25sm2314167vkm.21.2022.02.18.00.44.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Feb 2022 00:44:18 -0800 (PST) Received: by mail-vk1-f175.google.com with SMTP id k128so4438580vkk.10; Fri, 18 Feb 2022 00:44:17 -0800 (PST) X-Received: by 2002:a05:6122:ca1:b0:330:b95b:e048 with SMTP id ba33-20020a0561220ca100b00330b95be048mr2974054vkb.39.1645173857563; Fri, 18 Feb 2022 00:44:17 -0800 (PST) MIME-Version: 1.0 References: <20220209232232.18461-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220209232232.18461-1-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 18 Feb 2022 09:44:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] i2c: riic: Simplify reset handling To: Lad Prabhakar Cc: Chris Brandt , Philipp Zabel , Linux-Renesas , Linux I2C , Linux Kernel Mailing List , Prabhakar , Biju Das 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, Feb 10, 2022 at 12:22 AM Lad Prabhakar wrote: > Read reset phandle as optional instead of exclusive so that all the DT's > passing the reset phandle can be used to assert/deassert the reset line. > With this change we don't have to differentiate the RZ/G2L SoC. > > With the above changes we no longer need the "renesas,riic-r9a07g044" > compatible string, so drop it from riic_i2c_dt_ids[]. No changes are > required to the r9a07g044.dtsi as we already have "renesas,riic-rz" as a > fallback compatible string. > > While at it, check the return code of reset_control_deassert() as it might > fail and also add a devres action to assert the reset line. > > Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds