From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F8A41891D9; Mon, 19 Aug 2024 20:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724098464; cv=none; b=r87++zy6g31yW3QSeg0IyYx7v4STSCZZFqDyFWxPjKsLqGx5jL138xQeXcmWcvp1NpjNpOYljZ17opK2LVe6NllS3D/YmQgqr9YjB8KYQ7wi67P+FmvsgXKx2iaPixd7Uvg8WgRPLGhq2VnE/1mVEWLOWlSr2msGXbLD7XM/voQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724098464; c=relaxed/simple; bh=rwkk8LQNVQlD9RwFHTm1jcVQ1zV2YJJ4gWgj2o8KRL0=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=Ja+kIldelAk42PkN/WjlZmYjOiqF51aVDWJtufJJu1RZIyWh8Mo61etsCUJOY7HqPJuNE8IGPhgv8VXRDvarvh/nDvIRfutthCgnczUr85ezDtKzMD3SpsVEZk1vYfsHMfcP38zaHjJc8T19gFn7jpR2k3zKjmAGwdUgjkCPYnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=YBCsQiDQ; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="YBCsQiDQ" Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1724098452; h=from:from:reply-to:subject:subject: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=vW7nBfaUoWGYI3LaABUbY8ys4mwOX5zqzPW9Oi+BnTM=; b=YBCsQiDQMvk8FzjJcNLq/AItWxnGaj673csQreNjjDaZqjm3SpID+TQ/2C/Y8+6H14lUjO pdpgmvvxSp8f9ohXDF4GfiQmrJD0kR7xlRf1Jow+J2ubvjlQ35jjWpAb8bJ5DsAr1mXZ0k C47uWBPhPuK7ZNHVlnfNUwuXJk9ddm9wZD2qn/gw39KswaI3hMmego1JvNK2omhoZ/n/CW Q/bQYvYpTydUQpdirL7JbbxrGciJB4xlLBzPZRprPgnHV1rs+1UmRTp72BBEnOeBF2za3T 9oOTqOJ/PlqtGb8wlUpi+xa56UqavY5PBjAjJZ5tRpqCKICw1HvgRChArqwmXg== Date: Mon, 19 Aug 2024 22:14:10 +0200 From: Dragan Simic To: Vicente Bergas Cc: Diederik de Haas , Huang-Huang Bao , "Rockchip SoC..." , linux-spi@vger.kernel.org, Heiko Stuebner , Linus Walleij , Sasha Levin , linux-arm-kernel , Linux Kernel Mailing List , Mark Brown Subject: Re: [BUG] Rockchip SPI: Runtime PM usage count underflow! In-Reply-To: References: Message-ID: <164916293044ff73e8b35e9a9ab4283b@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org On 2024-08-19 16:37, Vicente Bergas wrote: > On Mon, Aug 19, 2024 at 3:33 PM Diederik de Haas > wrote: >> >> On Mon Aug 19, 2024 at 3:14 PM CEST, Vicente Bergas wrote: >> > On Mon, Aug 19, 2024 at 2:49 PM Vicente Bergas wrote: >> > > On Mon, Aug 19, 2024 at 4:12 AM Vicente Bergas wrote: >> > > > > i am a user of the CONFIG_SPI_SPIDEV device. >> > > > > It stopped working between 6.8 and 6.10.5. >> > > > > The SPI bus itself reports no errors to userspace, but no devices >> > > > > appear connected to the bus. >> > > > > The platform used is RK3328. >> > > > > The only spi-related message in dmesg is: >> > > > > rockchip-spi ff190000.spi: Runtime PM usage count underflow! >> >> FWIW: I've seen this issue as well. >> >> > > Added: >> > > Huang-Huang Bao >> > > Linus Walleij >> > > Sasha Levin >> > > >> > > The first offending commit is: >> > > 29d8101fb9442544077e68e27839a1979f85633d pinctrl: rockchip: fix pinmux >> > > bits for RK3328 GPIO2-B pins >> > > >> > > I've also tested 6.10.6 with it reverted (and >> > > 456447ff1fe3c28e2fd7b57a79650f62245c6428 and >> > > 7127c68c76f120367b9a5053f524df0b603d4a48 as dependencies) and SPI >> > > works fine. >> > >> > Sorry for the noise: >> > reverting only 29d8101fb9442544077e68e27839a1979f85633d makes it work on 6.10.6. >> > Ignore what i said about 456447ff1fe3c28e2fd7b57a79650f62245c6428 and >> > 7127c68c76f120367b9a5053f524df0b603d4a48. >> >> Please try if unreverting that commit and adding the following: >> https://lore.kernel.org/linux-rockchip/20240709105428.1176375-1-i@eh5.me/ >> >> fixes the issue as well. > > I confirm that 6.10.6 without any reverts plus > 20240709105428.1176375-1-i@eh5.me also fixes the issue. > Thank you all. Great! Could you, please, provide your Tested-by in the patch thread linked above? That should help with getting that patch merged upstream.