From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Tinoco Subject: Re: [PATCH] selftests: gpio: gpio-mockup-chardev GPIOHANDLE_REQUEST_OUTPUT fix Date: Wed, 27 Jun 2018 22:15:37 -0300 Message-ID: References: <20180606174424.9630-1-rafael.tinoco@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: linus.walleij@linaro.org Cc: brgl@bgdev.pl, bamv2005@gmail.com, shuah@kernel.org, linux-gpio@vger.kernel.org, linux-kselftest@vger.kernel.org, Linux Kernel List-Id: linux-gpio@vger.kernel.org Linus, Bartosz, This was discovered during our investigations of a functional tests regression/error: https://bugs.linaro.org/show_bug.cgi?id=3769 Which turned out to be related to missing CONFIG_ARM{64}_MODULE_PLTS config in our builds. However, during investigations, we realized the functional test had the issues best described in comment: https://bugs.linaro.org/show_bug.cgi?id=3769#c3 Related to errno variable being considered outside the error scope. Thank you Rafael On Thu, 14 Jun 2018 at 11:42, Linus Walleij wrote: > > On Wed, Jun 6, 2018 at 7:44 PM, Rafael David Tinoco > wrote: > > > Following logic from commit: 22f6592b23, GPIOHANDLE_REQUEST_OUTPUT > > should handle errors same way as GPIOHANDLE_REQUEST_INPUT does, or else > > the following error occurs: > > > > gpio-mockup-chardev: gpio line<0> test flag<0x2> value<0>: No > > such file or directory > > > > despite the real result of gpio_pin_test(), gpio_debugfs_get() and > > gpiotools_request_linehandle() functions. > > > > Signed-off-by: Rafael David Tinoco > > Bartosz, does this look OK to you? > > Yours, > Linus Walleij From mboxrd@z Thu Jan 1 00:00:00 1970 From: rafael.tinoco at linaro.org (Rafael Tinoco) Date: Wed, 27 Jun 2018 22:15:37 -0300 Subject: [PATCH] selftests: gpio: gpio-mockup-chardev GPIOHANDLE_REQUEST_OUTPUT fix In-Reply-To: References: <20180606174424.9630-1-rafael.tinoco@linaro.org> Message-ID: Linus, Bartosz, This was discovered during our investigations of a functional tests regression/error: https://bugs.linaro.org/show_bug.cgi?id=3769 Which turned out to be related to missing CONFIG_ARM{64}_MODULE_PLTS config in our builds. However, during investigations, we realized the functional test had the issues best described in comment: https://bugs.linaro.org/show_bug.cgi?id=3769#c3 Related to errno variable being considered outside the error scope. Thank you Rafael On Thu, 14 Jun 2018 at 11:42, Linus Walleij wrote: > > On Wed, Jun 6, 2018 at 7:44 PM, Rafael David Tinoco > wrote: > > > Following logic from commit: 22f6592b23, GPIOHANDLE_REQUEST_OUTPUT > > should handle errors same way as GPIOHANDLE_REQUEST_INPUT does, or else > > the following error occurs: > > > > gpio-mockup-chardev: gpio line<0> test flag<0x2> value<0>: No > > such file or directory > > > > despite the real result of gpio_pin_test(), gpio_debugfs_get() and > > gpiotools_request_linehandle() functions. > > > > Signed-off-by: Rafael David Tinoco > > Bartosz, does this look OK to you? > > Yours, > Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: rafael.tinoco@linaro.org (Rafael Tinoco) Date: Wed, 27 Jun 2018 22:15:37 -0300 Subject: [PATCH] selftests: gpio: gpio-mockup-chardev GPIOHANDLE_REQUEST_OUTPUT fix In-Reply-To: References: <20180606174424.9630-1-rafael.tinoco@linaro.org> Message-ID: Content-Type: text/plain; charset="UTF-8" Message-ID: <20180628011537.hWCR_IDhhKrtmKntXuTzIg1cVcBtqhVf64gjp6_JBB8@z> Linus, Bartosz, This was discovered during our investigations of a functional tests regression/error: https://bugs.linaro.org/show_bug.cgi?id=3769 Which turned out to be related to missing CONFIG_ARM{64}_MODULE_PLTS config in our builds. However, during investigations, we realized the functional test had the issues best described in comment: https://bugs.linaro.org/show_bug.cgi?id=3769#c3 Related to errno variable being considered outside the error scope. Thank you Rafael On Thu, 14 Jun 2018@11:42, Linus Walleij wrote: > > On Wed, Jun 6, 2018 at 7:44 PM, Rafael David Tinoco > wrote: > > > Following logic from commit: 22f6592b23, GPIOHANDLE_REQUEST_OUTPUT > > should handle errors same way as GPIOHANDLE_REQUEST_INPUT does, or else > > the following error occurs: > > > > gpio-mockup-chardev: gpio line<0> test flag<0x2> value<0>: No > > such file or directory > > > > despite the real result of gpio_pin_test(), gpio_debugfs_get() and > > gpiotools_request_linehandle() functions. > > > > Signed-off-by: Rafael David Tinoco > > Bartosz, does this look OK to you? > > Yours, > Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html