Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3131332rwb; Mon, 5 Sep 2022 07:00:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR4pnWHOvNmF6ZSo9X3BoalrV1p+7CSiFGzPM/EKincrGX/JAJikuzxyM9zAWpUCYMBZpQIR X-Received: by 2002:a17:90a:5d8a:b0:1f7:3c7a:9cc7 with SMTP id t10-20020a17090a5d8a00b001f73c7a9cc7mr20074514pji.207.1662386428427; Mon, 05 Sep 2022 07:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662386428; cv=none; d=google.com; s=arc-20160816; b=MdQ7bZ2WkSUbzRNdarkgnR18H6/rKxgc8NRzqcOauu6fyRr0lgshax7eKbGS7g+s2W J6WFP9HzzLRosuXUe9Ug/BKsxNcJqNlCMcZTmruE1fKfRkz+xjf3Kcgqe0yewvEmZncu dUN4JhjiLhK5ceXbxCl7dF99dzPnKkHTXutdhCyJdJ8nsLeWHmdUn21h6zPdpQXIIslz crWZnObB2z7d2mfiXG7AjSClB3618rNIrD5kP6i0x25Kul1vcP9HX2V5yOIIWn1I3bZJ HvtoSg4/N5/8g3jbbyRV0G3MTTOLdPBte3w8zSXioX0hCCMdyU5iW+6MFQO9hFOxFf/R 8tnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=Anl4KSej9J1zP4z9J3F8Wu5O/cyIfQw/3EO+rityOqE=; b=l4q8AnkflSdIfFb3Hq7nJ5NIE/jQvUZ3rF02bC61mOLkpwbgZvutIkz3nJ7FC4ZI/w YGWg6609KP+7eiOX2RcbdSB6FMkGdseNJsOyd3ycDX7RBUkaqu9QYvDYQEul9aPqsMwi oKet9KRB908qAamrCjN9t1jQfjlzFhxIZuwepPo9of5rry2kZUQt0y9kp1H33Vm96Q73 N0sDax/7xNkzaptieYpfsJQtkvN0s7ejfMI6vZnuTCA0jMAh1MZzbng6HGhwkEKInQmL HchXE2KKz73r32XDbc8QXlhCCufiOU2K4BZgLxsb45OGoDxd/LQi12qW7X7bGDg7kmVj eVUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hBji86Bt; dkim=neutral (no key) header.i=@suse.de header.b=AJL2Dw5F; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056a00229400b0052b75c32fd2si11378457pfe.48.2022.09.05.07.00.15; Mon, 05 Sep 2022 07:00:28 -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=@suse.de header.s=susede2_rsa header.b=hBji86Bt; dkim=neutral (no key) header.i=@suse.de header.b=AJL2Dw5F; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235207AbiIENAf (ORCPT + 99 others); Mon, 5 Sep 2022 09:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235805AbiIENAa (ORCPT ); Mon, 5 Sep 2022 09:00:30 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D9828713 for ; Mon, 5 Sep 2022 06:00:22 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 28095385B8; Mon, 5 Sep 2022 13:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662382821; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Anl4KSej9J1zP4z9J3F8Wu5O/cyIfQw/3EO+rityOqE=; b=hBji86Bt5yDVmxihJNt+Awhwmwkev/kCH5U+0wkheyZUWYiHwKEcpIZhrxTxIjmGZpxct+ gkSBcvCwdrj54MudlCxA0s64jWMEGnR7wuLghJRqGcsXxDmRB2W9+z8qXczi1C0HcqL3Pi wYfnMSDXnx//I+oJbQp2SZJCj3Z02Wk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662382821; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Anl4KSej9J1zP4z9J3F8Wu5O/cyIfQw/3EO+rityOqE=; b=AJL2Dw5F/JkQM6+64hlo5xciyPInQccdbtlg5ItiFvRbAUlePJwQ6tJmROibK2pxv5hIx5 2H5ceSbA2i7njHDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0B8C813A66; Mon, 5 Sep 2022 13:00:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iaEPAuXyFWOPEgAAMHmgww (envelope-from ); Mon, 05 Sep 2022 13:00:21 +0000 Date: Mon, 05 Sep 2022 15:00:20 +0200 Message-ID: <87ilm2j7rv.wl-tiwai@suse.de> From: Takashi Iwai To: Thomas Zimmermann Cc: Takashi Iwai , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 12/12] drm/udl: Sync pending URBs at the end of suspend In-Reply-To: References: <20220816153655.27526-1-tiwai@suse.de> <20220816153655.27526-13-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, 05 Sep 2022 10:44:25 +0200, Thomas Zimmermann wrote: > > Hi > > Am 16.08.22 um 17:36 schrieb Takashi Iwai: > > It's better to perform the sync at the very last of the suspend > > instead of the pipe-disable function, so that we can catch all pending > > URBs (if any). > > > > While we're at it, drop the error code from udl_sync_pending_urb() > > since we basically ignore it; instead, give a clear error message > > indicating a problem. > > But if we fail, shouldn't we report that error to the caller of the > suspend function? It's an open question. We may fail the suspend, but OTOH, the sync error is likely nothing we can recover from at any time later, either; that is, even if we return an error and abort the suspend, it wouldn't help so much from the practical POV. So for now -- and just for this URL device handling -- I'm inclined to continue suspending. But if anyone has more strong argument against it, I'm all ears. thanks, Takashi