Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3210367rdh; Mon, 27 Nov 2023 08:39:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgIBX+Uf5p9It8Ahkv+Zx51LHJbZmunJf+UYBd7UunY+MLrd82o8myifFovJgIuOD4kq5Z X-Received: by 2002:a05:6a21:7891:b0:18b:950d:de3b with SMTP id bf17-20020a056a21789100b0018b950dde3bmr15023220pzc.38.1701103189325; Mon, 27 Nov 2023 08:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701103189; cv=none; d=google.com; s=arc-20160816; b=eBaUFIup4ADAta+tbauY9mN+zTq3mHUCuQ/Zi+P/V8kLMLqFdybN2fCEObeJ8YtWk6 xCHpp6oKvkTEGiNJ4ESvffdvNGpxYF6VGRCvGP1P2Q2nx2QGpyTXnCMZTaMlcV2SrOv1 fOhzWf9yNPZa+WV4fKIxbp0TU9bhxVe+VsgklgsH0eWegKbh7iGmdQynONZatNyxWePZ PYRniuR97aNhVyUAGmBY9K5VaGPAvgFpM9j0xQELfGH5t5ZJsR0+kaiqyZG2p+iFLF5k 9IwGPf9MTxzhwnBjyccfiVNdlRdW+AsitIx56XHoHhSbQHICTZc+igb6jdYFy9LciL01 +ZtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=ialoQD8eUffvPfUcA1xEXwMG/MoG/Pw/FOKwul2+M9Y=; fh=Mz/wnohOizpqIRCWG9qow6nb3W+nR8awucfDgMN0TiE=; b=byFF22hhUt2G+s3EP1pXjr97HP0E8OLXWg2UGSjy+J/uLFQGfjl3qS0M/OlE4Z5MQU y1MoWlcEAwj7whe7Mtucrw1CMjGRMUFhB3MoCmvIeMAa9g8V5w6R4mAgdLYYNllXI9k+ Q7qZ9E8hu/erLgWRWSi+FmJGp2/eQD0ZBqkKy18Gln+N6Ug6wHwXJQ5E4QZqT1UyCBGi X+5fNUjg8d+mZxQfY79KNKTJTZmCTtAqcpFn4YPrTKQ0yph6ckTHW+W3zqe1wolJUKiG cJeNKR5k/ByrFOwKHy7FagYsYjNLHlVaRN8OoPWq0FXviL97YEIzsuGINwOPkf/11OL4 94zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id s18-20020a635252000000b005c2201d6a55si9828954pgl.39.2023.11.27.08.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:39:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5A3B8822D14C; Mon, 27 Nov 2023 08:39:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234189AbjK0Qj2 (ORCPT + 99 others); Mon, 27 Nov 2023 11:39:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233918AbjK0Qj1 (ORCPT ); Mon, 27 Nov 2023 11:39:27 -0500 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D634D2; Mon, 27 Nov 2023 08:39:33 -0800 (PST) Received: from [192.168.1.103] (178.176.78.85) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Mon, 27 Nov 2023 19:39:25 +0300 Subject: Re: [PATCH 1/6] net: ravb: Check return value of reset_control_deassert() To: Claudiu , , , , , , , , , , , , , , CC: , , , Claudiu Beznea References: <20231127090426.3761729-1-claudiu.beznea.uj@bp.renesas.com> <20231127090426.3761729-2-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Mon, 27 Nov 2023 19:39:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20231127090426.3761729-2-claudiu.beznea.uj@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [178.176.78.85] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.0.0, Database issued on: 11/27/2023 16:22:08 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 181625 [Nov 27 2023] X-KSE-AntiSpam-Info: Version: 6.0.0.2 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 5 0.3.5 98d108ddd984cca1d7e65e595eac546a62b0144b X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.78.85 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: omp.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.78.85 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 11/27/2023 16:25:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 11/27/2023 3:21:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-2.6 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:39:44 -0800 (PST) On 11/27/23 12:04 PM, Claudiu wrote: > From: Claudiu Beznea > > reset_control_deassert() could return an error. Some devices cannot work > if reset signal de-assert operation fails. Well, I think all devices can't work if the reset line is connected at all. :-) > To avoid this check the return > code of reset_control_deassert() in ravb_probe() and take proper action. I'd also mention moving of the free_nedev() call... > Fixes: 0d13a1a464a0 ("ravb: Add reset support") > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey