Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2754042pxu; Sun, 29 Nov 2020 04:03:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA/Ino1K3KzoZceoEJWTkA75onpsw0zMEaEvHuC/FSNxgGvUKczF0gjw76wJN9mVTA3P9C X-Received: by 2002:a17:906:c345:: with SMTP id ci5mr8574316ejb.492.1606651382066; Sun, 29 Nov 2020 04:03:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606651382; cv=none; d=google.com; s=arc-20160816; b=HtK5NvwNN7MI0KVbu/1TFyGGv0uthfehVDSkiGh6RZFmqUG8SY/iCYoBqCUskLVz4d RXxD06eOol4ND5HHTWNdZ3FotTPhVylefrhsrvv9oEB+oZVT8K7MG675Bzi/xY1L+Cc7 FsB2ROU9MnxUCEmgYYzUEEvLh6vBkqqCz9Sb9qkt5JCwzhVZwNB+JmT1FfUuRlpmuias 65lF3WxrN3GGxmdgF3wTzxkMNKZgxsUyyJVmwSMfACPt5KXmMMlwD/2cO2c/KvZ1TUUj EZCdGATNj6G764cTOAo5nXDi0kV/rjs0hvG1dBPh3p0cfLZVFYEgb1zcxF3JIM5G4RUL r0EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=P+aY1WSE0W/tKe1DcV4tejAa6fJEojufS3sebKZG/Bk=; b=zPbycroVQRYr+f8Lboqtm7DDTvZph9gOQmLu9XLUjGxkAA+XCzdL9vRZ0x/EvigXc0 6KSO+diqwj8+cYbErJg3y8ng/FBgJ9BDuyAEazz+04qYL6eKKVZbEZkX3fOZITdL2I8w 5arfNDwDKZccWOAMOd9itIZC5IYc947VErFaP/c+HQdY2a60DGjI3qJDRIJOG4O5Nvdm AlkzZGobzC+F9HY2xvquEowIEDBIZZR0oUWacwUrapwSg9hHJaBz/EdHPsVQrhoJmF1J e1GesC/l/xejAqdE/I517XcEM0sum1qW/A/SGMeGuUgPdOi2X8AbB59skvLJxsi1QXI5 91Mw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si8705876edw.147.2020.11.29.04.02.25; Sun, 29 Nov 2020 04:03:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726428AbgK2L6d (ORCPT + 99 others); Sun, 29 Nov 2020 06:58:33 -0500 Received: from fgw23-4.mail.saunalahti.fi ([62.142.5.110]:23252 "EHLO fgw23-4.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbgK2L6c (ORCPT ); Sun, 29 Nov 2020 06:58:32 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-71-224-nat.elisa-mobile.fi [85.76.71.224]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 19abebeb-323a-11eb-8ccd-005056bdfda7; Sun, 29 Nov 2020 13:57:49 +0200 (EET) Date: Sun, 29 Nov 2020 13:57:48 +0200 From: Aaro Koskinen To: Linus Walleij , Tony Lindgren , Alan Stern Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BISECTED REGRESSION] Broken USB/GPIO on OMAP1 OSK Message-ID: <20201129115748.GG551434@darkstar.musicnaut.iki.fi> References: <20201128235154.GF551434@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201128235154.GF551434@darkstar.musicnaut.iki.fi> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Nov 29, 2020 at 01:51:54AM +0200, Aaro Koskinen wrote: > I tried to upgrade my OMAP1 OSK board to v5.9, but the rootfs cannot > be accessed anymore due to broken USB. It fails to probe with the > following logs: > > [ 9.219940] ohci ohci: cannot find GPIO chip i2c-tps65010, deferring > [ 9.250366] ohci ohci: cannot find GPIO chip i2c-tps65010, deferring > [ 9.731445] ohci ohci: cannot find GPIO chip i2c-tps65010, deferring > [ 10.342102] ohci ohci: cannot find GPIO chip i2c-tps65010, deferring > [ 10.966430] ohci ohci: cannot find GPIO chip i2c-tps65010, deferring > > Bisected to: > > commit 15d157e874437e381643c37a10922388d6e55b29 > Author: Linus Walleij > Date: Mon Jul 20 15:55:24 2020 +0200 > > usb: ohci-omap: Convert to use GPIO descriptors > > I suspect one of the issues is the name "i2c-tps65010" vs "tps65010": > > # cat /sys/devices/platform/omap_i2c.1/i2c-1/i2c-tps65010/gpio/gpiochip208/label > tps65010 > > However changing that in the lookup table still doesn't help much; I got rid > of the "deferring" message but the USB still doesn't work. So far the only > workaround I have is to revert the whole commit. GPIO numbering goes wrong... It's now trying to poke GPIO2. Also gpiod_set_value_cansleep() probably should be used as tps65010 can sleep. A.