Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1175217pxb; Fri, 21 Jan 2022 11:29:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5PUhRb0pgFrO16eHdb441EsYqcZ52SYu4ncA0Z+p7jXcGSYXv66w/T2gvKBMdvuMKDwtl X-Received: by 2002:a17:902:f68a:b0:14a:5f49:fada with SMTP id l10-20020a170902f68a00b0014a5f49fadamr5430769plg.106.1642793346007; Fri, 21 Jan 2022 11:29:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642793346; cv=none; d=google.com; s=arc-20160816; b=Q/B/qGSnDOWHX5zPwQigWfodXnAocFsfs+qaZ48yAVp/W7LoTZh1WMlNZnogcqIOQP j56VV9A4XLn6e75YuYFABW7Sq8FPKHl3KZHE3CSVADDa+dgPFZwTgPbk6sh7NxnGl8gb O4icawJNPkhlQFE4yn59N6/cta/69DQfdAFM6+6oC9bcJ4ufSWI1PcOhbDHtLnRqVAo9 0PTFHrePU3GNGZLS1ZW3LeMpM3VJuVEHDXjxfzOfNGQxdygSQN8rhCZPHTfcltprc6zs bsecTybD5nHAfa8L+IyFapltoUIasjvLhNWW2tC45k0Y2VZtu/ix5OpO0zl0aUtr1Y3L YuaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=R4gEG6X7yQYFUifkRnRfRb4n9XnU2Dqv9Tx9QyGeGGs=; b=kubyZu6jZczpjs90H53eoSWxZeieiYsi84wLAty4qswWcf+ZW0MRflFZHSqC1vH9DP kGDbw23M81kjiPqU9QAl6KzX3ACfMcqUAcc4jM0sM///yryEgANIpm/zBYiHzZap6BDa Y2f6HyE4UNJaqlU86o5POqS4eJ8b36esf/6zcZ1hQ+dYzfTtMeKSJSMDGZAJ32zWPHC6 HrEOVslR00htNAi9ABqd/4McIn/il6zAY9jYoGIY5BAO7ax5S0SUwFpnvamdFTGswpCa praeBTXkx3rFKIo7kPJG2/XfJkJ3etMoC7SA/jat+z5IbUCg5P1+2+oiuKFU7+Us4wdn Fmwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=htKia9Xn; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y65si3111387pgd.598.2022.01.21.11.28.53; Fri, 21 Jan 2022 11:29:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=htKia9Xn; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1355644AbiASPag (ORCPT + 99 others); Wed, 19 Jan 2022 10:30:36 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:53232 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355728AbiASPaP (ORCPT ); Wed, 19 Jan 2022 10:30:15 -0500 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 69D3D212B8; Wed, 19 Jan 2022 15:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642606214; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4gEG6X7yQYFUifkRnRfRb4n9XnU2Dqv9Tx9QyGeGGs=; b=htKia9XnspTqTBWTVd9JwKXUC8VYO0gESFuOWwskjnvwo7jOqaOpBqA7E+PghhrGYHKQqI mlhMV4NMEWstJK8Sx1q64Q1XF/nGp5H2ZtOD1yovhvkdktlPUJgtahCIrwTAjnEq0rHkLz 9f6gnRI+Rs+EV0c0GMfHJroIJ8uAijs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642606214; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4gEG6X7yQYFUifkRnRfRb4n9XnU2Dqv9Tx9QyGeGGs=; b=v+EvfFaGQrqRQrp5vQvFPWHgXoYY6OWZQty3MYXuskpBQmXvfs6rkgTHMQypjF7Hn1EvZ3 ULoaLSedWot3OpAQ== 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 9439D13E15; Wed, 19 Jan 2022 15:30:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9oaSIYUu6GFABwAAMHmgww (envelope-from ); Wed, 19 Jan 2022 15:30:13 +0000 Date: Wed, 19 Jan 2022 16:30:12 +0100 From: Jean Delvare To: Terry Bowman Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH v3 0/4] Watchdog: sp5100_tco: Replace cd6h/cd7h port I/O accesses with MMIO accesses Message-ID: <20220119163012.4274665d@endymion> In-Reply-To: <20220118202234.410555-1-terry.bowman@amd.com> References: <20220118202234.410555-1-terry.bowman@amd.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Terry, On Tue, 18 Jan 2022 14:22:30 -0600, Terry Bowman wrote: > This series uses request_mem_region() to synchronize accesses to the MMIO > registers mentioned above. request_mem_region() is missing the retry > logic in the case the resource is busy. As a result, request_mem_region() > will fail immediately if the resource is busy. The 'muxed' variant is > needed here but request_muxed_mem_region() is not defined to use. I will > follow up with another patch series to define the > request_muxed_mem_region() and use in both drivers. Shouldn't this be done the other way around, first introducing request_muxed_mem_region() and then using it directly in both drivers, rather than having a temporary situation where a failure can happen? As far as I'm concerned, the patch series you just posted are acceptable only if request_muxed_mem_region() gets accepted too. Otherwise we end up with the situation where a driver could randomly fail. -- Jean Delvare SUSE L3 Support