Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1509933pxb; Thu, 4 Nov 2021 03:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7FM14gYfueIoubwhy4n3Wi7bWA94HyrO8iebaPYH4gryV0fsJNT3GLorU3NsHs0TUUodA X-Received: by 2002:a5d:8152:: with SMTP id f18mr35269238ioo.135.1636022627563; Thu, 04 Nov 2021 03:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636022627; cv=none; d=google.com; s=arc-20160816; b=C9O+UIRleT32L4fl8uys7Z72hycdPNuC/r3Z2w8X4Ky3h3Jdth1cmSnoNW7YKuuHIG g6xX0C+cif7d8KdYZoifqrbQmT2dbjPD8UAVIq9TByIhaMC7oQF3DzlSjET72uOaV3NV +uxl748FbYZE7LKLa3kPI4Tlzppr3B93bUIGJIu8ZuFEjFpJvRLoFDrO5UpkZGdJQAiv fHnMooy8jpXxEXunlYiwk/Kl5mW1ASutPO/CoBDKSv9y6pXZkl6JbNttwu19pHs4flyo xaW+guofbkXTpDzcOlxRvNiMfHN53PMnyB1NeI7I3qBSkdDneveZwICaPmKDEIm9ydmI 0IDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XjP2fjC2CP79thMtnxT/89+k8c9p5tf/Yx8zYwVAgZc=; b=DXhgCitvbn3h2TC+UtzRdN0q8WyPf2aMtjU1sT71pVpphYZApbU270s9OtGzyxTmzZ 8k+kmTA8C7BxclW6DozYDvJzN71qmbS063w3ocd07U1pg1/4rNed6mUm1ua8qLRLA1VA wwc2r96VbqAKuYIY6FqC6lQAqO7MPZNuxO7UEQhzBK5cOk3PWTGBlTR5Z932y10MUT/a i39wk2HY7pPsr8PztCURxmvH9ljLDC9rkzKfSt9EQZ/GeTs+YU/2gW1eRA9+X+po9NLF wTSV6VH2gr7LeleGUjujCdpe1vwtJPBwP4hZgzYRl29C+8GHEK63CiVZoHsoHH/BHnni ALyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=YZNnDs+C; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si6705276ila.81.2021.11.04.03.43.33; Thu, 04 Nov 2021 03:43:47 -0700 (PDT) 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=@canonical.com header.s=20210705 header.b=YZNnDs+C; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbhKDKoa (ORCPT + 99 others); Thu, 4 Nov 2021 06:44:30 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:51070 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbhKDKo3 (ORCPT ); Thu, 4 Nov 2021 06:44:29 -0400 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 9BE733F19B for ; Thu, 4 Nov 2021 10:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1636022510; bh=XjP2fjC2CP79thMtnxT/89+k8c9p5tf/Yx8zYwVAgZc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YZNnDs+C+n0Wmpc+ymUKUzMejyfWzHnedokl1kbSEoOqVN34r+gMcXsfDJXcEZrQg SHpQ5I4J3HshOwMR4NlYwxoI0UlRakAmi5+4pYLR+VPdodTDK8G/Up+U+NErB2GokM daSh5iPeEqIqaAKcAKu1yQhCQJY6v0dkM19br6CkgdyQLs6iwsvXntnJZeQDTmQk+Y PB6PxTR1ILZZxqIqPDlGEGTMtKU/jB930P8nB+2hh6PcocojfxhtdwNbp4OH99NwSn Qa7Rkn0P9v0BVAB/7yfkBVDIi6OfKMC4SQVtunwzAYnapYM3290wik/NgaIldeSWgB NUFB8Z6HUHh7Q== Received: by mail-lj1-f198.google.com with SMTP id s18-20020a2e98d2000000b00218ab148976so237141ljj.2 for ; Thu, 04 Nov 2021 03:41:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=XjP2fjC2CP79thMtnxT/89+k8c9p5tf/Yx8zYwVAgZc=; b=sR0geUdtVHR8h0oDZMFurbAngXSS6I2RdI73xMgfICAYpv2wuF5OjKTD0UAPf6uhnQ xgs+ZtW5/uoB591GFoZyAb4YG3wamcVdcl9YD47OOhYyHHnWuzBTK8nTj4pzDJxdHmAD xSVGV2JT37oafi/HRsW2f09y782rMnvrdpctYXMsYMwcW6JUWi7pL+ZTqf3TKI7qDpTt BWH1Gy6GhrIDya7MKPUlaoqaLpEFNcE6RFDf9XcGxO8s8yuQzq1TTLM/9HuQLPZQWBDA I692gq0iVljZZKNoR+X2MrI+lkYbUoImRIlX1NnBuedxSHzXTR3lSf9q2A8wkqwJoGkb 8ODg== X-Gm-Message-State: AOAM533GhWhrajGb8hhveajK9SV3jo4zlwObWyDeCyWI/D2jjVST7qDk u4o7DtvcIIKir54en7lRTVtZwooA96fCU8DqZGbISvny+7563pqZQlCMeMYpVSUt0lZ/YKO4yYR INOspHBIi9QI85ToIKa60DJHnwUeWblNkmfZo0zdT6g== X-Received: by 2002:a05:6512:ba8:: with SMTP id b40mr31165416lfv.99.1636022509896; Thu, 04 Nov 2021 03:41:49 -0700 (PDT) X-Received: by 2002:a05:6512:ba8:: with SMTP id b40mr31165404lfv.99.1636022509686; Thu, 04 Nov 2021 03:41:49 -0700 (PDT) Received: from [192.168.3.67] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id z3sm431731lfh.17.2021.11.04.03.41.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Nov 2021 03:41:48 -0700 (PDT) Message-ID: <5b05ff2e-953c-d1a3-8347-4d3f9911cc49@canonical.com> Date: Thu, 4 Nov 2021 11:41:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH 1/2] i2c: exynos5: support USI(Universal Serial Interface) Content-Language: en-US To: Jaewon Kim , 'Wolfram Sang' , 'Rob Herring' Cc: 'Chanho Park' , linux-i2c@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211101113819.50651-1-jaewon02.kim@samsung.com> <001001d7d153$5fb18840$1f1498c0$@samsung.com> From: Krzysztof Kozlowski In-Reply-To: <001001d7d153$5fb18840$1f1498c0$@samsung.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11/2021 09:10, Jaewon Kim wrote: > >>> + if (ret) { >>> + dev_err(dev, "usi-sysreg offset is not specified\n"); >>> + return ret; >>> + } >>> + >>> + regmap_update_bits(i2c->usi_sysreg, i2c->usi_offset, >>> + SYSREG_USI_SW_CONF_MASK, SYSREG_I2C_SW_CONF); >>> + >>> + exynos_usi_reset(i2c); >> >> You are clearing the reset flag, but not setting it back on probe failure. What happens if the probe >> fails after this clear()? E.g. >> because of deferred probe? The next probe try will start on a not-reset controller. Will it work? >> > > The user manual guides USI_RESET to be done after changing the system register. > For clarity, we will change not only to clear reset, but to clear after reset. > What I meant, is do you handle probe failure correctly (e.g. probe deferral)? It's fine to leave the reset cleared after deferred probe? Best regards, Krzysztof