Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp539048imm; Fri, 15 Jun 2018 02:02:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIqU/k/Xa16KMGxy8FtgpOvshv/AvIG9MFg6KU8HX0/uWD7I0vwq8nG6LHviVrap66RxXZL X-Received: by 2002:a62:4141:: with SMTP id o62-v6mr926930pfa.111.1529053332258; Fri, 15 Jun 2018 02:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529053332; cv=none; d=google.com; s=arc-20160816; b=n4YPSXyRKxG9jUieIueMMb3W/dfpr8TlVw7jaBQdVYEYRmXSu+gR8CYHZEa0bBzq8k Fq7Bu5m5XQnMyGx6jgZlFckv235JE8Yjh8RK6JLfsoI4MFezvvWetB+oZkCl7KGF7ktZ nRQeDBHtGgZjT3sqnIti6Ud+w+k5WLgScP/RYcp1zLwnkRVpFwTm5xxWwFeqLcOqM3kB CeEghUWGe0qS0OvO8UEOWMCCUJ4sF4croCg02tPXGyeF1ESpML72xf6wMVtLziXE5Qvx fYLtcdHZromEC22z91LOp4M/DzJXIeSbk0LiSqkguSbJNCaRengueuTO+bHIEiDnbDMp lf7A== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nQvcwLk2f81Lkq78FdUKFKvRGpXFGneTtuK/mr78p5Q=; b=KDkuYrhviRoBgSB7wPRbmDX9DsAkYWk3CeGwQgJBx4mVRp/k2UzLqRYQkuN+dyxPJa kKoWGOxaCewhRRm8sOmEPHb7y7TiWeO33KA0VltYJj/fFlwiwvKPAfMu13KOiboXol2a 3pNBIHb11dP58YdOu8vSHwUHV+F0ZvRuAyzh6VbFoDAryRXZsf5L7gocsYZ2whXjVoJ2 y6QgeELlxQ0ahESjT6+RRVYGaWjFd2N4YJBXgc3iM9j+asZOD121jA+4uGHOlc+IPTZf 1wKPcOBxpp/F5Nq7uKbVK+sFxtPl05yc7KEFex2FaSTIncQrnYIwDWTuJPVk1/FL6Ff3 ojnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XxFtXbNC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si7437525pls.69.2018.06.15.02.01.56; Fri, 15 Jun 2018 02:02:12 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=XxFtXbNC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936212AbeFOJB2 (ORCPT + 99 others); Fri, 15 Jun 2018 05:01:28 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:43719 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936076AbeFOJB1 (ORCPT ); Fri, 15 Jun 2018 05:01:27 -0400 Received: by mail-ua0-f194.google.com with SMTP id z16-v6so5943124uaz.10; Fri, 15 Jun 2018 02:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nQvcwLk2f81Lkq78FdUKFKvRGpXFGneTtuK/mr78p5Q=; b=XxFtXbNCRtwz7kpBf3+kP8IO5E27kBJZzaPaa33ma3ZnGm1OXOwlEidqZsyZpimVVK Uk3KyUYgScNVFh5S8sU0aPq9q1PDFmte/nOybDBBCpSJttTMlWcGINmrSRmjrHjO5KTY 6bYAC2Sd00ccgH+7IotEdFpBCaFgWmI6fkmPTxSxtSkNjtm9+qMgwk3IgGpMnkmd2KEr sFDO6hZJvBGNm8j38jAubWBpWXMBqlRMud+S53YRPZiG0ejGfcnpochZiAAXySOfCBQz RfvtcPP1jJ7ms8NE0sp9G+uqyzve23qBcsxs4UtO0Ik22QsdY4ZUxlaNW6Ekv1n79T2r tclA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nQvcwLk2f81Lkq78FdUKFKvRGpXFGneTtuK/mr78p5Q=; b=mNwfCFaPfp0X7uksg0aIkRm2QMin4f0qv77IQ3OnW34hQMCQWa4ZRxIDWycuykq2aI +CauyTsM7xz2Wtdr038pXelN4nGaJINNPKMqjVAMVjYq2vjZ472VJWXNxADqqkZxXXp/ zZHQGxPRWuQUr7C9iE4jJLw1xMxCH0xAZDtptYu789IlPWwpNjrCg2jmCV3DIVgmzL0A 0Y5RRkHxXs+ZSSedEVljQ3fzhBhe2kVhJsFCa1rwgonB2m2cScmm4guYaYoDv1AiWLS7 jql1LGV31jpZHuvaucZFnWxuW5UivBWwdQLdtTWziI02BxRQj4KDtrSUa+jiQhA4760U ZLbQ== X-Gm-Message-State: APt69E2bYBuGwDOalrEzDjrtNdxbamLvESgokWuLqO2CK2uDUJM7kLk6 aGK2cMbI6ySU3rbGxoeXf4GE49StqhOJfy+sHIw= X-Received: by 2002:ab0:6008:: with SMTP id j8-v6mr514606ual.28.1529053286278; Fri, 15 Jun 2018 02:01:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Fri, 15 Jun 2018 02:01:25 -0700 (PDT) In-Reply-To: References: <1528774132-38287-1-git-send-email-jiazhouyang09@gmail.com> From: Andy Shevchenko Date: Fri, 15 Jun 2018 12:01:25 +0300 Message-ID: Subject: Re: [PATCH] gpio: max732x: add error handling for i2c_new_dummy To: Linus Walleij Cc: Zhouyang Jia , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" 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 Thu, Jun 14, 2018 at 5:27 PM, Linus Walleij wrote: > On Tue, Jun 12, 2018 at 5:28 AM, Zhouyang Jia wrote: > >> When i2c_new_dummy fails, the lack of error-handling code may >> cause unexpected results. >> >> This patch adds error-handling code after calling i2c_new_dummy. >> >> Signed-off-by: Zhouyang Jia > > Patch applied for non-critical fixes. It might potentially be a regression if the driver used to work when dummy device creation failed. > > Yours, > Linus Walleij -- With Best Regards, Andy Shevchenko