Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp338736imu; Fri, 7 Dec 2018 01:51:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WTrknszpfauz+7yYbQicqBOCUWDAxkFv/pQ/nBn5dQ0aoXJJFD0BspuAMWlJkdmJFDgvsV X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr1533069plq.286.1544176263935; Fri, 07 Dec 2018 01:51:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544176263; cv=none; d=google.com; s=arc-20160816; b=dAIGRX4LtnUfUq8y56Ziab6M5haUzP+oiuKEUFaXUdwaju7tTPkxZA3VqVotDKpY9N xtSGNFfpUrU6PAB9NPTmemuKnvshkSMqVzL4g/mNF6BIwpwN3CwNuPjYgcY94j/JBTht 8KThj+/WArY71ytMSCgJP2ffULEnZlJxAqF7u8XQB1HXIC8Ig2ppWLkWw032Yvoz5qDc GBESbTUFa0bOfeVBms3pmOBl80UAvUNuMv3pFezcQjGrXrrD12ZEtzBRlXzL5fq4xMIo FKdFZqa2y/i6I0fCbcm/Q7l7WLucXcJKI5Pe9M8fqO/lYQ9ADXVmp6roI3DyKY89B90a tyuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=owIMGX0zemiqfnl4vXIAcdx2Vr7Uc7+3UuYHHK/Nyxg=; b=mtd63YHfRoVeiOaPx4+4vf16YZlj2idLUbBUtUKcHdf9fAGWWT+IJsncifbv5F9Jx3 a7z7pkS52QYMP+lUwyRHmXbZX9Qxa96PvvyPqkh8VDbHypdhdoVQM1rqx0A2hVqEo31j 6Wxzpzo6H+oUjbY7GBv/pqMPWEwG1xcfi4mHmbm/w/n0DiH0dSQVYDhqo9VtnWQVn8oD D99oCFGb0IyMjvKgs0gQpA+0778OK42RmlKLPADkK6F78Dn6nXMgR2XpxCk4eyyjLAPi w7TLFj+xB2uhjwKeN0z8fPt3vx/ko/ITOl9QsuxLvAcDv0unUMavZjXRgSvZyj4EGayj 3nLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dCMS4jI+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si2509221pgg.288.2018.12.07.01.50.48; Fri, 07 Dec 2018 01:51:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dCMS4jI+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbeLGJsY (ORCPT + 99 others); Fri, 7 Dec 2018 04:48:24 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45015 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbeLGJsY (ORCPT ); Fri, 7 Dec 2018 04:48:24 -0500 Received: by mail-lj1-f195.google.com with SMTP id k19-v6so2969781lji.11 for ; Fri, 07 Dec 2018 01:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=owIMGX0zemiqfnl4vXIAcdx2Vr7Uc7+3UuYHHK/Nyxg=; b=dCMS4jI+Y3Bst45CoAgAvpWA8BB4fyAbzFwoTc40H1nPD/1UXtXLDFCL0Ds+ro16do ejQTltkBHjx1BsTnJpNMVdNmASWVElFa7CVlF1KQjWu+aowrNHM+tpHM9dcXMirw5flH NEJZ2V7lWuWrbedVz+bE4RzgubffZM0bIgjnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=owIMGX0zemiqfnl4vXIAcdx2Vr7Uc7+3UuYHHK/Nyxg=; b=knqRBbpm/iJipMwF3YbSrtu7GjBPTrWy0yTKotpjjYUO8YMUk7WyLf8NYgYNZDfwD4 4BNKpgfGAkDf49qKexl9/imSilELcduRjEVoVtKcECMIEwzqmzzbiq1cpLEMCYUbVY+I rUX4iIXze6Z7tyMWA4oT7VG53fcWtLHwi1BQAZGBMI+dagA++8BopRyXqozfpCKPaaEO HHn4aFd4M5sXdkm3TIDDzVF+fGW8iahj9/PijCZpPVYDD6rqujCRzChHuXzmk9BTyX6v oLqvjGbAz+KX7GOjugvcVENwMcxEP/25S2rVWjR+P+6hhZ9Ten56L1stfcSayMPIlrU/ WO0w== X-Gm-Message-State: AA+aEWb8m+mxHLln8ot+DXyVHfnqMxmR6Yzd52xV+Fmnk0zG3G6nY4YI z59zCElJYYMMYkqVgb7D1D0bw1V9K4QJCtPyIC4BRw== X-Received: by 2002:a2e:9e03:: with SMTP id e3-v6mr932812ljk.4.1544176101184; Fri, 07 Dec 2018 01:48:21 -0800 (PST) MIME-Version: 1.0 References: <1543338018-708-1-git-send-email-hofrat@osadl.org> In-Reply-To: <1543338018-708-1-git-send-email-hofrat@osadl.org> From: Linus Walleij Date: Fri, 7 Dec 2018 10:48:09 +0100 Message-ID: Subject: Re: [PATCH V2] gpio: mt7621: pass mediatek_gpio_bank_probe() failure up the stack To: Nicholas Mc Guire Cc: Bartosz Golaszewski , Matthias Brugger , Sergio Paracuellos , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Linux ARM , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 6:06 PM Nicholas Mc Guire wrote: > The error cases of mediatek_gpio_bank_probe() would go unnoticed (except > for the dev_err() messages). The probe function should return an error > if one of the banks failed to initialize properly indicated by > not returning non-0. > > Signed-off-by: Nicholas Mc Guire > Fixes: 4ba9c3afda41 ("gpio: mt7621: Add a driver for MT7621") Patch applied with Sean's ACK. Yours, Linus Walleij