Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp599934imm; Wed, 10 Oct 2018 00:57:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV616KscwegaqsRFgRoTox7mYOcfLXj3lbT/P9ubol9vo9dRLROezgEKzgTkrlxtsnj1CWft5 X-Received: by 2002:a63:cc:: with SMTP id 195-v6mr28381318pga.44.1539158233323; Wed, 10 Oct 2018 00:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539158233; cv=none; d=google.com; s=arc-20160816; b=P8D2ckV/B/vD2BmAg8cylHAzOoxWa2lp4ATQcqwJxeZS8ZSQ5oHDJJjyYU/4IN8gXn 5Ni0E5bmqcNjIbvNzXbWuDsKZEx6ECsmNZnHCOj9md9VB8n8dGI77Rm6Qun6ztdKr0WK Gvc29FqHA5QjAONf99QwBTvPZk46Gh2gqq6YneRbDOJ7eIapfEU4yAqHHr/lHWB54A4I ACV8K6SQ5PfIKpy9AG2zrDsizUcsXhJP0sFio/JTHV+wLKUZyio0Fvf8ZaeVIKzwSwWT j/eolIm5XXeUhia3BzwVZy4GrFjsPsUgIL0vni4JBG+T7v/7dKZj3thsgtxoDhWhdOOZ VJLA== 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=zWmKHubBBc+QaQzo5Rf+A6+Rdb0fHF0YiELFqFK+/PA=; b=QzVHUaf0eyMLbtKJX1SRj14oOViKoX8YiWVbCEy7M3MgiVD4/D2nJybWMB05QuDQBy ANWDVEGLrrKhBJNATvx0N2YuInngBgdtQOWjbIae0r43HSy+OoFpbvP8twJWxaru4N9y ptt/QNeUM32gCREDvmkh9CE3A5dsk6r57pQeVQB7b8t2rKg0+6vYV6y51rRW1Bwoa5h4 k5AnR9nGwHS4/hDuxWi4am9asnleUthWV2+D/033v+fiqTsw/m6SI1QX+uGXiKpO+XQM 58fPBVoHEAaW4A8xjy7mYxUOgsMP8yp7BG0TikQFXfrQByK+WDNMOShYpHj1FvyB5QXJ hb1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ruu6s5qB; 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 z20-v6si23632648pgj.466.2018.10.10.00.56.58; Wed, 10 Oct 2018 00:57:13 -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=@linaro.org header.s=google header.b=Ruu6s5qB; 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 S1726725AbeJJPQJ (ORCPT + 99 others); Wed, 10 Oct 2018 11:16:09 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:36239 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeJJPQJ (ORCPT ); Wed, 10 Oct 2018 11:16:09 -0400 Received: by mail-it1-f194.google.com with SMTP id c85-v6so6689662itd.1 for ; Wed, 10 Oct 2018 00:55:12 -0700 (PDT) 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=zWmKHubBBc+QaQzo5Rf+A6+Rdb0fHF0YiELFqFK+/PA=; b=Ruu6s5qBnv7UYDQlrHH09vtgOzmFno4/bj7r0HEHhTsOgese6asbujD2iqlNHWB4VL XjVNZn9OcPKTAKaqskJRRWLFrSTDm56hOd2JNxIWwxTZHXkQczYAiAMwcgCGQlhIWGpK GnTRhEhtkkeiN/7riwAEcPGZ4sWe5GM5Jv5tk= 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=zWmKHubBBc+QaQzo5Rf+A6+Rdb0fHF0YiELFqFK+/PA=; b=l7fNmDe6DuUgV0P1A7dFBZtn3lqeA7lkTrzY09grItXkxCDPXJWZTWZ1Nc6FlT8jS3 pnOSFMvHz7sOdcn5mHcITytpPSxuOmumK5R9ODvDMhYt5eZOoHhxMvhy68bdHXAorjln LycNcU1P3336dpxM+AWaFlDiYcual0G9tc9cE0hnsdRkiIgZHdZsYy5H7ZyJOEx0rDiJ tHESwg/hhMyxnUCNLU72FDbsejqZsePUdOt2BDWgsAhF+sKCK1o8MAqdju3dFbWrP/jp 7uy24nidRL1dlN9/TBGqrfMt+OB+W1v0Ckg/UrEOYhKJtgNgU8PPgfVjMyS8fjoZTgoC ipjQ== X-Gm-Message-State: ABuFfojXwQ79ylXIjrTKD/qVrGYMnPU7z45We9K1lpoSv+BtPJdrJli1 /eE2yviq6wfDmg0z3DRaljPnmSfoiG8+GpaR0Wc6xA== X-Received: by 2002:a24:e0c8:: with SMTP id c191-v6mr3949029ith.156.1539158112100; Wed, 10 Oct 2018 00:55:12 -0700 (PDT) MIME-Version: 1.0 References: <20181005065300.22882-1-ricardo.ribalda@gmail.com> In-Reply-To: <20181005065300.22882-1-ricardo.ribalda@gmail.com> From: Linus Walleij Date: Wed, 10 Oct 2018 09:55:00 +0200 Message-ID: Subject: Re: [PATCH v5 1/3] gpiolib: Add init_valid_mask exported function To: Ricardo Ribalda Delgado Cc: jhugo@codeaurora.org, timur@kernel.org, Stephen Boyd , "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 Fri, Oct 5, 2018 at 8:53 AM Ricardo Ribalda Delgado wrote: > Add a function that allows initializing the valid_mask from > gpiochip_add_data. > > This prevents race conditions during gpiochip initialization. > > If the function is not exported, then the old behaviour is respected, > this is, set all gpios as valid. > > Signed-off-by: Ricardo Ribalda Delgado Patch applied, thanks a lot for your hard work on this! Yours, Linus Walleij