Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1543997rwo; Wed, 2 Aug 2023 16:23:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlHiezXVRkEXfEjUaKrWpvULdEboGRBRfJ8jrjXRO7Ik3Sjlx0ZL3nKyD0FdN309YNgbREfb X-Received: by 2002:a5d:464c:0:b0:314:327:2edb with SMTP id j12-20020a5d464c000000b0031403272edbmr5830932wrs.0.1691018599593; Wed, 02 Aug 2023 16:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691018599; cv=none; d=google.com; s=arc-20160816; b=STyRZX6TMcqbIB599ig3CxDW+PEMA7gt5WSk2zkPNvBrrq3jI5UmK1k+kb3IkB7P9T UQpefEPNCGc7tvxMGj9WzSA5gN2qjz3wgaNIOmwy2zaVVrdBXyMnAJHb5JwTwcevJ5S2 wUzjT5PIC77C0ylf7e0uHrSdRTH/OmGdPKra3Piagpo7AAhRN6LjQbvDK/4ueIzMzihp o87kNA2z5b2KwG0YN2RK+7xQCu0owbRPZv3JtsnHXn5Dm6BLLX5O8dAclHR9XZLm/php E4lg5qPBXzNIbnYf+eRhNFqz1W19TBDOOcm8jk7fEHsUX1K6VM/5Gl/GmRq+tIDDtYyG BsHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mdwmbxTZ9xoN49nagt8lPukQ2l2Y83hDT7IQe2sYCPs=; fh=/VHDT93HRMvK5CWgkUI9D7WYuUwTW6OexBeqspZo9IY=; b=BXJyyCWmR25xuNCdPxExtnTuUJFnJnxvOOBbaCm5PNhNKDQmYPdYkfgojtGiZZsvp7 Whee/OWdQWgSFrqdfMy3HaZn4ty7oW2JdU+YPAx+RvZxdmIsW56Z7kkGyKugrteelOMx ioxxrhZTMDp0hMAN+RILQ7B63MDPNExK0Qd0lB2iO4c5kFMvHJNbzAle+m5Me6BFv/Rn q4T4+cq4aTst9smUhZnpNvbnKs8it3eVbNzA25IfHIsX07VK05rAFBscv2CGzejpIt1f IAHW1ClJxTv1zT2VfrBjXgWEmZ+NZq78XFFr6L9Xbj5Z9i9sK10J4koPrzqO0Zj5fhze iq/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mnWE+2pZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020aa7db5a000000b00521e517352esi7083002edt.255.2023.08.02.16.22.54; Wed, 02 Aug 2023 16:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mnWE+2pZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230461AbjHBW4r (ORCPT + 99 others); Wed, 2 Aug 2023 18:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjHBW4q (ORCPT ); Wed, 2 Aug 2023 18:56:46 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EFCE9B for ; Wed, 2 Aug 2023 15:56:45 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-d3563cb41e9so307812276.0 for ; Wed, 02 Aug 2023 15:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691017004; x=1691621804; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mdwmbxTZ9xoN49nagt8lPukQ2l2Y83hDT7IQe2sYCPs=; b=mnWE+2pZOygQHoK/v9aGFiO96jjkyFJ3T2pYe4NJBXK/+Tk75WLjNrOmshDQpy1248 sNVNxeFmtlUaYVABwKHxdlnveS2693KKCBo50B69kJeYFwYBP2UPr1keCf1g+yAEFJdZ cKy1EqWnHxN9znkZk65VSTWMuzu4k/vmP6z2fnrzKzueT4mfHN8E3Q4OvynoT9oZs3/y 0Gk/Ja/XxWFB/+HSLILN8yhgv964UrDYepU5YLTkNaYhZTXjeDMuRTNLTAxKitEwfKnN n6Bu+Zc+BHeE4JCqhXuSApwfZdSrDFGlFmidr5EL7GfMxBnutE4OVDWp1e4dJIFfOchd FcBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691017004; x=1691621804; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mdwmbxTZ9xoN49nagt8lPukQ2l2Y83hDT7IQe2sYCPs=; b=R45iZ2rVEyr+Aq+Ok9otZB1ClaRyIy9RUhADekUx4U4yN/0uikiAEru7Pmr2V2bjkT GYyw89wdF94VH7MSmgDJClFO6SiVoJW0dbuKeJWKa0/WPzHM6aliq0qJNJCqyo6vteOD ZKbfY9WmJo1RLOnNZ7BxxfmRkr1i4SfDiMC64sXaRKvXXSmj568BGX70XGX0Gzq8YhHC RlKg1ZL6OLdB3oQ+UddVTk8OgSugAyGM+/8Rv3lxZ1NOpX2/cAWyWUplMlM7450raic+ W+2ShRjHCmlqDuGNUlTzTEQammRt0ZC8Qef2/p1WI3h8+N4GU9z+X0IgBSjZ6mOUUrTZ 4zkw== X-Gm-Message-State: ABy/qLZ7UvwlcKB1RHdnCwstGhAsG9dehGBm1G3LNlAjHMTvtoJsD7l2 JnGQiDsSJJIIlRLG2ZLqKh7wMi9yo3TaapxnwBNfYA== X-Received: by 2002:a25:acd1:0:b0:d12:29c8:782a with SMTP id x17-20020a25acd1000000b00d1229c8782amr14156188ybd.61.1691017004553; Wed, 02 Aug 2023 15:56:44 -0700 (PDT) MIME-Version: 1.0 References: <20230801190951.51818-1-brgl@bgdev.pl> In-Reply-To: <20230801190951.51818-1-brgl@bgdev.pl> From: Linus Walleij Date: Thu, 3 Aug 2023 00:56:33 +0200 Message-ID: Subject: Re: [PATCH] gpio: sim: mark the GPIO chip as a one that can sleep To: Bartosz Golaszewski Cc: Andy Shevchenko , Kent Gibson , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 1, 2023 at 9:10=E2=80=AFPM Bartosz Golaszewski = wrote: > From: Bartosz Golaszewski > > Simulated chips use a mutex for synchronization in driver callbacks so > they must not be called from interrupt context. Set the can_sleep field > of the GPIO chip to true to force users to only use threaded irqs. > > Signed-off-by: Bartosz Golaszewski Obviously correct. Reviewed-by: Linus Walleij Yours, Linus Walleij